Re: Excluding a directory from tar

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

Re: Excluding a directory from tar

2015-04-13 Thread Petter Adsen
On Mon, 13 Apr 2015 12:12:51 -0500 David Wright deb...@lionunicorn.co.uk 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

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 deb...@lionunicorn.co.uk 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

Re: Excluding a directory from tar

2015-04-13 Thread Petter Adsen
On Mon, 13 Apr 2015 18:41:50 +0200 Jean-Marc jean-m...@6jf.be wrote: Mon, 13 Apr 2015 16:15:42 +0200 Petter Adsen pet...@synth.no é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

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 the

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

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-under,

Re: Excluding a directory from tar

2015-04-13 Thread Jean-Marc
Mon, 13 Apr 2015 16:15:42 +0200 Petter Adsen pet...@synth.no é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