Skip to content

Instantly share code, notes, and snippets.

@cam8001
Created June 25, 2021 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cam8001/1141620b6ccc075b010acc8ff16b898f to your computer and use it in GitHub Desktop.
Save cam8001/1141620b6ccc075b010acc8ff16b898f to your computer and use it in GitHub Desktop.
SSM Run Command Document for syncing a folder to s3
---
schemaVersion: '2.2'
description: State Manager Bootstrap Example
parameters: {}
mainSteps:
- action: aws:runShellScript
name: backupUnifi
inputs:
runCommand:
- aws s3 --region ap-southeast-2 sync <your-folder> s3://<your-bucket>
@cam8001
Copy link
Author

cam8001 commented Jun 25, 2021

Unifi autobackup location: /var/lib/unifi/backup/autobackup/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment