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

# 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
log_file => '/var/log/vn-vmware.log',
# 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',
# Backup jobs
backup_jobs => {
schedule1 => {
machines => ['test'],
rotation => 'lastMonth'
}
},
# Backup rotation configuration
rotations => {
lastMonth => {
days => 31,
count => 31
}
},
# Clone jobs
clone_jobs => {
machine => {
vm => 'test',
dst_name => 'test-clone',
dst_host => '127.0.0.1',
dst_datastore => 'datastore1',
memory => 4084,
num_cpus => 2,
mac => '00:50:56:BF:01:01',
poweron => 1,
# Be very careful with this option! It deletes destination machine if it exists.
overwrite => 1
}
}