minio support for restore
This commit is contained in:
12
restore.sh
12
restore.sh
@@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
gpg --import /keys/*
|
gpg --import /keys/*
|
||||||
|
|
||||||
aws s3 ls s3://$S3_BUCKET_NAME
|
AWS_ENDPOINT_OPTION=
|
||||||
echo "These are the files currently available in your backup bucket."
|
if [ "$AWS_USE_MINIO" -eq 1 ] ; then
|
||||||
echo "Which file contains the backup you want to restore from?"
|
aws configure set default.s3.signature_version s3v4
|
||||||
echo -n "File name: "
|
AWS_ENDPOINT_OPTION="--endpoint-url https://${MINIO_ENDPOINT}"
|
||||||
read RESTORE_FILE
|
fi
|
||||||
|
|
||||||
cd /restore
|
cd /restore
|
||||||
|
|
||||||
aws s3 cp s3://$S3_BUCKET_NAME/$RESTORE_FILE .
|
aws ${AWS_ENDPOINT_OPTION} s3 cp s3://$S3_BUCKET_NAME/$RESTORE_FILE .
|
||||||
|
|
||||||
gpg --output ./restore.tar.xz --decrypt $RESTORE_FILE
|
gpg --output ./restore.tar.xz --decrypt $RESTORE_FILE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user