Stupid of me, I had not define the d: drive in the rsync.conf file in the
computer to be backed-up, sorry for that!
Last log shows both c: and d: drive were properly backed-up yesterday,
although the exclude are still not considered.
I then need to fix how to exclude these directories. What could be wrong in
the syntax here, any idea?
Config.pl of the PC:
$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncShareName} = ['cDrive','dDrive'];
$Conf{BackupFilesExclude} = {
'c' => ['/Documents and Settings/*/Local Settings/Temporary Internet
Files','/WINDOWS/Temp','/pagefile.sys','hiberfil.sys','/RECYCLER'],
'd' => ['/Download'],
};
$Conf{RsyncdUserName} = 'backuppc';
$Conf{RsyncdPasswd} = '********';
Thanks for any hint!
Guy
2007/3/29, Guy Malacrida <[EMAIL PROTECTED]>:
Hi Craig, thanks to take the time to reply my query!
I also don't understand why this is happening but I enclose here after
excerpts of three files, i.e.:
Contents of file /etc/backuppc/config.pl, (MAIN CONFIG.PL file for
backuppc)
###########################################################################
# What to backup and when to do it
# (can be overridden in the per-PC config.pl)
###########################################################################
# Name of the host share that is backed up when using SMB. This can be a
# string or an array of strings if there are multiple shares per host.
# Examples:
#
$Conf{SmbShareName}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bsmbsharename%7d>
= 'c'; # backup 'c' share
#
$Conf{SmbShareName}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bsmbsharename%7d>
= ['c', 'd']; # backup 'c' and 'd' shares
#
# This setting only matters if
$Conf{XferMethod}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bxfermethod%7d>
= 'smb'.
#
$Conf{SmbShareName}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bsmbsharename%7d>
= 'C$', 'D$';
#
##########################################################################
# General per-PC configuration settings
# (can be overridden in the per-PC
config.pl)
###########################################################################
#
$Conf{XferMethod}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bxfermethod%7d>
= 'rsyncd';
#
# This can also be a list of multiple file system paths or modules.
# For example, by adding --one-file-system to
$Conf{RsyncArgs}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncargs%7d>
you
# can backup each file system separately, which makes restoring one
# bad file system easier. In this case you would list all of the mount
# points:
#
#
$Conf{RsyncShareName}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncsharename%7d>
= ['/', '/var', '/data', '/boot'];
#
$Conf{RsyncShareName}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncsharename%7d>
= '/';
#
# Rsync daemon port on the client, for
$Conf{XferMethod}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bxfermethod%7d>
= "rsyncd".
#
$Conf{RsyncdClientPort}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncdclientport%7d>
= 873;
#
# Rsync daemon user name on client, for
$Conf{XferMethod}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bxfermethod%7d>
= "rsyncd".
# The user name and password are stored on the client in whatever file
# the "secrets file" parameter in rsyncd.conf points to
# (eg: /etc/rsyncd.secrets).
#
$Conf{RsyncdUserName}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncdusername%7d>
= '';
#
Arguments to rsync for backup. Do not edit the first set unless you
# have a thorough understanding of how File::RsyncP works.
#
# Examples of additional arguments that should work are --exclude/--include,
# eg:
#
#
$Conf{RsyncArgs}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncargs%7d>
= [
# # original arguments here
# '-v',
# '--exclude', '/proc',
# '--exclude', '*.tmp',
# ];
#
$Conf{RsyncArgs}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncargs%7d>
= [
#
# Do not edit these!
#
'--numeric-ids',
'--perms',
'--owner',
'--group',
'--devices',
'--links',
'--times',
'--block-size=2048',
'--recursive',
#
# If you are using a patched client rsync that supports the
# --checksum-seed option (see http://backuppc.sourceforge.net
),
# then uncomment this to enabled rsync checksum cachcing
#
#'--checksum-seed=32761',
#
# Add additional arguments here
#
'-D',
];
#
Contents of file /var/lib/backuppc/pc/hp7670/config.pl , (SPECIFIC
CONFIG.PL 4 THE PC IN QUESTION)
$Conf{XferMethod}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bxfermethod%7d>
= 'rsyncd';
$Conf{RsyncShareName}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncsharename%7d>
= ['cDrive','dDrive'];
$Conf{BackupFilesExclude}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bbackupfilesexclude%7d>
= {
'c' => ['/Documents and Settings/*/Local Settings/Temporary Internet
Files','/WINDOWS/Temp','/pagefile.sys','hiberfil.sys','Corbeille'],
'd' => ['/Dowload'],
};
$Conf{RsyncdUserName}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncdusername%7d>
= 'backuppc';
$Conf{RsyncdPasswd}
<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncdpasswd%7d>
= '****';
Contents of file /var/lib/backuppc/pc/hp7670/LOG, (LOG FILE SHOWING NO
BACKUP 4 DDRIVE)
2007-03-27 23:00:01 full backup started for directory cDrive
2007-03-29 00:45:39 full backup started for directory dDrive
2007-03-29 00:45:39 Got fatal error during xfer (Unknown module 'dDrive')
2007-03-29 00:45:44 Backup aborted (Unknown module 'dDrive')
2007-03-29 00:45:44 Saved partial dump 0
Contents of file /var/lib/backuppc/pc/hp7670/XferLOG.0.z, (XFER LOG,
obviously NOT passing any sent exclude argument)
Connected to 192.168.0.3:873, remote version 29
Negotiated protocol version 26
Connected to module cDrive
Sending args: --server --sender --numeric-ids --perms --owner --group -D
--links --times --block-size=2048 --recursive -D --ignore-times . .
Remote[1]: rsync: readlink "ygdrive/c/WINDOWS/system32/c:/Documents and
Settings/Invité/Local Settings/Temporary Internet
Files/Content.IE5/4UJFAWQ5/fahrplan_f;dcopt=ist;kw=Lausanne,Land-CH,Geneve,Land-CH,,Paket-Pendler,Paket-Agglomeration-Lausanne,Kanton-VD,WG-12,WR-1;sz=468x60;tile=1;ord=704547482828[1]"
(in cDrive) failed: File name too long (91)
Done: 90938 files, 49341881443 bytes
Connected to 192.168.0.3:873
, remote version 29
Negotiated protocol version 26
Error connecting to module dDrive at 192.168.0.3:873: Unknown module 'dDrive'
Got fatal error during xfer (Unknown module 'dDrive')
Backup aborted (Unknown module 'dDrive')
Contents of file /var/lib/backuppc/pc/hp7670/XferLOG.0.z, (ERROR LOG)
Connected to 192.168.0.3:873, remote version 29 Negotiated protocol
version 26 Connected to module cDrive Sending args: --server --sender
--numeric-ids --perms --owner --group -D --links --times --block-size=2048
--recursive -D --ignore-times . . Remote[1]: rsync: readlink
"ygdrive/c/WINDOWS/system32/c:/Documents and Settings/Invité/Local
Settings/Temporary Internet
Files/Content.IE5/4UJFAWQ5/fahrplan_f;dcopt=ist;kw=Lausanne,Land-CH,Geneve,Land-CH,,Paket-Pendler,Paket-Agglomeration-Lausanne,Kanton-VD,WG-12,WR-1;sz=468x60;tile=1;ord=704547482828[1]"
(in cDrive) failed: File name too long (91)
Program Files/Putty/backuphome.tar.bz2: fatal error: md4 doesn't match on
retry; file removed
MD4 does't agree: fatal error on #59694 (Program Files/Putty/backuphome.tar.bz2)
Done: 90938 files, 49341881443 bytes
Connected to 192.168.0.3:873, remote version 29
Negotiated protocol version 26
Error connecting to module dDrive at
192.168.0.3:873: Unknown module 'dDrive'
Got fatal error during xfer (Unknown module 'dDrive')
Backup aborted (Unknown module 'dDrive')
Now for my second PC which have no D drive things run smooth with the directory
properly excluded
(here is the contents of file /var/lib/backuppc/pc/dell4550/config.pl
$Conf{XferMethod}<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bxfermethod%7d>=
'rsyncd';
$Conf{RsyncShareName}<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncsharename%7d>=
'cDrive';
$Conf{BackupFilesExclude}<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7bbackupfilesexclude%7d>=
['/Documents and Settings/*/Local Settings/Temporary Internet Files',
'/WINDOWS/Temp', '/pagefile.sys', '
hiberfil.sys', 'Corbeille'];
$Conf{RsyncdUserName}<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncdusername%7d>=
'backuppc';
$Conf{RsyncdPasswd}<http://localhost/backuppc/index.cgi?action=view&type=docs#item_%24conf%7brsyncdpasswd%7d>=
'****';)
Must be a syntax problem somehow!
Thanks!
Guy
2007/3/28, Craig Barratt < [EMAIL PROTECTED]>:
>
> Guy writes:
>
> > I am a very happy user of backuppc and take this opportunity to give
> my
> > congratulations for this outstanding software. I have implemented
> backuppc
> > in my home network (2 WinXP home boxes + Kuduntu laptop).
> >
> > The programs sits on an Ubuntu 6.10 box and I am using version 2.12and
> > rsyncd for the pcs. I am using the programs for a couple of weeks only
> and
> > still learn it, and have a lot more to learn (archiving, restore...
> etc).
> >
> > But what I saw is that there are many errors in the error.log for
> files too
> > long coming from directories that I explicitly excluded !?!
> >
> > In my config.pl for the PCs
> > $Conf{BackupFilesExclude} = ['/WINDOWS/Temp', '/Documents and
> > Settings/Administrateur/Local Settings/Temporary Internet Files',
> > '/pagefile.sys'];
> >
> > In the Xferlog for that PC:
> > Send exclude: /WINDOWS/Temp
> >
> > So it looks like only the first directory is sent to be excluded but
> none of
> > the others?
>
> That is strange. The $Conf{BackupFilesExclude} setting should
> include every directory or file you mention.
>
> My only guess is that the per-PC config file is overriding
> the global setting above. If not, I'd be interested in seeing
> the entire log file and the per-PC and main config files.
>
> Craig
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/