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: Frank Cox <theatre_at_nospam>
Date: Tue Oct 18 2011 - 18:54:47 GMT
To: Community support for Fedora users <users@lists.fedoraproject.org>

On Tue, 18 Oct 2011 11:24:34 -0700
Joe Zeff wrote:

> sudo tar -cjf marcia.tar.bz2 /home/marcia

> Assuming that
> the username hasn't changed and that I've put the backup in the same
> place that I made it, what arguments to I give tar to make it put
> everything back exactly where it was? I ask because I once got it wrong
> and ended up with everything in a subdirectory instead of where it
> belonged, and I'd rather Get It Right the first time.

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.

-- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER! -- 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