You can toggle volume scheduled snapshots and self-manage snapshots

tl;dr: fly vol update VOL_ID --scheduled-snapshots=(true/false)

We recently launched an option for customers to On-demand volume snapshots (Beta) so you can have more flexibility for snapshots and this actually enabled us to do something some customers were interested: self-managed snapshots. Hear me out just a bit.

How things used to happen

  • Each day we snapshot your volumes and each snapshot lasts 5 days (If the snapshot deletion job takes longer to delete it you might get one extra day :slight_smile:)
  • You can’t change when your scheduled snapshot will be started.

What can you do right now

You can disabled our scheduled snapshots and snapshot it yourself

  • Want to do one snapshot per hour? You can now setup a cron-job of sort that hits our API each hour.
  • You don’t care about snapshots mostly and just want to do once in forever (say you want to do something very dangerous to your volume)? Disable and do on-demand snapshots whenever you need
  • You don’t want snapshots at all? Fine too, maybe you’re a LiteFS cloud user and just want to rely on LiteFS backups.

Do note we are still figuring billing for snapshots.

API usage

Its just a POST request.

curl --request POST \
  --url https://api.machines.dev/v1/apps/__APP_NAME__/volumes/__VOLUME_ID__ \
  --header 'Content-Type: application/json' \
  --data '{
  "auto_backup_enabled": false
}'
3 Likes

What happens if I snapshot every hour? does it keep each of those and then delete them after 5 days, or does each snapshot overwrite the existing one?

We delete them five days after right now. We don’t overwrite any. Worth mentioning we are still figuring pricing for on-demand snapshots too (Ill update the post updated).

1 Like