Skip to content

TripleStack-SAS/exobackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

exobackup

Exoscale VM offsite backup

Install

You must use jq, rclone and exo.

You must use rclone version ≥ 1.50.

Setup

Checks:

$ exo vm list
┼──────────────────────────────────────┼─────────────────────────────────────────┼───────┼─────────┼─────────┼─────────────────┼
│                  ID                  │                  NAME                   │ SIZE  │  ZONE   │  STATE  │   IP ADDRESS    │
┼──────────────────────────────────────┼─────────────────────────────────────────┼───────┼─────────┼─────────┼─────────────────┼
│ xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx │ VM-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx │ Micro │ ch-dk-2 │ Stopped │ XXX.XXX.XXX.XXX │
┼──────────────────────────────────────┼─────────────────────────────────────────┼───────┼─────────┼─────────┼─────────────────┼
$ rclone lsd my_rclone_remote:
          -1 2021-07-22 12:43:49        -1 my-bucket-or-folder

Features

  • Create snapshot from VM
  • Transform snapshots to runnable VM image
  • Exporting (thanks rclone) to another places (S3, Google Drive...)
  • Purge old snapashots/backups
  • Push snapshot metadata if rclone remote config is S3

Exemple

Backup VM to one target:

./exobackup.sh myvmid rclone_remote:my/target/directory

Backup VM to many targets:

./exobackup.sh myvmid rclone_remote:my/target/directory rclone_remote_alt:my/another/directory

Environment variables

Paths

  • EXO_PATH
  • RCLONE_PATH

Exoscale related

  • EXOSCALE_ACCOUNT: Exoscale account, if many accounts are used. Check exo config list.
  • EXOSCALE_SNAPSHOTS_RETENTION_DAYS

Rclone config

License

MIT

Author Information

About

Exoscale VM backup script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages