Skip to content

Commit

Permalink
CHG backup latest file single location
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Sep 18, 2022
1 parent ca6884a commit cd4bedf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/anubis/jobs/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ mysqldump \
if [ -n "${SFTP_LOCATION}" ]; then
echo 'scping file to remote'
echo "put /tmp/${BACKUP_FILE} ${SFTP_LOCATION}" | sftp ${SFTP_USER}@${SFTP_HOST}
echo "put /tmp/${BACKUP_FILE} ${SFTP_LOCATION}/latest.sql.gz" | sftp ${SFTP_USER}@${SFTP_HOST}
fi

0 comments on commit cd4bedf

Please sign in to comment.