Skip to content

rsync errors are not detected when the log does not contain the error #64

@fthiery

Description

@fthiery

Doing a backup towards a pretty unreliable/slow NFS mount which tends to hog. I added --timeout 10 to the rsync flags, and tried to loop-run the script:

rsync_tmbackup.sh /data/ /backup/rsync/data exclude.txt
while [ $? -ne 0 ]; do
    rsync_tmbackup.sh /data/ /backup/rsync/data exclude.txt
done

However apparently rsync_tmpbackup.sh does return 0 in case of timeout.

rsync error: timeout in data send/receive (code 30) at io.c(820) [sender=3.1.1]
rsync_tmbackup: [WARNING] Rsync reported a warning, please check '/root/.rsync_tmbackup/2017-02-07-182327.log' for more details.
rsync_tmbackup: Backup completed without errors.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions