diff --git a/.aliases/command-specific/borg b/.aliases/command-specific/borg index 090cc51..ff42e60 100644 --- a/.aliases/command-specific/borg +++ b/.aliases/command-specific/borg @@ -3,12 +3,12 @@ backupName='{hostname}-{now:%Y-%m-%d}' borgArgs="--compression auto,lzma \ - --progress --stats \ - --exclude-caches \ - --exclude-from ~/Documents/backuplist.txt" +--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 --files-cache=ctime,size --remote-path /usr/local/bin/borg" +alias borg-backup-home="sudo borg --rsh 'sudo -u adam ssh' create thewarehouse:borg-backups::$backupName $backupTargets $borgArgs --files-cache=ctime,size --remote-path /usr/local/bin/borg" unset backupName borgArgs backupTargets