- Joined
- Jul 12, 2006
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
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