awkspace/vmm-export

By awkspace

Updated almost 3 years ago

Scheduled export of Synology VMM machines.

Image
0

820

awkspace/vmm-export repository overview

vmm-export

Synology has a virtual machine solution and several off-site backup solutions, but they don’t cooperate with one another for some reason. This project exports VMs to .ova format, which can then be backed up via Hyper Backup or another solution. Note that, due to the way exporting works, VMs will be shut down for the duration of the export.

To use the container, make sure you have the Docker app installed on your DSM.

Usage

1. Create a new user.

Navigate to Control Panel > User and create a new user that will handle the automatic export. Add this user to the default administrators group.

2. Add the Docker image.

Navigate to Docker > Image and add awkspace/vmm-export.

3. Launch the Docker image.

Select awkspace/vmm-export and press Launch. Go into Advanced Settings and check Enable auto-restart. Then go to the Environment tab and configure vmm-export.

Configuration

This project uses ConfigArgParse. If you’re running vmm-export locally (instead of in a container on your DiskStation), you can use CLI flags or a configuration file to pass options too.

Environment variableDefaultRequired?Description
VME_USERNAMENoneYesThe username to use for logging into the DSM.
VME_PASSWORDNoneYesThe password to use for logging into the DSM.
VME_DSM_URLNoneYesURL of the DSM, including port, e.g. 192.168.1.100:5000.
VME_PATHNoneYesThe path to export VMs to, e.g. /MyShareName/VMM.
VME_CRON0 0 * * * NoCron expression to schedule the export. Make sure to set TZ if you want this to be evaluated for a different timezone than UTC.
VME_WORKERS1NoHow many VMs should be exported in parallel. Because exporting is a CPU intensive process, you should leave this to 1 unless you have a beefy DiskStation.
VME_EXCLUDENoneNoComma-separated list of VM names to avoid exporting. By default, vmm-export will export all VMs.
VME_INCLUDENoneNoComma-separated list of VM names to export. vmm-export will only export these VMs. Note: This takes precedence over the exclude list.
VME_LOG_LEVELWARNINGNoSet logging level for vmm-export.

Tag summary

Content type

Image

Digest

sha256:128388a9a

Size

27 MB

Last updated

almost 3 years ago

Requires Docker Desktop 4.37.1 or later.