At my job, we have a central Backup server, running Debian Wheezy, and on-site servers at each site, also running Debian Wheezy.
A few weeks ago, the central office tech emailed me that the backup did not complete properly the night before. We have been troubleshooting ever since, but still cannot seem to solve the issue. The only thing spat back was the following in a cron
email:
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(549) [generator=3.0.9]
rsync error: received SIGUSR1 (code 19) at main.c(1316) [receiver=3.0.9]
Googling that phrase leads to pretty much nothing. I found a post from 2002 about removing the -v
switch, but that's not being used in the script. The script that runs every night is below:
#!/bin/sh
set -e
x="delete --exclude-from=r_filter --delete-excluded"
rsync -aq --$x site1.company.com:/etc /BACKUPS/site1
rsync -aq --$x site1.company.com:/home /BACKUPS/site1
It is set to run at 3:00am, Monday to Friday, from the central backup server. If they try running it manually during the day, it runs fine (cause most of the files were backed up previously?). It's using the -a
switch, so I assume it can archive opened files? That's about all I can think of.
What would be our next step for figuring this out?
-a
flag is just a shorthand for-rlptgoD
, which basically means it operates recursively, and tries to preserve links, devices, and file attributes. I suggest adding-v
(or-vv
) for verbose output fromrsync
. You might also try running the underlyingssh
command in verbose mode by adding-e 'ssh -v'
to yourrsync
command, as thersync
error may just be a symptom of a problem with the underlying network transport. Fair warning, this may generate a lot of output.