You are not logged in.
I want to zip my /home directory, but have the tarball file created outside of /home to avoid a "double compression" problem.
I have tried several variations of tar with various switches and destinations, but nothing wants to work. Have read the tar man pages and they are way too technical for me, and google is not being helpful.
Could I trouble someone to please give me the line of code to collect everything in my current /home and zip it into one tarball,
and have the tarball show up in /opt (where there is space for it (or if /opt is not a good place to put it, your suggestion)?
Any explanation of what any recommended switches accomplish in simple English will be greatly appreciated.
I think the basic tarball creation should be the following, which please confirm, but how to get the tarball created in /opt directory?
tar -czvf currenthome.tar.gz /home
Many thanks
Last edited by Odyssey (2012-03-08 00:09:14)
Offline
Er .... what's wrong with
# tar -czvf /opt/currenthome.tar.gz /home
I'm not particularly experienced with this - but I'd assume you've tried that and had some problem.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Just give the resulting tar an absolute address.
tar cjvf /tmp/home.tar.bz2 /home
Offline
That did it. Thanks to both.
Offline
Please remember to mark the thread solved, and in future try a little inventive experimentation before starting a new thread in the forum.
Offline
Thank you for your constructive guidance. I did spend the better part of an hour trying to do it at the command line, reading the man pages, and googling before asking for help. In hindsight, the correct command seems blindingly obvious, but when you are blind it is hard to see. I am very much a noob, hence my posting in "Newbie Corner" but I am learning.
Last edited by Odyssey (2012-03-06 13:55:05)
Offline
You forgot to mark the thread as solved.
https://bbs.archlinux.org/viewtopic.php?id=130309
Offline