Hello all,
I have a script I am trying to put together, what I am trying to do is mirror my home dir (excluding my music dir) between my desktop and laptop. My intention is to create a cron job to run two scripts, one to push the data to the laptop at the end of the day, and one to pull the data from my laptop in the morning.
Here is what I have and it is not working correctly, it is not excluding my music dir. Also what is the option to include hidden files? Is it -r or -v?
Quote:
rsync -avz -e 'ssh -p 22' --ignore-errors --exclude=/home/<user>/Music /home/<user>/ <user>@<remotemachine>:/home/<user>/
Please help me make it right... Thanks.