diff --git a/BackupServerConfig.sh b/BackupServerConfig.sh index 637f6ff..669dd2d 100755 --- a/BackupServerConfig.sh +++ b/BackupServerConfig.sh @@ -74,7 +74,7 @@ if [[ -n "$FTPHOST" ]]; then ERROR "FTP subdirectory required for ftp server backup. Remote ftp backup aborted!" exit 1 fi - TMP=$(gpg --list-keys --with-colons | grep "$GPGKEY") + TMP=$(gpg --quiet --list-keys --with-colons | grep "$GPGKEY") if [[ -z "$TMP" ]]; then ERROR "Public key for encryption of server configuration data not found. Remote ftp backup aborted!" exit 1 @@ -82,7 +82,7 @@ if [[ -n "$FTPHOST" ]]; then cd $BACKUP_PATH || exit 1 rm -f "$BACKUP_FILE.gz.gpg" - gpg --quiet --encrypt -r "$GPGKEY" --trusted-key "$GPGKEY" "$BACKUP_FILE.gz" >/dev/null + gpg --quiet --encrypt -r "$GPGKEY" --trusted-key "$GPGKEY" "$BACKUP_FILE.gz" ftp -p -n "$FTPHOST" >/dev/null <