mercurial/aws-s3-backup/files/mercurial-s3-backup.sh
changeset 136 1751be33651f
parent 56 59e94b4a91a2
child 157 5e5c9e605142
equal deleted inserted replaced
135:5fcc9627e7d3 136:1751be33651f
     6 BACKUP_TAR="/tmp/$BUCKET-$DATE.tgz"
     6 BACKUP_TAR="/tmp/$BUCKET-$DATE.tgz"
     7 
     7 
     8 tar -zc -f $BACKUP_TAR $BACKUP_DIR
     8 tar -zc -f $BACKUP_TAR $BACKUP_DIR
     9 aws s3 mb "s3://$BUCKET/"
     9 aws s3 mb "s3://$BUCKET/"
    10 aws s3 cp $BACKUP_TAR "s3://$BUCKET/"
    10 aws s3 cp $BACKUP_TAR "s3://$BUCKET/"
       
    11 
       
    12 rm $BACKUP_TAR