[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

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
0
softbless
Asked:
softbless
1 Solution
 
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
 
softblessAuthor Commented:
it would very helpfull, if from start you provide the complete command.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now