rsync question
Ok.. Im trying to write my own backup script using rsync, and im having a little difficulty understanding how to backup multiple directories without using a loop.
For instance, I would like to backup /etc and /home/thorpe, however I would like to skip /home/thorpe.mozilla and /home/thorpe.thumbnails. Ive tried.... Code:
rsync -va --delete --delete-excluded --include="/etc /home/thorpe" --exclude="/home/thorpe.mozilla /home/thorpe.thumbnails" Also, would there be a way to backup /home but skip say /home/user/tmp for each user? Something like /home/*/tmp ? Thanks. PS: Im not interested in using files as it seems --include-from and --exclude-from do. |
Most of rsync options don't need the = after the option.
Code:
rsync --delete --delete-excluded --exclude thorpe.mozilla --exclude thorpe.thumbnails --exclude tmp -a /home/thorpe /etc user@host:/destination/directory |
All times are GMT -5. The time now is 06:27 PM. |