Date: Thu, 11 May 2006 13:52:31 -0400 (EDT) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: freebsd@philip.pjkh.com (Philip Hallstrom) Cc: Don O'Neil <don@lizardhill.com>, freebsd-questions@freebsd.org Subject: Re: Copying a file system w/ tar - symbolic links not copied right Message-ID: <200605111752.k4BHqVjR021503@clunix.cl.msu.edu> In-Reply-To: <20060511123100.C76077@bravo.pjkh.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > Hi all... > > > > Ok... More info for the puzzle..... > > > > I'm trying to move a file system from one disk to another, and when I do > > this: > > > > tar cf - /source/* | ( cd /destination && tar xfv - ) > > > > It copies all the files, but the symbolic links are copied as files of 0 > > length, rather than re-established as links. > > > > BUT > > > > When I just: > > > > tar -cf file.tar /source/* > > > > And then: > > > > tar -xf file.tar > > > > Then the symbolic links are made correctly.... Any reason why this should > > work and not the piped version for 'all in one' copying? > > If it's an actual filesystem why not use dump/restore? Ditto on dump/restore. It is the clean and reliable way to do it. The complete filesystem will be recreated in the new location with all links, permission, etc intact. ////jerry > > Otherwise I'm not sure, but you might also want to add in -pS to handle > permissions and sparse files as well... > > -philip > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605111752.k4BHqVjR021503>