I want to rsync multiple sources and I wonder the best way to achieve that.
I thought about 3 solutions :
- Solution 1
multiple call to rsync
rsync -a /etc/fstab bkp rsync -a /home/user/download bkp
con : harder to have agreggated stat
- Solution 2
tobackup folder that contains symlink, and use
sync -aL /home/user/tobackup bkp
con : content to backup must not contain symlinks
- Solution 3
move files into to backup and create symlink in original location
rsync -a /home/user/tobackup bkp
con : some manual config
Which one do you recommend ?
Is there a better way ?