IncusOS: Questions about incus copy behavior

You can have archival backups on standby as snapshots with the “export” command. I have a script which makes an export and then saves the backups as “container_name.0/container” , “container_name.1/container” … etc. where the date of the directory is the date of backup because on backup the directory named “container.N” is moved to “container.N+1”

Because

  • it is recommended that you backup all of /var/lib/incus
  • the default backup location for the export command is /var/lib/incus/backups

I have the exports going somewhere else besides /var/lib/incus/backups

That script is at GitHub - AJRepo/incus_tools: Tools for Incus .

Currently it requires a mounted location for the backups on NFS

Some possible future upgrades:

  • Instead of a copy of the snapshot to container_name.0/ ; doing an rsync to only copy differences between snapshots. (would require testing to see if was even a good option)
  • Instead of only supporting NFS, add the option of local removable media (e.g. a hot-swap backup drive)