Guys,
I have the following RSYNC set in cron to run daily and it works great however there is one small detail I was wondering ....
I am telling RSYNC to take everything in my /home/cwilliams directory and sync it with an external USB hard drive mounted under /media/disk.
Here is the cron job...
Code:
# m h dom mon dow command
0 3 * * * rsync --delete -rdtvu /home/cwilliams/ /media/disk
As you can see if a file is /media/disk that is not present in my home directory, it deletes it from /media/disk.
But my main question is... how can I exclude the sync of the /home/cwilliams/Desktop directory? Is there a way to exclude the Desktop folder from syncing with /media/disk?