Forum Moderators: bakedjake

Message Too Old, No Replies

Upgraded tar and perl, now --exclude does nto work

Perl version 5.8.6; Archive: Tar 1.23

         

walkman

3:26 am on Jan 30, 2006 (gmt 0)



Hi,
I updated to FC4, and with it Tar and Perl were updated as well. I have a script that used to back up all my directories in /home, minus the logs as the files would get too huge (In additon, the backup itself is stored @ /home.)

I had this line before:
tar czvf $log_dir/$current_day/111.gz $web_dir/* --exclude apache --exclude cronolog
however, nothing is excluded. Everything else works fine. I looked at tar --help, and there's no reference to excluding a category.

is there another command for that?

thanks in advance,

marcs

4:46 am on Feb 6, 2006 (gmt 0)

10+ Year Member



Try either something like :

--exclude='*cronolog*'

or (if this is a directory name)

--exclude='/home/path/to/logs'