I can't seem to get this to work on BackupPC 4.1.3. I have a test script to
back up some home directories on a Ubuntu 16.04 server:
$Conf{BackupFilesExclude} = {
'/data' => [
''
]
};
$Conf{ClientNameAlias} = [
'ServerName'
];
$Conf{RsyncClientCmd} = '$sshPath -l backup $host nice -n 19 sudo $rsyncPath
$argList+';
$Conf{RsyncShareName} = [
'/home/dave'
];
$Conf{XferMethod} = 'rsync';
that generates the following log (I've obviously run multiple variations of
this test script earlier with slashes before or after everything I could think
of):
Contents of file /var/lib/backuppc/pc/test7/XferLOG.0.z, modified 2017-10-29
14:39:08
XferLOG file /var/lib/backuppc/pc/test7/XferLOG.0.z created 2017-10-29 14:39:07
Backup prep: type = full, case = 1, inPlace = 1, doDuplicate = 0, newBkupNum =
0, newBkupIdx = 0, lastBkupNum = , lastBkupIdx = (FillCycle = 0, noFillCnt = )
Running: /usr/local/bin/rsync_bpc --bpc-top-dir /var/lib/backuppc
--bpc-host-name test7 --bpc-share-name /home/dave --bpc-bkup-num 0
--bpc-bkup-comp 3 --bpc-bkup-prevnum -1 --bpc-bkup-prevcomp -1
--bpc-bkup-inode0 1 --bpc-attrib-new --bpc-log-level 1 -e /usr/bin/ssh\ -l\
root --rsync-path=/usr/bin/rsync --super --recursive --protect-args
--numeric-ids --perms --owner --group -D --times --links --hard-links --delete
--delete-excluded --one-file-system --partial --log-format=log:\ %o\ %i\ %B\
%8U,%8G\ %9l\ %f%L --stats --checksum --timeout=72000 ServerName:/home/dave/ /
full backup started for directory /home/dave
Xfer PIDs are now 10015
This is the rsync child about to exec /usr/local/bin/rsync_bpc
Xfer PIDs are now 10015,10048
xferPids 10015,10048
new recv cd+++++++++ rwxr-xr-x 1000, 1001 4096 .
same recv >f..t.og... rw------- 1000, 1001 599 .bash_history
same recv >f..tpog... rw-r--r-- 1000, 1001 220 .bash_logout
same recv >f..tpog... rw-r--r-- 1000, 1001 3771 .bashrc
same recv >f..tpog... rw-r--r-- 1000, 1001 655 .profile
same recv >f..tpog... rw-r--r-- 1000, 1001 0
.sudo_as_admin_successful
same recv >f..tp..... rw-r--r-- 0, 0 0 junque
new recv cd+++++++++ rwx------ 1000, 1001 4096 .cache
same recv >f..tpog... rw-r--r-- 1000, 1001 0
.cache/motd.legal-displayed
new recv cd+++++++++ rwx------ 1000, 1001 4096 .ssh
same recv >f..tpog... rw-r--r-- 1000, 1001 888
.ssh/known_hosts
new recv cd+++++++++ rwxr-xr-x 1000, 1001 4096 data
new recv cd+++++++++ rwxr-xr-x 1000, 1001 4096 data/ul
same recv >f..tpog... rw-r--r-- 1000, 1001 399
data/ul/BackupPC_id_rsa.pub
same recv >f..tpog... rw-r----- 1000, 1001 185
data/ul/servername.pl
Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0
sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 23 inode
Number of files: 15
Number of files transferred: 10
Total file size: 6717 bytes
Total transferred file size: 6717 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 510
File list generation time: 0.032 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 326
Total bytes received: 1024
sent 326 bytes received 1024 bytes 900.00 bytes/sec
total size is 6717 speedup is 4.98
DoneGen: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 10 filesTotal,
6717 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 30 inode
Xfer PIDs are now
Running BackupPC_refCountUpdate -h test7 on test7
Xfer PIDs are now 10052
BackupPC_refCountUpdate: doing fsck on test7 #0 (full) since $ConfRefCntFsck ==
1
BackupPC_refCountUpdate: host test7 got 0 errors (took 0 secs)
Xfer PIDs are now
Finished BackupPC_refCountUpdate (running time: 0 sec)
Xfer PIDs are now
All variations show the data folder in the backups and I don't see the exclude
files directive anywhere in the command line which is likely the problem.
Suggestions?
TIA,
Dave
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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/