fix: remove ftp test
This commit is contained in:
parent
1539a357b3
commit
37e9eec1d0
1 changed files with 11 additions and 11 deletions
|
@ -8,17 +8,17 @@ 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
|
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
|
fi
|
||||||
|
|
||||||
if [[ -v KOPIA_FTP_HOST ]];
|
# if [[ -v KOPIA_FTP_HOST ]];
|
||||||
then
|
# then
|
||||||
echo "Downloading from ftp server ${KOPIA_FTP_HOST}"
|
# echo "Downloading from ftp server ${KOPIA_FTP_HOST}"
|
||||||
|
#
|
||||||
lftp -u "$KOPIA_FTP_USER","$KOPIA_FTP_PASSWORD" $KOPIA_FTP_HOST <<EOF
|
# lftp -u "$KOPIA_FTP_USER","$KOPIA_FTP_PASSWORD" $KOPIA_FTP_HOST <<EOF
|
||||||
set ssl:verify-certificate no
|
# set ssl:verify-certificate no
|
||||||
mirror --delete --parallel=4 --use-pget-n=10 / /backup/ftp;
|
# mirror --delete --parallel=4 --use-pget-n=10 / /backup/ftp;
|
||||||
exit
|
# exit
|
||||||
EOF || exit 1
|
# EOF || exit 1
|
||||||
fi
|
# fi
|
||||||
|
#
|
||||||
kopia repository connect filesystem \
|
kopia repository connect filesystem \
|
||||||
--path /repository \
|
--path /repository \
|
||||||
--override-hostname ${KOPIA_HOSTNAME} \
|
--override-hostname ${KOPIA_HOSTNAME} \
|
||||||
|
|
Loading…
Reference in a new issue