Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
235b1a10d8
|
|||
1a01c67759
|
|||
a45b2cfc60
|
|||
2b47398f95
|
@@ -1,6 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOCKER_BASEIMAGE=alpine:latest
|
||||
TAG=$1
|
||||
|
||||
docker buildx build --platform linux/amd64,linux/arm64 --push -t hub.realmanual.ru/pub/sqlite-backup \
|
||||
--build-arg DOCKER_BASEIMAGE=${DOCKER_BASEIMAGE} .
|
||||
if [ -z "$TAG" ]; then
|
||||
TAG=latest
|
||||
fi
|
||||
|
||||
docker buildx build --platform linux/amd64,linux/arm64 --push -t git.realmanual.ru/pub/sqlite-backup:${TAG} .
|
||||
|
@@ -14,19 +14,20 @@ secret_access_key = $MINIO_APPLICATION_KEY
|
||||
endpoint = $MINIO_ENDPOINT
|
||||
region = $MINIO_LOCATION
|
||||
acl = private
|
||||
no_check_bucket = true
|
||||
EOF
|
||||
|
||||
case $1 in
|
||||
copy)
|
||||
echo "copy from $2 to $3"
|
||||
rclone copy --progress $2 myminio:$3
|
||||
rclone copy --progress $2 $3
|
||||
;;
|
||||
list)
|
||||
echo "list $2"
|
||||
rclone ls myminio:$2
|
||||
rclone ls $2
|
||||
;;
|
||||
delete)
|
||||
echo "delete $2"
|
||||
rclone delete myminio:$2
|
||||
rclone delete $2
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user