Rsync: Combining '--files-from' and '--exclude' does not work -


i backups rsync , used option --files-from define list of directories should synced. right now, planning extend command --exclude option, not work.

more specifically, include-list.txt file contains directory /home/user/shared/ , want exclude new subdirectory /home/user/shared/big_data/.

here command not job.

rsync -azvvr \     --files-from '/home/user/backup_mngmt/include-list.txt' \     --exclude '/home/user/backup_mngmt/exclude-list.txt' \     -e ssh / user@server:/home/user/backup 

it's old question, anyway :)

--exclude=big_data/ 

should trick in case. don't forget trailing slash....


Comments