RE: Copying a file system w/ tar - symbolic links not copied right - More info
I will... Thanks to all for helping... Still weird what's happening though! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philip Hallstrom Sent: Thursday, May 11, 2006 12:29 PM To: Don O'Neil Cc: freebsd-questions@freebsd.org Subject: RE: Copying a file system w/ tar - symbolic links not copied right - More info > Well... I'm moving it from one file system to another of different > sizes, that's the main reason. Dump won't care about that... dd would, but dd isn't right for this anyway... I'd give dump a try. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Philip > Hallstrom > Sent: Thursday, May 11, 2006 10:35 AM > To: Don O'Neil > Cc: freebsd-questions@freebsd.org > Subject: Re: Copying a file system w/ tar - symbolic links not copied > right > - More info > >> 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? > > 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 "[EMAIL PROTECTED]" > > > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Copying a file system w/ tar - symbolic links not copied right - More info
Well... I'm moving it from one file system to another of different sizes, that's the main reason. Dump won't care about that... dd would, but dd isn't right for this anyway... I'd give dump a try. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philip Hallstrom Sent: Thursday, May 11, 2006 10:35 AM To: Don O'Neil Cc: freebsd-questions@freebsd.org Subject: Re: Copying a file system w/ tar - symbolic links not copied right - More info 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? 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 "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Copying a file system w/ tar - symbolic links not copied right - More info
Well... I'm moving it from one file system to another of different sizes, that's the main reason. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philip Hallstrom Sent: Thursday, May 11, 2006 10:35 AM To: Don O'Neil Cc: freebsd-questions@freebsd.org Subject: Re: Copying a file system w/ tar - symbolic links not copied right - More info > 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? 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 "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Copying a file system w/ tar - symbolic links not copied right - More info
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? 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 "[EMAIL PROTECTED]"