From 9547f357ce4445b50b2da59f54fbcbf0e1b479cc Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 24 Aug 2023 10:58:04 +0200 Subject: [PATCH] feat: enable ftp backups --- Dockerfile | 2 +- run-backup.sh | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 437d393..982aebe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM kopia/kopia ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update && apt-get install -y cron postgresql-client && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y cron postgresql-client lftp && rm -rf /var/lib/apt/lists/* ARG KOPIA_CRON_SCHEDULE ENV KOPIA_CRON_SCHEDULE ${KOPIA_CRON_SCHEDULE} diff --git a/run-backup.sh b/run-backup.sh index 3c9ccd9..13f6890 100755 --- a/run-backup.sh +++ b/run-backup.sh @@ -8,17 +8,13 @@ then PGPASSWORD=$KOPIA_PG_PASSWORD pg_dump --host=$KOPIA_PG_HOST --username=$KOPIA_PG_USER $KOPIA_PG_DATABASE > /backup/database/$KOPIA_PG_DATABASE.sqldump || exit 1 fi -# if [[ -v KOPIA_FTP_HOST ]]; -# then -# echo "Downloading from ftp server ${KOPIA_FTP_HOST}" -# -# lftp -u "$KOPIA_FTP_USER","$KOPIA_FTP_PASSWORD" $KOPIA_FTP_HOST <