DaanMatch - Patrick + Kenneth Backups Discussion#

📅 Thu Nov 3rd, 2022
🕔 5:30pm PST
🔗 https://meet.google.com/gzs-aosb-nuj

1. Call to Order#

2. Discussion#

Backing up With password-less SSH connections, you can send commands via SFTP. Two commands that can be run from any automation. Better without users. Kenneth will write the script. Patrick’s role is to check it at an interval.

Need to chmod 600 .pem file (and folder).

To connect to SSH:

ssh -i FieldWorker.pem ubuntu@xxx.xxx.xxx.xxx

To get tgz files:

scp -i FieldWorker.pem ubuntu@xxx.xxx.xxx.xxx:/var/www/flask/backup.tgz .

Images are in static/uploads_fieldworker, but had to rename file extension to .jpg (.png also works).

As backup gets larger and larger, we decided to use rsync to only download the difference. But need to have a backup, just incase rsync is corrupt.

Backup treatment AUTOMATED: Promote oldest weekly to monthly, and copy down a new weekly. MANUAL: Download latest weekly, do verification, and then promote oldest weekly.