unverschlüsselt
Some checks failed
odoo-restore-open_workshop-install / run-odoo-backup-in-docker (push) Failing after 35s
Some checks failed
odoo-restore-open_workshop-install / run-odoo-backup-in-docker (push) Failing after 35s
This commit is contained in:
parent
bf1c9ea88c
commit
e511ed797d
|
|
@ -24,6 +24,7 @@ cd /root # Wechselt in das Home-Verzeichnis des Benutzers.
|
||||||
# Holt die verschlüsselte Backup-Datei vom Remote-SFTP-Server in das lokale Verzeichnis.
|
# Holt die verschlüsselte Backup-Datei vom Remote-SFTP-Server in das lokale Verzeichnis.
|
||||||
sshpass -p "${sftp_password}" sftp -i ~/.ssh/id_rsa ssh-${sftp_user}@${sftp_host}:${remote_directory} <<EOF
|
sshpass -p "${sftp_password}" sftp -i ~/.ssh/id_rsa ssh-${sftp_user}@${sftp_host}:${remote_directory} <<EOF
|
||||||
get ${BACKUP_NAME}.gpg
|
get ${BACKUP_NAME}.gpg
|
||||||
|
get ${BACKUP_NAME}
|
||||||
EOF
|
EOF
|
||||||
# Prüft, ob der vorherige Befehl erfolgreich war, sonst bricht das Skript ab.
|
# Prüft, ob der vorherige Befehl erfolgreich war, sonst bricht das Skript ab.
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
@ -37,9 +38,9 @@ cd /root
|
||||||
#gpgconf --kill gpg-agent
|
#gpgconf --kill gpg-agent
|
||||||
|
|
||||||
# Backup entschlüsseln
|
# Backup entschlüsseln
|
||||||
echo "${gpg_password}" | gpg --batch --yes --passphrase-fd 0 --pinentry-mode loopback \
|
#echo "${gpg_password}" | gpg --batch --yes --passphrase-fd 0 --pinentry-mode loopback \
|
||||||
-d "${BACKUP_DIR}/${BACKUP_NAME}.gpg" \
|
# -d "${BACKUP_DIR}/${BACKUP_NAME}.gpg" \
|
||||||
> "${BACKUP_DIR}/${BACKUP_NAME}.gpg" || report_failure "Backup decryption"
|
# > "${BACKUP_DIR}/${BACKUP_NAME}.gpg" || report_failure "Backup decryption"
|
||||||
|
|
||||||
|
|
||||||
curl -X POST -s \
|
curl -X POST -s \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user