Skip to content

Commit

Permalink
Add back --filter argument to rsync command
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtpep committed Dec 25, 2014
1 parent 88ad6aa commit 65fd2a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ fi
backup_dir=~/Downloads/arch-drive-home
mkdir -p $backup_dir

[[ ! -f /home/.rsync-exclude ]] || rsync_args="--exclude-from=/home/.rsync-exclude"
sudo rsync -a ${rsync_args:-} --delete --info=progress2 $mnt_dir/home/ $backup_dir
sudo rsync -a --delete --filter=": /.rsync-filter" --info=progress2 $mnt_dir/home/ $backup_dir

echo "Backup was saved to ${backup_dir/#$HOME/\~}."

0 comments on commit 65fd2a4

Please sign in to comment.