aliases: Change settings for borg-backup
This commit is contained in:
parent
38da9ca7fc
commit
746850b32d
@ -2,13 +2,13 @@
|
||||
# borg
|
||||
|
||||
backupName='{hostname}-{now:%Y-%m-%d}'
|
||||
borgArgs="--compression lzma,9 \
|
||||
--progress \
|
||||
borgArgs="--compression auto,lzma \
|
||||
--progress --stats \
|
||||
--exclude-caches \
|
||||
--exclude-from ~/Documents/backuplist.txt"
|
||||
backupTargets="/home/adam/ /etc/"
|
||||
|
||||
alias borg-backup="sudo borg create /run/media/adam/Backup/borg-backups::$backupName $backupTargets $borgArgs"
|
||||
alias borg-backup-home="sudo BORG_RSH='sudo -u adam ssh' borg create thewarehouse:borg-backups::$backupName $backupTargets $borgArgs --ignore-inode --remote-path /var/services/homes/adam/bin/borg"
|
||||
alias borg-backup-home="sudo BORG_RSH='sudo -u adam ssh' borg create thewarehouse:borg-backups::$backupName $backupTargets $borgArgs --files-cache=ctime,size --remote-path /var/services/homes/adam/bin/borg"
|
||||
|
||||
unset backupName borgArgs backupTargets
|
||||
|
Loading…
Reference in New Issue
Block a user