This repository has been archived on 2024-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
vn-vmware/config.pl

57 lines
1.3 KiB
Perl
Raw Normal View History

2018-08-13 18:50:48 +00:00
# Configuration file, be careful to respect the Perl syntax.
# Don't modify this file, copy it to config.my.pl and make your changes there.
# The log file path
2018-08-14 14:23:33 +00:00
log_file => '/var/log/vn-vmware.log',
2018-08-13 18:50:48 +00:00
# Hostname or IP address of vCenter host
hostname => 'vcenter',
# The user used to connect to vCenter
user => 'root',
# Credentials file where user password is stored
credentials_file => '/root/.vmware/credstore/vicredentials.xml',
# The datacenter name
datacenter => 'datacenter1',
# The datastore name where backups must be stored
backup_datastore => 'backups',
# The local directory where backups datastore folder is mounted
local_backup_dir => '/mnt/vm-backups',
2018-08-15 15:00:07 +00:00
# Backup jobs
backup_jobs => {
2018-08-13 18:50:48 +00:00
schedule1 => {
2018-08-15 15:00:07 +00:00
machines => ['test'],
2018-08-15 19:35:13 +00:00
rotation => 'lastMonth'
2018-08-13 18:50:48 +00:00
}
},
# Backup rotation configuration
rotations => {
2018-08-15 19:35:13 +00:00
lastMonth => {
2018-08-13 18:50:48 +00:00
days => 31,
count => 31
}
},
2018-08-15 15:00:07 +00:00
# Clone jobs
clone_jobs => {
2018-08-13 18:50:48 +00:00
machine => {
2018-08-15 15:00:07 +00:00
vm => 'test',
dst_name => 'test-clone',
2018-08-13 18:50:48 +00:00
dst_host => '127.0.0.1',
dst_datastore => 'datastore1',
memory => 4084,
num_cpus => 2,
2018-08-15 15:00:07 +00:00
mac => '00:50:56:BF:01:01',
2018-08-13 18:50:48 +00:00
poweron => 1,
2018-08-15 20:29:56 +00:00
# Be very careful with this option! It deletes destination machine if it exists.
2018-08-13 18:50:48 +00:00
overwrite => 1
}
}