You can run the script one of two ways. You can either copy/paste the script into your folder and run it from there, or you can run it on demand.
- Visit https://github.com/JacobFrericks/backup_data/blob/main/backup.py and copy the script
- Create a new file named
backup.pyon your EC2 instance - Paste the script in the file
- Create and fill out data.json
- Run the script:
python3 backup.py
- Run the script:
python3 <(curl -s https://raw.githubusercontent.com/JacobFrericks/backup_data/main/backup.py)