Re: Excluding a directory from tar

2015-04-13 Thread Petter Adsen
On Mon, 13 Apr 2015 15:36:33 -0500 David Wright wrote: > Quoting Petter Adsen (pet...@synth.no): > > On Mon, 13 Apr 2015 12:12:51 -0500 > > David Wright wrote: > > > Have fun reading man find, though! > > > > petter@monster:~$ man tar | wc -l > > 540 > > petter@monster:~$ man find | wc -l > > 1

Re: Excluding a directory from tar

2015-04-13 Thread David Wright
Quoting Petter Adsen (pet...@synth.no): > On Mon, 13 Apr 2015 12:12:51 -0500 > David Wright wrote: > > Have fun reading man find, though! > > petter@monster:~$ man tar | wc -l > 540 > petter@monster:~$ man find | wc -l > 1572 > > :-) Mea culpa. But, in my defence, I think I used tar once or twi

Re: Excluding a directory from tar

2015-04-13 Thread Petter Adsen
On Mon, 13 Apr 2015 12:12:51 -0500 David Wright wrote: > Quoting Petter Adsen (pet...@synth.no): > > I've been trying to make a tarball of my home directory, but I want > > to exclude ~/.cache. First I tried '--exclude="~/.cache", but it > > didn't work. Neither did '--exclude="~/.cache/*". > >

Re: Excluding a directory from tar

2015-04-13 Thread David Wright
Quoting Petter Adsen (pet...@synth.no): > I've been trying to make a tarball of my home directory, but I want to > exclude ~/.cache. First I tried '--exclude="~/.cache", but it didn't > work. Neither did '--exclude="~/.cache/*". > > I got it working by creating an empty file in ~/.cache and using

Re: Excluding a directory from tar

2015-04-13 Thread Petter Adsen
On Mon, 13 Apr 2015 18:41:50 +0200 Jean-Marc wrote: > Mon, 13 Apr 2015 16:15:42 +0200 > Petter Adsen écrivait : > > hi Petter, > > > I've been trying to make a tarball of my home directory, but I want > > to exclude ~/.cache. First I tried '--exclude="~/.cache", but it > > didn't work. Neither

Re: Excluding a directory from tar

2015-04-13 Thread Jean-Marc
Mon, 13 Apr 2015 16:15:42 +0200 Petter Adsen écrivait : hi Petter, > I've been trying to make a tarball of my home directory, but I want to > exclude ~/.cache. First I tried '--exclude="~/.cache", but it didn't > work. Neither did '--exclude="~/.cache/*". Can you send the command you used ? It

Re: Excluding a directory from tar

2015-04-13 Thread Vincent Lefevre
On 2015-04-13 16:15:42 +0200, Petter Adsen wrote: > I've been trying to make a tarball of my home directory, but I want to > exclude ~/.cache. First I tried '--exclude="~/.cache", but it didn't > work. Neither did '--exclude="~/.cache/*". The ~ is not expended here: $ echo "~/foo" ~/foo Try --ex

Excluding a directory from tar

2015-04-13 Thread Petter Adsen
I've been trying to make a tarball of my home directory, but I want to exclude ~/.cache. First I tried '--exclude="~/.cache", but it didn't work. Neither did '--exclude="~/.cache/*". I got it working by creating an empty file in ~/.cache and using the filename as an argument to "--exclude-tag-unde