X-Git-Url: http://git.hcoop.net/clinton/scripts.git/blobdiff_plain/db0b4e21c969c3fb6a552b486334d191bdffa78c..8862af6d48b78cf6cf055dec506e02704dbf141c:/s3.common diff --git a/s3.common b/s3.common index 87338c6..f5f2361 100644 --- a/s3.common +++ b/s3.common @@ -1,3 +1,4 @@ +# -*- Shell-Script -*- # Common functions for dealing with Amazon S3. # units for BWLIMIT are KB/s @@ -41,8 +42,10 @@ function move_over () { local subdir=$1 local file=$2 local dest=$BACKUPDIR/$subdir + local ret split -d -b ${CHUNKSIZE}m - ${file}. for i in ${file}.*; do + echo "Transferring $i to S3 ..." s3_cmd put $dest/$i $i rm -f $i done