diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2021-04-24 15:32:26 +0200 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2021-04-24 15:32:26 +0200 |
commit | 1d7da1821fece96c95d6eda4c6132f847fa99260 (patch) | |
tree | 7d9ec518730f2c1da5bf482c73795c2ccf7082ab | |
parent | 317dadd65bc37024d3848764d47bf4adbf7faf40 (diff) | |
download | dotfiles-1d7da1821fece96c95d6eda4c6132f847fa99260.tar.gz dotfiles-1d7da1821fece96c95d6eda4c6132f847fa99260.tar.bz2 dotfiles-1d7da1821fece96c95d6eda4c6132f847fa99260.zip |
backup cleanup
-rwxr-xr-x | bin/backup.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/backup.sh b/bin/backup.sh index aa4dd46..1701844 100755 --- a/bin/backup.sh +++ b/bin/backup.sh @@ -9,16 +9,20 @@ backup_local(){ REPOSITORY=$2 # repo vault path second arg shift 2 # consume the first 2 arguments borg create --list --filter AME --stats --compression=lz4 \ - --progress --exclude '*.pyc' \ + --progress \ + --exclude '*.pyc' \ --exclude '*/.mypy_cache/' \ - --exclude '*/.notmuch' \ + --exclude '*/venv/' \ + --exclude '*/.tox/' \ --exclude '*/node_modules' \ --exclude '*/js/compiled' \ --exclude '*/target' \ + --exclude '*/dist-newstyle' \ + --exclude '*/.notmuch' \ --exclude '*/mpd/log' \ - --exclude '*/venv/' \ - --exclude '*/.tox/' \ + --exclude '*/elpa' \ --exclude '*.elc' \ + --exclude '*/.local/straight' \ $REPOSITORY::'{hostname}-{user}-{utcnow:%Y-%m-%dT%H:%M:%S}' \ $@ # all the dirs to bac @@ -32,6 +36,6 @@ backup_local(){ --keep-monthly 6 $REPOSITORY } -backup_local borgbackup ssh://backup/media/Backup/daily_backup/ ~/dev/ ~/.mail/ ~/Nextcloud/ ~/org/ /media/backup/personal/Pictures/ /media/backup/personal/Libros/ /media/backup/personal/dev/ /media/backup/Archives/ +backup_local borgbackup ssh://backup/media/Backup/daily_backup/ ~/dev/ ~/.mail/ ~/Nextcloud/ ~/org/ ~/src_car/ /media/backup/personal/Pictures/ /media/backup/personal/Libros/ /media/backup/personal/dev/ /media/backup/Archives/ backup_local Admin/sarah/borg/ingrid ssh://borgbackup@173.212.211.30/./repos/ingrid ~/dev/ ~/org/ ~/.mail/ ~/Nextcloud/ backup_local Admin/sarah/borg/oscar ssh://borgbackup@173.212.211.30/./repos/oscar /media/backup/personal/Pictures/ /media/backup/personal/Libros/ /media/backup/personal/dev/ /media/backup/Archives/ |