Hello all,
I used to use BackupPC some time ago and it was really great. Now I have a chance to use it for a project, and I have some (surely simple) question. Apologies if some of this is alswered already, pointers to documentations are welcome:
- Using rsync, what's the syntax to tell BackupPc to not backup any data for a given host? I only want to run a DumpPreUserCmd without dumping any data. I've tried every variation of $Conf{RsyncShareName} $Conf{BackupFilesExclude}. Among others, I thought unsetting $Conf{RsyncShareName} or using $Conf{RsyncShareName} = [ '/' ] and $Conf{BackupFilesExclude} = [ '/' ] should work, but no luck, the whole / is still backed up. Of course I could create a dummy directory and back that up, but I think it should be possible to do what I'm trying to do.
- How do people run DumpPreUserCmd etc. on windows machines?
- In a host configuration file, if I try to redefine values coming from the main config by adding values to them (for example:
push @{$Conf{RsyncArgs}}, '-4';
to get the -4 extra option when backing up this particular host), the dump fails with "aborted with signal=PIPE". If I run the dump manually, I dee that the extra option is being used, but then the backup fails, here the full output (for localhost, but it fails equally woth any other host):
$ /usr/share/backuppc/bin/BackupPC_dump -v -f localhost
cmdSystemOrEval: about to system /bin/ping -c 1 localhost
cmdSystemOrEval: finished: got output PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.056 ms
--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.056/0.056/0.056/0.000 ms
cmdSystemOrEval: about to system /bin/ping -c 1 localhost
cmdSystemOrEval: finished: got output PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.030 ms
--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.030/0.030/0.030/0.000 ms
CheckHostAlive: returning 0.030
full backup started for directory / (baseline backup #0)
started full dump, share=/
Running: /usr/bin/ssh -q -x -l root localhost /usr/bin/rsync --server --sender -4 --ignore-times . /
Xfer PIDs are now 7102
xferPids 7102
Got remote protocol 30
Negotiated protocol version 28
Checksum seed is 1377773725
Got checksumSeed 0x521f289d
Remote[2]: skipping directory .
Got file list: 0 entries
Child PID is 7106
Xfer PIDs are now 7102,7106
xferPids 7102,7106
Sending csums, cnt = 0, phase = 0
Read EOF:
Tried again: got 0 bytes
Can't write 4 bytes to socket
Sending csums, cnt = 0, phase = 1
Child is aborting
Done: 0 files, 0 bytes
Got fatal error during xfer (aborted by signal=PIPE)
Backup aborted by user signal
Not saving this as a partial backup since it has fewer files than the prior one (got 0 and 0 files versus 0)
dump failed: aborted by signal=PIPE
Sure enough, if I put the -4 in the main config, or redefine $Conf{RsyncArgs} entirely without making reference to its previous value, the backup succeeds. I'm not sure what's going on here; should what I'm doing be possible?
- What exactly is "BackupPCd" (note the "d" at the end)? It is mentioned in
config.pl but I can find no documentation.
Thanks in advance for any help.