I managed to get this done in the following way:
Instead of using $Conf{BackupFilesOnly} and $Conf{BackupFilesExclude} I
added an additional parameter "--exclude-from=" in $Conf{RsyncArgs}
which reads exclude-specifications from a file:
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--block-size=2048',
'--recursive',
'--exclude-from=/etc/backuppc/filter.txt'
];
The content of the file /etc/backuppc/filter.txt is the following:
+ *.jpg
+ *.JPG
+ */
- *
Don't ask me why $Conf{BackupFilesOnly} did not work and using a file
gets this right, but it works now! The only thing I'm not very happy
with is that all directories are backed up, even if they are empty (no
.JPG- or .jpg-Files in them).
Let me know if you have any other solutions for this problem or if you
get to know why the $Conf{BackupFilesOnly}-solution did not work.
Ciao
Martin
Rob Ogle wrote:
> Martin,
>
> I'm having similar issues. I posted my question about 72 hours ago and no
> one has responded to my email.
> I need to backup only *.mdb files.
> If you get this figured out, will you let me know, please? I'll do the same.
>
>
> Thank,
>
> Rob
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Martin
> Milinovsky
> Sent: Wednesday, January 09, 2008 2:06 AM
> To: [email protected]
> Subject: [BackupPC-users] Backup only some files / using BackupFilesOnly
>
> I'm already using BackupPC for some time, but now I have a special case:
> I have to backup only all files with the extension .JPG or .jpg. I'm
> using rsync as transport method and the following configuration:
>
> $Conf{RsyncShareName} = [
> '/raid/Luxdaten/LuxKalk/Krausler_Anbote/'
> ];
>
> $Conf{BackupFilesOnly} = {
> '*' => [
> '*.jpg',
> '*.JPG'
> ]
> };
>
> BUT: BackupPC says that there are no files to backup - see the XFerLog
> below:
>
> full backup started for directory
> /raid/Luxdaten/LuxKalk/Krausler_Anbote/ (baseline backup #0)
> Running: /usr/bin/ssh -q -x -l root localhost /usr/bin/rsync --server
> --sender --numeric-ids --perms --owner --group -D --links --hard-links
> --times --block-size=2048 --recursive --ignore-times .
> /raid/Luxdaten/LuxKalk/Krausler_Anbote/
> Xfer PIDs are now 30049
> Rsync command pid is 30049
> Got remote protocol 29
> Negotiated protocol version 28
> Checksum seed is 1199804515
> Got checksumSeed 0x47839063
> Sent include: /*.jpg
> Sent include: /*.JPG
> Sent exclude: /*
> Got file list: 1 entries
> Child PID is 30053
> Xfer PIDs are now 30049,30053
> Sending csums, cnt = 1, phase = 0
> Sending csums, cnt = 0, phase = 1
> create d 755 1001/1001 8192 .
> Finished deltaGet phase 0
> Finished deltaGet phase 1
> Done: 0 files, 0 bytes
> Got fatal error during xfer (No files dumped for share
> /raid/Luxdaten/LuxKalk/Krausler_Anbote/)
> Backup aborted (No files dumped for share
> /raid/Luxdaten/LuxKalk/Krausler_Anbote/)
>
>
>
> There ARE files with the extension .JPG or .jpg in the directory
> /raid/Luxdaten/LuxKalk/Krausler_Anbote/: executing 'find ./ -name
> "*.JPG" -print' lists 14 files and 'find ./ -name "*.jpg" -print' lists
> nine files!
>
>
> Any ideas what's wrong with my setup?
>
> Martin
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> BackupPC-users mailing list
> [email protected]
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/