Date: Tue, 2 May 2006 16:01:36 +0300 From: "Iantcho Vassilev" <ianchov@gmail.com> To: "dick hoogendijk" <dick@nagual.st>, "FreeBSD Questions" <freebsd-questions@freebsd.org> Subject: Re: backup system rsync <-> dump Message-ID: <18e02bd30605020601s7693c183t3735fa0590784d90@mail.gmail.com> In-Reply-To: <20060502111316.GA1267@arwen.nagual.st> References: <20060502111316.GA1267@arwen.nagual.st>
next in thread | previous in thread | raw e-mail | index | archive | help
I am using rsync for syncing fwo hard disk(with all the files or make it ho= t backup) and must say rsync is perfect.. It will save you a lot of time. On 5/2/06, dick hoogendijk <dick@nagual.st> wrote: > > I have two disks; one is the fbsd system drive, the other is for backup > purposes. > > I'm in doubt about what to use: dump or rsync > > I guess I can do something like: > mount /dev/ad1s3a /backup/root > mount /dev/ad1s3d /backup/var > mount /dev/ad1s3f /backup/usr > /usr/local/bin/rsync -avHxS --delete /usr /backup/usr > for /usr / and var > > OR > > #!/bin/sh > newfs /dev/ad0s3a > newfs /dev/ad0s3d > newfs /dev/ad0s3f > mount /dev/ad0s3a /backup/root > mount /dev/ad0s3d /backup/var > mount /dev/ad0s3f /backup/usr > (/sbin/dump -L -0f - /)|(cd /backup/root ; /sbin/restore -rf -) > (/sbin/dump -L -0f - /var)|(cd /backup/var ; /sbin/restore -rf -) > (/sbin/dump -L -0f - /usr)|(cd /backup/usr ; /sbin/restore -rf -) > umount /backup/root > umount /backup/var > umount /backup/usr > tunefs -n enable /dev/ad0s3d > tunefs -n enable /dev/ad0s3f > > This gives me a perfect copy, BUT there is a risk if something goes > wrong when I have newfs'd the backup drive. > > Any advice? > > -- > dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE > ++ Running FreeBSD 6.1 ++ The Power to Serve > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18e02bd30605020601s7693c183t3735fa0590784d90>