8000 GitHub - tigattack/esxi-config-backup: Docker image to backup ESXi host configuration.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tigattack/esxi-config-backup

Repository files navigation

esxi-config-backup

Docker image to back up ESXi host configuration.

The idea behind this is to use it in a scheduled manner, since otherwise it provides no real value over the native backup/restore commands.

Scheduling a backup with this image could be achieved using something as simple as cron, as exemplified in the Cron Schedule Example section below.

Important

The backup files are not encrypted or otherwise secured in any way. It is up to you, the user, to ensure the files are stored securely.

Run

  1. Create a copy of config.example.yml called config.yml and modify it to your requirements.

  2. Start the container

    docker run \
      --rm \
      -v ${PWD}/backups:/app/backups \
      -v ${PWD}/config.yml:/app/config.yml \
      ghcr.io/tigattack/esxi-config-backup

Note

The --rm flag in the docker run command means the container will be removed once the task succeeds. This is fine, since the backup is a one-shot action.

Cron Schedule Example

The example below assumes that /opt/esxi-backup exists, containing a backups directory and your config.yml (per step 1 in the Run section above)

Create a backup once a day at midnight:

0 0 * * * docker run --rm -v /opt/esxi-backup/backups:/app/backups -v /opt/esxi-backup/config.yml:/app/config.yml ghcr.io/tigattack/esxi-config-backup

About

Docker image to backup ESXi host configuration.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  
0