Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 2004 12:55:53 -0400
From:      Charles Swiger <cswiger@mac.com>
To:        Don Lewis <truckman@FreeBSD.org>
Cc:        damaker@fillibach.de
Subject:   Re: moving /usr to another partition
Message-ID:  <579308A2-CF6D-11D8-911E-003065ABFD92@mac.com>
In-Reply-To: <200407052151.i65LouOV002134@gw.catspoiler.org>
References:  <200407052151.i65LouOV002134@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 5, 2004, at 5:50 PM, Don Lewis wrote:
> On  5 Jul, Konstantin 'Kosta' Welke wrote:
>> Diskspace is running low, so I'd like to move my /usr to another
>> disk.  [ ... ]  If you have any hints or alternatives, please let me 
>> know!

"rsync -a" is a pretty good way of backing up a tree of stuff.  You can 
also use a tar pipeline as per it's manpage.

> I'm pretty sure that "restore -r" will do the right thing and just
> unpack the dump archive into the current working directory.  I'm pretty
> sure that I've done this in the past.
>
> I don't understand the warnings in the man page:
>
>      -r      Restore (rebuild a file system).  The target file system 
> should
>              be made pristine with newfs(8), mounted and the user cd'd 
> into
>              the pristine file system before starting the restoration 
> of the
>              initial level 0 backup.

These warnings are due to the way dump handles files which are hard 
linked to each other.

Basicly, the dump format simply archives the inode # used by a 
hard-linked file, and restore depends on being able to use that same 
inode # when extracting a tree of files where some of them are 
hard-linked to each other.  If you restore to a clean filesystem which 
was freshly newfs'ed, restore doesn't have to worry about the inodes it 
wants to use already being used by other files.

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?579308A2-CF6D-11D8-911E-003065ABFD92>