search for: importantfile

Displaying 1 result from an estimated 1 matches for "importantfile".

2011 Mar 15
4
tar exclude question
...rewrite my tar job to get around this: tar -zc -f /mnt/backupInternalHosts/backup/backup.tar.gz -C / etc root home && touch /tmp/state_backup-backup Fine this works, but problems arise when I try to exclude things (example under /tmp/foo): $ mkdir dir1 dir2 dir1/dir2 $ touch dir1/dir2/importantFile $ tar -cvf tarfile.tar --exclude=dir2 -C /tmp/foo/ dir1 dir2 dir1/ Because the exclude pattern matches under dir1 my important File is not backed up. The problem is, I cannot specify the exclude pattern to match only /tmp/foo/dir2 , can I? Thx Rainer