Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 2016 17:24:50 +0300
From:      Anton Sayetsky <vsasjason@gmail.com>
To:        Matthew Seaman <matthew@freebsd.org>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>,  Shahin Hasanov <shahinhasanov@hotmail.com>
Subject:   Re: There is problem during dump/restore.
Message-ID:  <CAA2O=b_WYrXBhh2EKB8+OuwBQRjOO5z1HTs_-Y7OUfAiUY053w@mail.gmail.com>
In-Reply-To: <568BD0FB.5020303@FreeBSD.org>
References:  <DUB127-W87D679C1AAA8A0C5276BD8B6F30@phx.gbl> <568BC37C.2010903@FreeBSD.org> <DUB127-W4413B16E22DB29A4F637D9B6F30@phx.gbl> <568BD0FB.5020303@FreeBSD.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
5 =D1=8F=D0=BD=D0=B2. 2016 =D0=B3. 16:20 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=
=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Matthew Seaman" <matthew@freebsd.o=
rg>
=D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
>
> On 05/01/2016 13:39, Shahin Hasanov wrote:
> > Thank you Matthew,
> > I have two HDD da0,da1
> > da0 is 147GB   - ufs
> > da1 is 1.1TB    - zfs
>
> Ah -- there is your problem.  dump/restore only works with UFS.
>
> However, if what you want to do is copy a directory heirarchy from one
> place to another preserving ownership and permissions and so forth, then
> there are very many ways to do that.
>
> Two suggestions:
>
>   1) Using stuff from the base system only:
>
>   # cd /src/dir
>   # tar -cf - . | ( cd /dest/dir ; tar -xvf - )
I think that's better to replace above 2 commands with one following:
# tar cf - -C /src/dir . | tar xf -C /dest/dir -

>   2) Using rsync(1) from ports:
>
>   # rsync -avx /src/dir/ /dest/dir/
>
>   (Note the trailing slashes on the directory paths -- they're



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAA2O=b_WYrXBhh2EKB8+OuwBQRjOO5z1HTs_-Y7OUfAiUY053w>