Fix backup/restore bug.

This commit is contained in:
Derek Smith 2023-03-19 13:44:09 -04:00
parent c67c872470
commit 5b612efb92
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -22,7 +22,7 @@ mkdir -p "$SSHFS_PATH"
sshfs "$PRIMARY_WWW_FQDN:$REMOTE_BACKUP_PATH" "$SSHFS_PATH" sshfs "$PRIMARY_WWW_FQDN:$REMOTE_BACKUP_PATH" "$SSHFS_PATH"
# rsync the files from the remote server to our local backup path. # rsync the files from the remote server to our local backup path.
rsync -av "$SSHFS_PATH/" "$LOCAL_BACKUP_PATH/" rsync -av "$SSHFS_PATH/" "$LOCAL_BACKUP_PATH"
# step 4: unmount the SSHFS filesystem and cleanup. # step 4: unmount the SSHFS filesystem and cleanup.
umount "$SSHFS_PATH" umount "$SSHFS_PATH"