A few years back, Bigpaws pointed me in the direction of rsync for performing data backup. Now I use this little gem all the time. Local file transfers, between machines on my LAN, through an SSH tunnel over the Internet, rsync does it all quickly, efficiently and reliably.

Latest success story I'd like to share: Got a computer in for repair. XP refusing to load. Tried a non-destructive reinstall, but the installer didn't even recognize old windows installation. A fresh install usually fixes stuff, but at the cost of having to re-install all your applications again. The box had MS Office and some other proprietary software, and of course the original install media/unlock codes were not with the machine. Besides, there were a bunch of customizations, bookmarks, the usual.

I booted a Linux Live CD and took a look. NTFS partition was there, files readable. I rsync'd everything from C: to my file server.

Next I ran the built-in, destructive recovery feature. Three hours later I had a new default OEM install of Windows. Another 45 minutes and it was cleaned up.

Then, I booted the Live CD again and reversed the copy process, overwriting the existing files on drive C:

I will admit my expectations were low, but windows loaded, with all the old settings intact. It ran slow, and I found that the filesystem had gotten very fragmented. I ran defrag, it was still running when I went to bed two hours later. Next morning it was done and the machine ran fine.

Sometime ago, Bigpaws, I believe, suggested I consider rsync as an alternative to simplelinuxbackup. It took a while, but now I use the Grsync root backup tool (on the 6.0 menu) instead of simplelinuxbackup. I use Grsync to do a complete backup of the data partition on my laptop at least once a week.

When (if) you get time, could you give a couple of examples of how you use rsync to transfer files between machines on a LAN? I'm going to look into that as it could be very quite helpful. Right now, we copy to a usb stick or email. Rather inconvenient and probably not all that secure.

The "a" option specifies "archive" mode, which preserves permissions, "v" gives more feedback.Adding a trailing slash to "source" avoids creation of a "source" sub-dir in "destination".In the above described rescue operation I first mounted my file server using cifs.

rsync is best for directories, not individual files. To copy a single file, use scp:

Adding the "konsole -e" gives me a terminal window so I can see the progress.

* For automated network operations, using ssh without first mounting the network resources, you first need to configure your machines for access using password-less public/private key pairs. I relied heavily upon this guide:http://troy.jdmz.net/rsync/index.htmlFor backup through the internet I implemented the restrictions script, but not for my local network.

do you think this would work for backing up temporarily mounted NTFS partitions? I've got a mish-mash of XP and Linux boxes. At this point, the XP stuff is automated in the usual way w/NTbackups to a server box. But for the Linux stuff I just let cron kick off a simple copy of what I need ... it would be nice to be able to have one thing do both. Here's what concerns me:

1. having to jump through more SAMBA hoops2. Would the NTFS stuff restore properly after the image was saved on say Reiserfs?

I've put ghosted XP drive images on and off of Reiser before, but it seemed weird somehow... it worked...