In the configfiles you put stuff like
$Conf{BackupFilesOnly}='/dir1';
$Conf{BackupShareName} = '/dir2'
if you use rsync with linux clients
what will be backuped then?
/dir1/dir2 or /dir2/dir1 or /dir1 or /dir2 ???
/dir2/dir1.
Thanks Craig, so if I understand correctly it works like this
$Conf{RsyncShareName} = '/home/user';
$Conf{BackupFilesOnly} = undef;
will backup the whole directory /home/user
Yes. You can do the same thing with:
$Conf{RsyncShareName} = '/';
$Conf{BackupFilesOnly} = '/home/user';
although browsing the backup will be slightly different.
you can add restrictions with
$Conf{BackupFilesExclude} = "*.mp3";
so then i will backup the whole /home/user except the mp3 files.
Yes.
But assume now that i want to make one exception on the mp3 files, for
example i want to backup foobar.mp3
do I just add it in the BackupFilesOnly or will this limit my backup to only
that file?
It will backup just that file.
BackupPC converts the $Conf{BackupFilesOnly} and $Conf{BackupFilesExclude}
settings into the arguments that the XferMethod accepts, eg, smbclient,
tar or rsync. They behave slightly differently. For each XferMethod
you can get more precise control by leaving $Conf{BackupFilesOnly} and
$Conf{BackupFilesExclude} empty and directly modify the XferMethod
command (eg: $Conf{SmbClientFullCmd}, $Conf{TarClientCmd}, or
$Conf{RsyncArgs}).
Rsync has the most flexible include/exclude options. To do what you
want (backup everything, exclude all *.mp3, but include foobar.mp3),
you could leave do something like this:
$Conf{RsyncArgs} = [
#
# Do not edit these!
#
'--numeric-ids',
'--perms',
'--owner',
'--group',
'--devices',
'--links',
'--times',
'--block-size=2048',
'--recursive',
#
# Add additional arguments here
#
'--include', 'foobar.mp3',
'--exclude', '*.mp3',
];
See the rsync man page for more info.
Craig
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE!
http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/