Skip to content

Commit 724948f

Browse files
committed
WIP: A wee bit
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
1 parent 4898043 commit 724948f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Containerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
FROM postgres:13-alpine
1+
FROM postgres:18-alpine
22

33
RUN apk --no-cache add \
44
curl \
5-
bash
5+
bash \
6+
rclone
67

78
COPY entrypoint.sh /
89
RUN chmod +x /entrypoint.sh
910

11+
WORKDIR /backup
1012
ENTRYPOINT /entrypoint.sh

entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ echo "End backup"
2121

2222
## copy to destination
2323
echo "Copy to gcs"
24-
gsutil cp ${BACKUP_FILE} gs://${GCS_BUCKET}/${DB_NAME}/${BACKUP_FILE} && gsutil cp ${BACKUP_FILE} gs://${GCS_BUCKET}/${DB_NAME}/${BACKUP_FILE_LATEST}
24+
#rclone copy "${BACKUP_FILE}" "storage://${STORAGE_BUCKET}"
25+
#gsutil cp ${BACKUP_FILE} gs://${GCS_BUCKET}/${DB_NAME}/${BACKUP_FILE} && gsutil cp ${BACKUP_FILE} gs://${GCS_BUCKET}/${DB_NAME}/${BACKUP_FILE_LATEST}
2526

2627
END_TIMESTAMP=$(date +%s)
2728
BACKUP_DURATION=$((END_TIMESTAMP - START_TIMESTAMP))

0 commit comments

Comments
 (0)