On Fri, Feb 01, 2008 at 01:25:38PM -0800, George Geller wrote:
[EMAIL PROTECTED] ~]# rsync -av /media/sda1 . This would allow you to make more rsync with snapshot backups if you have enough space in sda3. http://www.mikerubel.org/computers/rsync_snapshots/ has a good writeup of rsync with snapshots. Note that you probably don't want to do the grand rsync from sda1 when you are booted from sda1, because you'll get a lot of funny stuff from /proc and /var.
_ALWAYS_ use extra rsync options when performing mirrors like this. There's a lot more problem than walking into other mountpoints. rsync -a -H -x -S src/ dest commentary: -H - preserve hardlinks. Some things depend on these being correct, and you'll waste space if they are not. -x - Don't cross mountpoints. -S - Preserve sparse files. Without this, sparse files take up extra space. src/ - The trailing slash is important, or you end up with a subdirectory on your destination. You may also want -A or -X depending on what use of extended attributes you use. Also, local copies may find that '-W' is faster since it doesn't try to delta transfer, and just copies the file. I usually do a bind mount of root somewhere else. That way I get the underlying /dev tree instead of either nothing, or the synthesized one in udev. # mount -o bind / /mnt/root # rsync -a -H -S /mnt/root/ /backup/dest Dave -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
