niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » OpenBSD
N00b tar question
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
sealinux@gmail.com
*nix forums beginner


Joined: 25 Nov 2005
Posts: 25

PostPosted: Thu Jul 06, 2006 7:53 am    Post subject: N00b tar question Reply with 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?
Back to top
jKILLSPAM.schipper@math.u
*nix forums Guru Wannabe


Joined: 13 Nov 2005
Posts: 202

PostPosted: Thu Jul 06, 2006 4:23 pm    Post subject: Re: N00b tar question Reply with quote

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

PostPosted: Thu Jul 06, 2006 11:38 pm    Post subject: Re: N00b tar question Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 7:34 am | All times are GMT
navigation Forum index » *nix » BSD » OpenBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Newbie question: How to forward a domain to a mailbox? leei Postfix 0 Fri Aug 24, 2007 4:55 pm
No new posts configuration question for httpd Karl Wang Apache 1 Fri Jul 21, 2006 2:10 pm
No new posts nim problem/question Ron AIX 0 Fri Jul 21, 2006 1:57 pm
No new posts question for JAVA developer who r using postgres sql as b... deepak pal PostgreSQL 1 Fri Jul 21, 2006 9:00 am
No new posts Encryption Question dtuttle1@gmail.com Berkeley DB 2 Thu Jul 20, 2006 10:09 pm

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
[ Time: 0.2915s ][ Queries: 16 (0.2152s) ][ GZIP on - Debug on ]