Rsync transfer statistics

I wanted to take a look at the total amount of data that would be transferred for an rsync operation. Running


 /usr/bin/rsync --dry-run -avhz --delete -e ssh /sourcepath destserver:/destpath

would give the the Total Size of the /sourcepath but not the amount transferred. Adding --stats will give you the amount of data that needs to be transferred to get the /sourcepath and /destpath in sync

/usr/bin/rsync --dry-run -ahz --stats --delete -e ssh /sourcepath destserver:/destpath

Comments

Popular posts from this blog

Database, schema, and table sizes in Greenplum

Greenplum update with multiple tables

Show running queries on Postgresql/Greenplum