forked from wefixit-AT/oVirtBackup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_example.cfg
65 lines (47 loc) · 2.3 KB
/
config_example.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[config]
# A list of names which VM's should be backed up
vm_names: ["vm_1","vm_2"]
# Middle part for the exported VM name
vm_middle=_BACKUP
# Description which should be set to the created snapshot
snapshot_description=Snapshot for backup script
# Url to connect to your engine
# Example for oVirt 3.*
# server=https://ovirt-server.mydomain
# Example for oVirt 4.*
server=https://ovirt-server.mydomain/ovirt-engine/api
# Username to connect to the engine
username=admin@internal
# Password for the above user
password=a_very_secure_password_:-)
# Name of the NFS Export Domain
export_domain=backup
# Timeout in seconds to wait during long time operations (snapshot creation, snapshot deletion, ...)
timeout=5
# The name of the cluster where the VM should be cloned
cluster_name=local_cluster
# How long backups should be keeped, this is in days
backup_keep_count=3
# If set to "True" no creation, deletion and other operations will be executed
dry_run=True
# Because of virtual machine name length limitations from oVirt its important to check against the length.
# For more Informations look at MaxVmNameLength* in https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Administration_Guide/Red_Hat_Enterprise_Virtualization_Manager_configuration_options_explanations_limitations_and_best_practices.html
# Limit for non Windows machines = 64
# Limit for Windows machines = 15
# For more informations: https://github.com/wefixit-AT/oVirtBackup/issues/6
vm_name_max_length=32
# Use short suffix, usefull for Windows machines, see config vm_name_max_length
use_short_suffix=False
# Storage domain where the VM's are located. This is important to check space usage during backup
storage_domain=storage1
# This value is used to check against the storage free space to avoid running out of space during backup.
# Values: 0..1
# Example: A value of 0.1 means that a free space of 10% must be available from the summarized disk size of the VM which is currently backuped up
storage_space_threshold=0.1
# This value is used to format log messages
logger_fmt=%(asctime)s: %(message)s
# This value is path to log file, where you want to store log from this script,
# By default it writes to stdout.
logger_file_path=
# If this value is True, the VM is being paused during snapshot creation.
persist_memorystate=False