Skip to content

rsync locks up forever if -z flag used, fails with error 130 if ^C given #64

Closed
@PhotoJim

Description

@PhotoJim

Hi,

I use an rsync script to backup up many different machines (Debian, Ubuntu, Linux Mint, and NetBSD) to my server. Once working, the script is invoked automatically using rsync. I do the backup using passwordless login.

I accidentally enabled the -z flag on my first script file. I usually use this when backing up from remote, and don't use it when backing up locally. This machine is local so it doesn't need -z, but the first iteration used -z:

rsync -a -z -e "ssh -i /root/.ssh/backup" --progress --delete --exclude /sys --exclude /dev --exclude /proc --exclude /public / fqdnpath.to.server:/home/jim/backup/atherton/

Doing the backup this way, the backup just locks up at some point - not always the same point.

I discovered I could pull the backup from the server (unwittingly not using -z, since I didn't know I was using -z from the Raspberry Pi). All was fine.

My backup script worked from the pi in this case - probably because it didn't have much to do.

This is when I discovered the -z. I removed it, deleted the backup from the server, and ran the script. The backup was created without issue.

It seems that -z does something that causes some sort of failure in rsync. There's plenty of free RAM (>100 MB) while rsync is running but locked up. ^C kills it and that's when I get error 130 (Unknown Error).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions