Date: Wed, 05 Dec 2007 08:58:36 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: stevefranks@ieee.org Cc: User Questions <freebsd-questions@freebsd.org> Subject: Re: copying just / (not /tmp, /usr, etc) (rsync -x failed) Message-ID: <44y7c95jlf.fsf@be-well.ilk.org> In-Reply-To: <539c60b90712041638s78b4e40fn67434f2dce5e27e7@mail.gmail.com> (Steve Franks's message of "Tue\, 4 Dec 2007 17\:38\:20 -0700") References: <539c60b90712041638s78b4e40fn67434f2dce5e27e7@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Steve Franks" <stevefranks@ieee.org> writes: > I have / on one slice, and [usr,tmp,var] on others. I want to move > just / to a new disk, which seemed to be what rsync -x ("do not cross > filesystems") was intended for. It failed, however, as df shows 20k > blocks in /, and rsync filled up the target slice with 50k blocks, so > obviously it blew right past the 'end' of / - did I miss something? Is > there no other way except to umount [tmp,usr,var]? You missed lots of ways. The canonical method is dump(8)/restore(8). There are many other methods as well. For rsync, what you missed was probably the "-H" option (i.e., you didn't copy from other filesystems, you just ended up with separate copies of files that were hard linked on the original). Even with rsync, though, you won't get an exact copy. I'd recommend dump for copying filesystems; that's what it's for.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44y7c95jlf.fsf>