- bundle
- cp s3_objects_sync.yml{.sample,}
- edit the s3_objects_sync.yml
- run the script
Redirect the stdout to a log file:
./s3_objects_sync.rb > s3_objects_sync.logand, 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"

