Re: rsync problem
On Sat, 6 Sep 2003 05:34, Jim Durham wrote: > On Tuesday 02 September 2003 11:59 am, Malcolm Kay wrote: > > On Tue, 2 Sep 2003 23:27, Guy Van Sanden wrote: > > > Hello > > > > > > I'm using rsync to sort of mirror two 40GB disks (once a day). > > > All partitions work as expected, but root is weird (and as you > > > can see below, I sort of made it too small). > > > > > > I use this command: > > > /usr/local/bin/rsync -ax --delete / /mirror/rootfs > > > > > > But this is what I'm getting: > > > df -m > > > Filesystem 1M-blocks Used Avail Capacity Mounted on > > > /dev/ad0s1a 154 717051%/ > > > /dev/ad1s1a 154 138 497%/mirror/rootfs > > > > > > So, there's a 67 MB difference between both. > > > I started out wite a cleanly formatted mirror (UFS2) > > > > > > My system is FreeBSD 5.0 RELEASE-p11 > > > > > > Thanks for any help > > > > > > Guy > > > > I expect rsync does not recognise hard linked files as such and > > makes separate images of each directory link. Looking through > > /stand on my 4.8 system I see that this would create about 60Mb > > extra. > > > > You might do better with dump and restore: > > # cd /miiror/rootfs > > # dump -0 -a -f - / | restore -r -f - > > > > Malcolm > > rsync -H preserves hard links. Maybe try rsync -Hax --delete ? > > -Jim Certainly a more convenient approach than my suggestion. I should have thought to take a look at the man page ;-) Thanks Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: rsync problem
On Tuesday 02 September 2003 11:59 am, Malcolm Kay wrote: > On Tue, 2 Sep 2003 23:27, Guy Van Sanden wrote: > > Hello > > > > I'm using rsync to sort of mirror two 40GB disks (once a day). > > All partitions work as expected, but root is weird (and as you > > can see below, I sort of made it too small). > > > > I use this command: > > /usr/local/bin/rsync -ax --delete / /mirror/rootfs > > > > But this is what I'm getting: > > df -m > > Filesystem 1M-blocks Used Avail Capacity Mounted on > > /dev/ad0s1a 154 717051%/ > > /dev/ad1s1a 154 138 497%/mirror/rootfs > > > > So, there's a 67 MB difference between both. > > I started out wite a cleanly formatted mirror (UFS2) > > > > My system is FreeBSD 5.0 RELEASE-p11 > > > > Thanks for any help > > > > Guy > > I expect rsync does not recognise hard linked files as such and > makes separate images of each directory link. Looking through > /stand on my 4.8 system I see that this would create about 60Mb > extra. > > You might do better with dump and restore: > # cd /miiror/rootfs > # dump -0 -a -f - / | restore -r -f - > > Malcolm > rsync -H preserves hard links. Maybe try rsync -Hax --delete ? -Jim ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: rsync problem
Thank you Malcolm I'll try this one... On Tue, 2003-09-02 at 17:59, Malcolm Kay wrote: > On Tue, 2 Sep 2003 23:27, Guy Van Sanden wrote: > > Hello > > > > I'm using rsync to sort of mirror two 40GB disks (once a day). > > All partitions work as expected, but root is weird (and as you can see > > below, I sort of made it too small). > > > > I use this command: > > /usr/local/bin/rsync -ax --delete / /mirror/rootfs > > > > But this is what I'm getting: > > df -m > > Filesystem 1M-blocks Used Avail Capacity Mounted on > > /dev/ad0s1a 154 717051%/ > > /dev/ad1s1a 154 138 497%/mirror/rootfs > > > > So, there's a 67 MB difference between both. > > I started out wite a cleanly formatted mirror (UFS2) > > > > My system is FreeBSD 5.0 RELEASE-p11 > > > > Thanks for any help > > > > Guy > > I expect rsync does not recognise hard linked files as such and makes > separate images of each directory link. Looking through /stand on my 4.8 > system I see that this would create about 60Mb extra. > > You might do better with dump and restore: > # cd /miiror/rootfs > # dump -0 -a -f - / | restore -r -f - > > Malcolm > > > > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: rsync problem
On Tue, 2 Sep 2003 23:27, Guy Van Sanden wrote: > Hello > > I'm using rsync to sort of mirror two 40GB disks (once a day). > All partitions work as expected, but root is weird (and as you can see > below, I sort of made it too small). > > I use this command: > /usr/local/bin/rsync -ax --delete / /mirror/rootfs > > But this is what I'm getting: > df -m > Filesystem 1M-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 154 717051%/ > /dev/ad1s1a 154 138 497%/mirror/rootfs > > So, there's a 67 MB difference between both. > I started out wite a cleanly formatted mirror (UFS2) > > My system is FreeBSD 5.0 RELEASE-p11 > > Thanks for any help > > Guy I expect rsync does not recognise hard linked files as such and makes separate images of each directory link. Looking through /stand on my 4.8 system I see that this would create about 60Mb extra. You might do better with dump and restore: # cd /miiror/rootfs # dump -0 -a -f - / | restore -r -f - Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
rsync problem
Hello I'm using rsync to sort of mirror two 40GB disks (once a day). All partitions work as expected, but root is weird (and as you can see below, I sort of made it too small). I use this command: /usr/local/bin/rsync -ax --delete / /mirror/rootfs But this is what I'm getting: df -m Filesystem 1M-blocks Used Avail Capacity Mounted on /dev/ad0s1a 154 717051%/ /dev/ad1s1a 154 138 497%/mirror/rootfs So, there's a 67 MB difference between both. I started out wite a cleanly formatted mirror (UFS2) My system is FreeBSD 5.0 RELEASE-p11 Thanks for any help Guy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"