Hello,
On 12/20/2016 04:35 PM, aws backup wrote:
s3cmd put "$1" s3://bucket/ \
| tee /path/to/logfile.txt \
| tee >(mail -s 'Upload $filename' [email protected]
<mailto:[email protected]>) \
&& /usr/local/bin/terminal-notifier -message "s3cmd Upload of '$filename'
done"*
Slightly off-topic,
but if you're open to using a different program,
then amazon's official python interface (awscli) can synchronize the entire
directory for you, without having to use 'fwswatch+xargs' to handle individual
files:
$ sudo pip install awscli
$ aws configure
[ set your aws keys ]
$ aws s3 sync --exclude "*" --include "*.mp4" /path/to/local/files
s3://bucket/key
It will print a list of uploaded files which you can them email (with some
progress information noise).
Combine it with fswatch or inotify to detect changes in a directory and re-run
sync - might be easier than xargs+s3cmd.
- assaf
_______________________________________________
Findutils-patches mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/findutils-patches