Yes, you can rsync between two local directories
I wanted to set up a cronjob to backup my photos from a Windows computer to my linux server. To do so I simply set Windows to share the photos directory, then mounted the directory in linux.
The rsync command seemed like the most logical way to sync the mounted directory with my backup directory. However, every piece of documentation I could find online showed examples of rsync communicating with an external server. I’m here to tell you that’s not entirely necessary and setting it up to synchronize 2 local directories works just as well.
rsync -vur --delete --exclude=*.db --exclude=*.info /mnt/photos/ /home/jgill/photos/
October 19th, 2008 at 10:08 am
November 26th, 2008 at 5:33 am
Although I did use a few more switches to preserve permissions and group/user but overall your post was very useful.
Thank you.
March 5th, 2009 at 10:24 am
http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp
May 15th, 2009 at 3:58 pm
I Use it today and see the results is Cool.
Thanks.