Restoring from a tarball

Joe Zeff joe at zeff.us
Tue Oct 18 20:33:11 UTC 2011


On 10/18/2011 01:18 PM, Ian Malone wrote:
> Yes by default it will have stripped them on archiving. Since they
> were archived with the full path otherwise you can using -C / will get
> the original full path back:
> tar xf marcia.tar.bz2 -C /
> Do this as user 'marcia' and you should be okay for UIDs on extraction
> (it will also prevent it accidentally extracting somewhere else on the
> filesystem).

Note that I did this as root (using sudo, as it's on Ubuntu) to make 
sure all permissions were preserved.  Wouldn't it be best to restore it 
the same way, for the same reason?  And, there was exactly one user on 
the old box, as there will be on the new installation.


More information about the users mailing list