AeJ
AeJ

Reputation: 59

Get current progress of rsync daemon

I am running rsync process as a daemon. Rsync tool does not accept --progress and --daemon options together. I thought to parse the /var/log/messages and rsyncd.log file, is it a correct approach ? Is there any other possibility to get the current progress of the synced data ?

Current usage of rsync -

rsync --daemon --config="/etc/rsyncd1.conf" --address=10.2.2.3

After adding --progress option

rsync -v --progress --daemon --config="/etc/rsyncd1.conf" --address=10.2.2.3

Starting rsync [10.2.2.3]: rsync: --progress: unknown option (in daemon mode) (Type "rsync --daemon --help" for assistance with daemon mode.) rsync error: syntax or usage error (code 1) at options.c(1005) [client=3.0.6] [FAILED]

Upvotes: 2

Views: 1121

Answers (1)

yegorich
yegorich

Reputation: 4849

What about following workaround?

I've made a script, that calculates the whole rsync progress in Python. You could modify it to send needed info to syslog or whatever suits your needs and run it as daemon.

Upvotes: 1

Related Questions