|
|
|
|
|
|
| Author |
Message |
sealinux@gmail.com *nix forums beginner
Joined: 25 Nov 2005
Posts: 25
|
Posted: Thu Jul 06, 2006 7:53 am Post subject:
N00b tar question
|
|
|
How can I tar up my entire home directory, including the dot folders?
I've used
tar -czpf home.tar.gz /home/joe
And it gets all the dot folders in all of the subdirectories, but the
ones in the root of /home/joe.
What gives? |
|
| Back to top |
|
 |
jKILLSPAM.schipper@math.u *nix forums Guru Wannabe
Joined: 13 Nov 2005
Posts: 202
|
Posted: Thu Jul 06, 2006 4:23 pm Post subject:
Re: N00b tar question
|
|
|
sealinux@gmail.com wrote:
| Quote: | How can I tar up my entire home directory, including the dot folders?
I've used
tar -czpf home.tar.gz /home/joe
And it gets all the dot folders in all of the subdirectories, but the
ones in the root of /home/joe.
What gives?
|
Well, a quick test along these lines does not reproduce the problem:
$ mkdir test
$ cd test
$ touch .hidden
$ tar -czpf ~/tmp/tmp.tar.gz .
$ tar tzf ~/tmp/tmp.tar.gz
..
../.hidden
Are you certain you did not do tar -czpf home.tar.gz /home/joe/*? This
would function as you described... (use /home/joe/{,.}* for a quick way
to express 'and dotfiles' in the shell, or just use /home/joe).
Joachim |
|
| Back to top |
|
 |
sealinux@gmail.com *nix forums beginner
Joined: 25 Nov 2005
Posts: 25
|
Posted: Thu Jul 06, 2006 11:38 pm Post subject:
Re: N00b tar question
|
|
|
jKILLSPAM.schipper@math.uu.nl wrote:
| Quote: | Are you certain you did not do tar -czpf home.tar.gz /home/joe/*? This
would function as you described... (use /home/joe/{,.}* for a quick way
to express 'and dotfiles' in the shell, or just use /home/joe).
Joachim
|
That's exactly what I did.
As is often the case, when I did it your way, it worked the way it was
supposed to.
Thanks again. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Nov 22, 2008 7:34 am | All times are GMT
|
|
Internet Advertising | Credit Check | Car Loan | Credit Report | Business Sales
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|