Skip to content

backups are stored on the VM they exist to survive #39

Closed

Description

@arnelirobles

internal/backup/backup.go writes every backup to a directory on the VM being backed up (BK="$HOME/<name>-backups", or the stack's backupDir, same machine either way). The failure that backups exist for, losing the VM, deletes the app and all 14 retained backups in the same event. Cheap VMs are the audience, and cheap VMs get rebuilt, run out of disk, and disappear when a card expires.

The current behaviour is right as far as it goes: local-to-the-VM restores are fast and the prune logic keeps disk bounded. The gap is that nothing ever leaves the machine.

Shape

Smallest useful version first:

baryovm stack backup app --pull      # take the backup, then scp the new files to ~/.baryovm/backups/app/

That alone breaks the shared fate: the operator's laptop becomes the second copy, over the SSH connection that already exists, with no new credentials and nothing to configure.

A remote object store (S3/B2/rclone) is the version agencies will eventually want, but it drags in credential handling that #14 has not resolved yet. Decide here whether --pull ships first and object storage waits for #14, which is my leaning, or whether both wait.

SECURITY.md note: pulled backups include the stack's config file copy, so the local backup dir needs the same 0600/owner-only treatment as fleet.json.

Activity

  1. added this to the Managed hosting milestone on Sep 5, 2026
  2. added
    theme/managed-hosting
    on Sep 10, 2026
  3. modified the milestones: 0.4.0, 0.5.0 on Sep 21, 2026
  4. self-assigned this
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/updatesafetytheme/managed-hostingtype/feature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions