Skip to content

Instantly share code, notes, and snippets.

@dirocco
Created November 11, 2020 19:24
Show Gist options
  • Save dirocco/3d3a4481a822b6a5e3f8e3634d3dd792 to your computer and use it in GitHub Desktop.
Save dirocco/3d3a4481a822b6a5e3f8e3634d3dd792 to your computer and use it in GitHub Desktop.
#!/bin/bash
BACKUP_BUCKET=s3backupbucketname
pushd /mnt/backup/gphotos
/home/ubuntu/.local/bin/gphotos-sync/gphotos-sync .
tar cf - . | aws s3 cp --storage-class=DEEP_ARCHIVE - s3://$BACKUP_BUCKET/gphoto.tar
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment