File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM postgres:13 -alpine
1+ FROM postgres:18 -alpine
22
33RUN apk --no-cache add \
44 curl \
5- bash
5+ bash \
6+ rclone
67
78COPY entrypoint.sh /
89RUN chmod +x /entrypoint.sh
910
11+ WORKDIR /backup
1012ENTRYPOINT /entrypoint.sh
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ echo "End backup"
2121
2222# # copy to destination
2323echo " 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
2627END_TIMESTAMP=$( date +%s)
2728BACKUP_DURATION=$(( END_TIMESTAMP - START_TIMESTAMP))
You can’t perform that action at this time.
0 commit comments