refactor: update skeleton and scripts
This commit is contained in:
parent
fad2dcf339
commit
07994c11c5
7 changed files with 18 additions and 24 deletions
|
@ -1,10 +1,10 @@
|
|||
# /etc/cron.d/restic.crontab
|
||||
|
||||
# every 4 hours create a backup
|
||||
0 */4 * * * root /neb/common/restic/backup.sh
|
||||
0 */4 * * * root /opt/scripts/restic/backup.sh
|
||||
|
||||
# every day at 2 in the morning, forget old backups
|
||||
0 2 * * * root /neb/common/restic/forget.sh
|
||||
0 2 * * * root /opt/scripts/restic/forget.sh
|
||||
|
||||
# every 1st of the month at 2 in the morning, prune
|
||||
50 2 1 * * root /neb/common/restic/prune.sh
|
||||
50 2 1 * * root /opt/scripts/restic/prune.sh
|
1
skel/etc/ixvd/version
Normal file
1
skel/etc/ixvd/version
Normal file
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
ntfy() {
|
||||
sh /opt/ixvd/ntfy.sh -s "/neb/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
||||
sh /opt/scripts/ntfy.sh -s "/neb/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
||||
}
|
||||
|
||||
ntfy -m "performing backup..."
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
ntfy() {
|
||||
sh /opt/ixvd/ntfy.sh -s "/neb/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
||||
sh /opt/scripts/ntfy.sh -s "/neb/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
||||
}
|
||||
|
||||
ntfy -m "forgetting old backups..."
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
ntfy() {
|
||||
sh /opt/ixvd/ntfy.sh -s "/neb/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
||||
sh /opt/scripts/ntfy.sh -s "/neb/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
||||
}
|
||||
|
||||
ntfy -m "pruning old backups..."
|
Loading…
Add table
Add a link
Reference in a new issue