euglug.org

[Eug-lug] tar up home for a nuke and pave

작성자

카테고리:



Mr OSun Feb 13 15:35:50 PST 2005

Is there any way to speed up tar? 

Not backing up anything system related like /usr or /etc. Just
personal stuff like pics, docs, downloads, and game maps and
settings.

A zillion thanks of gratitude.



--- horst <horsu at freeshell.org> wrote:

> > Date: Sun, 13 Feb 2005 14:33:08 -0800 (PST)

>   su
>   cd /
>   tar -czf  descriptiveName.tgz  home [otherDir]
> 
> The filename 'descriptive...' is my pref --you can just call
> it t.tgz , 
> but the more you put in there, the more you will recognize
> months later.
>   I gave the example for /home [/otherDir] -- you can add more
> but don't 
> use the leading / in the command. I don't use the -v (verbose)
> option 
> since I want to only see errors, if any.

> If you did not change /etc/passwd and /etc/group the restore
> should be 
> smooth (tar stores the UID and GID --not the names associated)
>   There may be no need of deleting and re-creating the users.
> 
> Warning: if you also tar /etc and other /stuff you want to be
> *not* in / 
> (rootDir) when you extract from the .tgz  -- cd to /tmp (e.g.)
> and extract 
> there 'tar -xzf filename.tgz' --then you handle individual
> files in 
> /tmp/etc/
>   The tar -tzf name.tgz | less  above  shows you where the
> extract goes.
> 
>   - Horst
> 
> > Thanks a zillion.
>    What of ???



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail