SNAPPER-BACKUP-CON(5)

πŸ“¦
version 0.13.0 Β· 4 versions
, in epel 10, fedora 44

πŸ’– SNAPPER-BACKUP-CON(5) πŸ’–

okay bestie, welcome to the Filesystem Snapshot Management corner of the manual, this one's called SNAPPER-BACKUP-CON(5) and it's literally all about how you tell snapper where to send your backups πŸ¦‹


✨ NAME ✨

snapper-backup-configs β€” configuration files for snapper backup configs πŸŽ€


🌸 DESCRIPTION 🌸

So every single file living at /etc/snapper/backup-configs/*.json is describing one snapper backup config. That's it, that's the whole job. One file, one config, no cap.

Each file uses JSON syntax and contains a single object made of key-value pairs. Simple. Clean. Iconic. πŸ’…


πŸ‘‘ KEY VALUE PAIRS πŸ‘‘

Here's the whole list of keys that can show up in the config file. No skipping, we're doing all of them, periodt.

  • config β€” the name of the snapper config. 🫢
  • target-mode β€” either local or ssh-push.
  • source-path β€” the path of the source subvolume. bestie this must match the subvolume of the corresponding snapper config, fr fr, no vibe-checking your way around it.
  • target-path β€” the path of the target subvolume or mount point. πŸ“
  • automatic β€” a boolean that enables automatic transfer and delete for the backup config using a systemd timer service. set it and forget it energy ✨
  • ssh-host β€” the name of the target host. Required for target mode ssh-push.
  • ssh-port β€” the port of the target host. Optional for target mode ssh-push.
  • ssh-user β€” the user on the target host. Optional for target mode ssh-push.
  • ssh-identity β€” an ssh-identity to access the host without requiring a password or passphrase. Optional for target mode ssh-push. πŸ”‘
  • target-btrfs-bin β€” location of the btrfs binary on the target. can also be used to install wrapper scripts. Optional.
  • target-findmnt-bin β€” location of the findmnt binary on the target. can also be used to install wrapper scripts. Optional.
  • target-mkdir-bin β€” location of the mkdir binary on the target. can also be used to install wrapper scripts. Optional.
  • target-realpath-bin β€” location of the realpath binary on the target. can also be used to install wrapper scripts. Optional.
  • target-rm-bin β€” location of the rm binary on the target. can also be used to install wrapper scripts. Optional.
  • target-rmdir-bin β€” location of the rmdir binary on the target. can also be used to install wrapper scripts. Optional.

🌈 EXAMPLES 🌈

πŸ’œ local backups

an example backup config for local backups, look at her:

{
    "config": "root",
    "target-mode": "local",
    "automatic": true,
    "source-path": "/",
    "target-path": "/backups/root"
}

πŸ’œ remote backups via ssh-push

an example backup config for remote backups via ssh-push, she's a little extra but we love her:

{
    "config": "root",
    "target-mode": "ssh-push",
    "automatic": false,
    "source-path": "/",
    "target-path": "/backups/eberich/root",
    "ssh-host": "backups.example.com",
    "ssh-identity": "/etc/snapper/certs/id_ecdsa"
}

🧚 HOMEPAGE 🧚

http://snapper.io/ β€” go be nosy, bestie πŸ’–


⭐ AUTHORS ⭐

Arvin Schnell <aschnell@suse.com> β€” the icon, the moment, the main character πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, you ate it up πŸŽ€ this was version 0.13.0, dated 2025-04-09, from the SNAPPER-BACKUP-CON(5) era β€” go forth and back up your subvolumes, ily πŸ’…βœ¨

πŸ“¦ where this page comes from