X-Git-Url: http://git.hcoop.net/clinton/scripts.git/blobdiff_plain/c8f28654eb0a554e59d14a2c2c12ffe39f900f72..8862af6d48b78cf6cf055dec506e02704dbf141c:/s3.common?ds=sidebyside 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