Hi All,
I am unable to accomplish the day10 task of devops.
I have written the below script. can some one let me know what is wrong here.
#!/bin/bash
SRC_DIR=“/var/www/html/official”
BACKUP_NAME=“xfusioncorp_official.zip”
LOCAL_DEST=“/backup/”
REMOTE_USER=“natasha”
REMOTE_HOST=“ststor01”
REMOTE_DEST=“/backup/”
zip -r “${LOCAL_DEST}${BACKUP_NAME}” “$SRC_DIR”
scp “${LOCAL_DEST}${BACKUP_NAME}” “${REMOTE_USER}@${REMOTE_HOST}:${REMOTE_DEST}”
echo “Backup completed and transferred successfully.”
refer to this if its helps
Thank you @raymond.baoly . I completed the task now. Issue was with the keys generation.
Thank you @MIQDAD . I completed the task now. Issue with keys generation
1 Like