Tomasz Chmielewski skrev:
> I want to exclude backups of mp3 files from one certain subdirectory.
> 
> I use rsync transport method, and I tried to exclude backups of mp3
> files from one cretain directory like below - unfortunately, it didn't work:
> 
> $Conf{BackupFilesExclude} = [
>                  '/proc/*',
>                  '/mnt/*',
>                  '/tmp/*',
>                  '/media/*',
>                  '/sys/*',
>                  '/home/samba/linuxbackup/*',
>                  '/var/log/samba/*',
>                  '/var/log/ldap/*',
>                  '/home/samba/profiles/Domain Users/contact/*.MP3',
>                  '/home/samba/profiles/Domain Users/contact/*.mp3',
>                  '/home/samba/profiles/Domain\ Users/contact/*.MP3',
>                  '/home/samba/profiles/Domain\ Users/contact/*.mp3'
>   ];
> 
> How can I exclude backups of certain filetypes from one
> directory/subdirectory only?


Use **.mp3 instead of *.mp3. ** also matches slashes (/), * doesn't. 
That means '/path/*.mp3' will match '/path/music.mp3' but not 
'/path/folder/music.mp3'. '/path/**.mp3' will match both

(and BackupPC just passes the arguments to rsync so there's no difference)

thomas nygreen

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to