Hello,

I run into some really strange case I haven't seen so far over the years. I syncing a lot of different macines, raspberry pis to a backup server nightly.
Lately one of them misbehaves.

Server rsync:  rsync  version 3.1.2  protocol version 31
Client rsync:  rsync  version 3.1.3  protocol version 31

Command used:
rsync --numeric-ids --delete --delete-excluded --delete-after -f "merge ${BUFFER}" --stats -e "${SSH_CMD}" root@${BACKUP_HOST}:/ $BACKUPROOT/

Sometimes when I run this script from the server it just decides to delete ALL files what it already have and sync is done.

I run it again couple of minutes after it syncs everything.

What can cause such a behavior? I can of course remove the delete directives but then the local copy will become messy over time and this perfectly works with all other machines.

It is not even that it cannot connect with rsync timeout and then it decides to delete the data. It can connect then decides to delete all data and done.

Rsync is run by root in any case so it's not a privilege problem.

Any ideas?

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to