fedora-users October 2011 archive
Main Archive Page > Month Archives  > fedora-users archives
fedora-users: Re: Restoring from a tarball

Re: Restoring from a tarball

From: Todd Zullinger <tmz_at_nospam>
Date: Tue Oct 18 2011 - 18:59:55 GMT
To: users@lists.fedoraproject.org

Frank Cox wrote:
> The problem you're going to run into is the initial / that you used
> before home/marcia when you created the tarball. Tar won't restore
> the initial / so when you extract the files they will end up in
> home/marcia under whatever directory you're currently in at that
> time.
> The easiest solution is to extract the tarball and move (with the mv
> command) the marcia directory into /home on completion.

Or use the --absolute-names (-P) option to tar. That's for "don’t
strip leading ‘/’s from file names."

-- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move. -- Douglas Adams

-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines