Need to know Rsync Argument

I need to know Rsync argument that could write the Rsync log about this information :

# When the backup process start, and what time it's finished
# Number of files and number of files transferred
# Total file size and total file size transferred

Thanks a bunch
softblessAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mchkorgCommented:
Hi,

1) why don't you call "date" before and after ? or call "time rsync <your_parameters>" instead of "rsync <your_parameters>"

2 & 3) maybe with --progress and/or --verbose. Not sure

Regards
0
bman21Commented:
below is an example output of rsync with the "--verbose" option set:

receiving file list ... done
mysql/
mysql/ib_logfile0
mysql/ib_logfile1
mysql/ibdata1
mysql/mysql.sock
mysql/relay-log.info
mysql/www-bin.000001
mysql/www-bin.000002
mysql/www-bin.000003
mysql/www-bin.000004
...

sent 13308 bytes  received 2913516851 bytes  184464.86 bytes/sec
total size is 103607887831  speedup is 35.56

Not sure what the --progress option will tell you, but you could easily script something that will pull the date or timestamp when your rsync starts and when it ends like mchkorg suggested.  if you want an example script let me know.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
softblessAuthor Commented:
it would very helpfull, if from start you provide the complete command.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage Software

From novice to tech pro — start learning today.