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{RsyncShareName} = [
                 '/'
  ];

$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'
  ];


I know that if I give '*.mp3' to $Conf{BackupFilesExclude} it will
exclude mp3 files, but from all sub/directories - this is not what I want.

Other way to do it would be to add such an exclude:

                 '/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',
                 '/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',
                 '/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',


But as you see, it doesn't scale very well, because you never know how 
many subdirectories are really there.

How can I exclude backups of certain filetypes from one
directory/subdirectory only?


-- 
Tomasz Chmielewski
http://wpkg.org


-------------------------------------------------------------------------
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