Commit 3f1d5ddc authored by Rich Prohaska's avatar Rich Prohaska

remove s3 bucket by month

parent a8af167f
...@@ -10,7 +10,6 @@ function copy_to_s3() { ...@@ -10,7 +10,6 @@ function copy_to_s3() {
local s3_build_bucket=$1; local s3_release_bucket=$2; local mysql_distro=$3 local s3_build_bucket=$1; local s3_release_bucket=$2; local mysql_distro=$3
local ts=$(date +%s) local ts=$(date +%s)
local ymd=$(date +%Y%m%d -d @$ts) local ymd=$(date +%Y%m%d -d @$ts)
local ym=$(date +%Y%m -d @$ts)
local exitcode=0; local r=0 local exitcode=0; local r=0
for f in $(find . -maxdepth 1 \( -name $mysql_distro'*.tar.gz*' -o -name $mysql_distro'*.rpm*' \) ) ; do for f in $(find . -maxdepth 1 \( -name $mysql_distro'*.tar.gz*' -o -name $mysql_distro'*.rpm*' \) ) ; do
f=$(basename $f) f=$(basename $f)
...@@ -24,9 +23,6 @@ function copy_to_s3() { ...@@ -24,9 +23,6 @@ function copy_to_s3() {
r=$? r=$?
echo `date` s3put $s3_build_bucket-date $ymd/$f $r echo `date` s3put $s3_build_bucket-date $ymd/$f $r
if [ $r != 0 ] ; then exitcode=1; fi if [ $r != 0 ] ; then exitcode=1; fi
# copy to partition by date
s3mkbucket $s3_build_bucket-$ym
s3copykey $s3_build_bucket-$ym $f $s3_build_bucket $f
done done
if [[ $git_tag =~ tokudb-.* ]] ; then if [[ $git_tag =~ tokudb-.* ]] ; then
s3mkbucket $s3_release_bucket-$git_tag s3mkbucket $s3_release_bucket-$git_tag
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment