What's the proper way to log any errors or warnings when performing a quiet rsync?
This is what I currently run from my crontab:
gsutil -m -q rsync -r -C /mount1/share/folder gs://my-bucket-1/folder/ > /mount2/share/folder/gsutil.log
Since the log file is always completely empty and I'm uploading terabytes of data I'm starting to think that maybe even errors and warnings are being supressed.
-q
but they should get sent to stderr instead of stdout. Can you redirect stderr as well? In general though, you shouldn't receive many errors, if any. – Chaucommand 2>&1 >> gsutil.log
. Is that what you mean? It's hard to know if it is really working since there is absolutely nothing being logged to the file. – Stylescommand >> gsutil.log 2>&1
. – Chaucommand >> gsutil.log 2>&1
. Thank you. Still not getting anything in the log when using -q though... but I guess that's a good thing! :) – Styles