diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-10-26 14:04:30 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-10-26 14:04:30 +0200 |
commit | 8056f2d696da9d89b5770bd1ca097bf82aca3bab (patch) | |
tree | 83270d4822df9dd0084f3790b5ed796cde647283 | |
parent | 937b35c12b200f11cc9f95680a92fa6c8ed852fd (diff) | |
download | dotfiles-8056f2d696da9d89b5770bd1ca097bf82aca3bab.tar.gz dotfiles-8056f2d696da9d89b5770bd1ca097bf82aca3bab.tar.bz2 dotfiles-8056f2d696da9d89b5770bd1ca097bf82aca3bab.zip |
backup script order
-rwxr-xr-x | bin/backup.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/backup.sh b/bin/backup.sh index 49c5e72..aa8e6e1 100755 --- a/bin/backup.sh +++ b/bin/backup.sh @@ -43,10 +43,12 @@ backup_local() { --keep-monthly 6 $REPOSITORY } -backup_local Admin/sarah/borg/ingrid ssh://borgbackup@173.212.211.30/./repos/ingrid ~/dev/ ~/org/ ~/.mail/ ~/.bogofilter/ ~/Nextcloud/ +BASIC_PATHS=~/dev/ ~/org/ ~/.mail/ ~/.bogofilter/ ~/Nextcloud/ +backup_local Admin/sarah/borg/ingrid ssh://borgbackup@sarah/./repos/ingrid $BASIC_PATHS DISK=/run/media/titan/ext_backup if [ -d "$DISK" ]; then - # backup_local borgbackup ssh://backup/media/Backup/daily_backup/ ~/dev/ ~/.mail/ ~/.bogofilter/ ~/Nextcloud/ ~/org/ "$DISK/personal/Pictures/" "$DISK/personal/Libros/" "$DISK/personal/dev/" "$DISK/Archives/" - backup_local Admin/sarah/borg/oscar ssh://borgbackup@173.212.211.30/./repos/oscar "$DISK/personal/Pictures/" "$DISK/personal/Libros/" "$DISK/personal/dev/" "$DISK/Archives/" + LARGER_PATHS="$DISK/personal/Pictures/" "$DISK/personal/Libros/" "$DISK/personal/dev/" "$DISK/Archives/" + backup_local borgbackup ssh://backup/media/Backup/daily_backup/ $BASIC_PATHS $LARGER_PATHS + backup_local Admin/sarah/borg/oscar ssh://borgbackup@sarah/./repos/oscar $LARGER_PATHS fi |