On Mon, Aug 21, 2006 at 09:57:09PM +0300, Ehud Karni wrote: > I did not know about rsnapshot. So I built a system that does exactly > that (system of snapshots) with a simple sh script and use of rsync.
Yes, there is nothing magical about it. It's also just a script, albeit a long one (around 5000 perl lines). There are many such tools if you look around, rsnapshot just seems to be one of the better ones among them. Many of these tools were inspired by this article: http://www.mikerubel.org/computers/rsync_snapshots/ You can find links to some of them on rsnapshot's site. > I freeze the source file system by using the LVM2 snapshot (I need > only 1 snapshot, which you can do with LVM1 too, for the duration of > the rsync). I do this twice daily. An FS of about 250GB has about 90 > snapshots on a 600 GB space. Yes, I also do exactly the same thing. One lvm snapshot + rsnapshot for many old versions. > > The snapshot process is very simple: > 1. Copy the the latest snapshot to a new directory by `cp -al'. > That is the real trick, it takes about 200 MB for the 250 GB FS > (less then 1/1000), this takes about 8 minutes here. > 2. Freeze the source by making an LVM snapshot, and mount the > snapshot. > 3. Use rsync to sync from the mounted "frozen" source to the new > created destination dir (this takes about 20-25 minutes). > 4. Unmount the LVM snapshot and remove it. > That's it ! > > In real life I do steps 2, 3, 4, 1 so I don't have to wait at the > start of the process. Step 3 is really many rsync parallel processes. Why is that (many rsyncs) an advantage? -- Didi ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]