Skip to content
Permalink
Browse files
Use the official AWS CLI instead of s3cmd
  • Loading branch information
tbouron committed Jun 21, 2018
1 parent e066c9c commit 60b3f515adf46515bc16f6857ffdabcc13eec82f
Showing 1 changed file with 4 additions and 4 deletions.
@@ -230,8 +230,8 @@ An example script to be invoked by CRON is shown below:
DATA_DIR=/path/to/base/dir/data

tar --exclude '*/backups/*' -czvf $BACKUP_FILENAME $DATA_DIR
# For s3cmd installation see http://s3tools.org/repositories
s3cmd put $BACKUP_FILENAME s3://mybackupbucket
# For AWS CLI installation see https://aws.amazon.com/cli
aws s3 cp $BACKUP_FILENAME s3://mybackupbucket
rm $BACKUP_FILENAME


@@ -255,7 +255,7 @@ An example script to be invoked by CRON is shown below:
--destinationDir $TEMP_DATA_DIR

tar --exclude '*/backups/*' -czvf $BACKUP_FILENAME $TEMP_DATA_DIR
# For s3cmd installation see http://s3tools.org/repositories
s3cmd put $BACKUP_FILENAME s3://mybackupbucket
# For AWS CLI installation see https://aws.amazon.com/cli
aws s3 cp $BACKUP_FILENAME s3://mybackupbucket
rm $BACKUP_FILENAME
rm -r $TEMP_DATA_DIR

0 comments on commit 60b3f51

Please sign in to comment.