SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
(no subject)
Author Message
Post (no subject) 
I have a simple question but i don't know the answer myself

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

just wondering.

klaas

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail



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

Post (no subject) 
"ciccio whydoineedalastnameyoufuckinghotmail" writes:

I have a simple question but i don't know the answer myself

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.

ShareName is the top-level directory. BackupFilesOnly and
BackupFilesExclude are relative to (ie: below) ShareName.

I've come to regret the term "ShareName" but that's what I started
with for SMB.

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/

Post (no subject) 
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

you can add restrictions with
$Conf{BackupFilesExclude} = "*.mp3";
so then i will backup the whole /home/user except the mp3 files.
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?

thanks klaas

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus

Post (no subject) 
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/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB