--exclude doesn't work with tar command
I don't know why --exclude doesn't work when I use tar command. Please see this code
Code:
mahmood@pc:~$ l a/ |
In your command the pattern /home/mahmood/a/b/ is not matched by a/b, unless you give the full path to the directory you want to archive:
Code:
tar cvjf compressed.tar.bz2 --exclude=/home/mahmood/a/b /home/mahmood/a Code:
tar cvjf compressed.tar.bz2 --exclude=a/b a |
Yes thanks a lot. it works
|
All times are GMT -5. The time now is 03:40 AM. |