Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

fanaticio/s3_objects_sync

Repository files navigation

Build Status Coverage Status Code Climate

Installation steps

  • bundle
  • cp s3_objects_sync.yml{.sample,}
  • edit the s3_objects_sync.yml
  • run the script

How do I know the number of objects processed?

Redirect the stdout to a log file:

./s3_objects_sync.rb > s3_objects_sync.log

and, in another shell, you can run the following command:

watch -n1 "awk '
  BEGIN { info=0; error=0; already_copied=0; copied=0 }
  /- copied/       { copied +=1 }
  /already copied/ { already_copied +=1 }
  /- info -/       { info +=1 }
  /- error -/      { error +=1 }
  END {
    total_copied = already_copied + copied;
    print \"copied: \"copied\" --  already copied: \"already_copied\" --  total copied: \"total_copied\" --  error: \"error;
  } ' ./s3_objects_sync.log"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages