From: Marc T. <ma...@dr...> - 2003-12-29 16:28:12
|
Hi Kirk, Why not use another dump & ext2/3 feature - the "nodump" filesystem flag? Use the chattr(1) command to set the "nodump" flag on files and directories you wish to exclude from backups. Then use the "-h" dump option to specify the minimum backup level which will honour this flag. The default honour level is 1, meaning that full backups (level 0) will include all files regardless of this flag, thus if you want a full backup to exclude "nodump" files, specify -h0 on the dump command line. Have a look at the chattr(1) and the dump(8) manpages for further details. Example: find /home -iname '*.mp3' -type f -print -exec chattr +d {} \; ...will list all the mp3 files in /home, and turn on the nodump flag for them. Note that if you set "nodump" on a directory, it will exclude everything in that directory (and any subdirectories) regardless of their individual settings (hence the "-type f" in the example above). Hope that's of some help! Regards, Marc |