copying just / (not /tmp, /usr, etc) (rsync -x failed)
jerrymc at msu.edu
Thu Dec 6 08:28:33 PST 2007
On Thu, Dec 06, 2007 at 04:48:40PM +0200, Konstantinos Pachnis wrote:
> James Harrison wrote:
> > On Wed, 2007-12-05 at 10:41 -0500, Jerry McAllister wrote:
> >> On Tue, Dec 04, 2007 at 05:38:20PM -0700, Steve Franks wrote:
> >>> 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
> >>> ...
> >> I would use dump/restore.
> >> ...
> >> Then, run the dump/restore
> >> cd /newpart
> >> dump 0af - / | restore -rf -
> >> This will get all of / as you want. The other mountpoints for /tmp, /usr
> >> and /var will be copied, but not the contents of those filesystems. You
> >> probably want that.
> >> ////jerry
> >>> Thanks,
> >>> Steve
> > Everyone's recommending dump/restore for copying file systems, and
> > there's something that I've never really been clear on.
> > The nice thing about rsync is that it's network aware. Can dump dump a
> > file system across a network?
> > James
> If you want to perform network backups, you should consider using a
> network aware backup solution such as Bacula or Amanda.
He said he just wants to make a copy of the file system on to
another disk. Getting a whole new system set up is overkill for that.
Anyway, we were never happy with Amanda. Haven't used Bacula.
More information about the freebsd-questions