lamw / ghettoVCB

ghettoVCB
MIT License
1.27k stars 363 forks source link

changing the backup path naming convention #283

Closed robina80 closed 1 year ago

robina80 commented 1 year ago

hi all,

so ive done my first ever backup using ghetto vcb and so far so good

all my backups ive saved to

/vmfs/volumes/datastore1/backup

but when it creates the backup it saves the name as "vm_name-yyyy-mm-dd"

/vmfs/volumes/datastore1/backup/vm_name/vm_name-yyyy-mm-dd

is there anyway i can change this please

thanks, rob

robina80 commented 1 year ago

Anyone?

robina80 commented 1 year ago

Bump...

Fighter456 commented 1 year ago

You can modify the source code of ghettoVCB.sh by yourself and your own risk: https://github.com/lamw/ghettoVCB/blob/588d8f9c44496eb635ea165f8fce80003493eedd/ghettoVCB.sh#L174 https://github.com/lamw/ghettoVCB/blob/588d8f9c44496eb635ea165f8fce80003493eedd/ghettoVCB.sh#L1095

What is the motivation behind this plan?

robina80 commented 1 year ago

hi @Fighter456

lets say i want to restore from a backup, as all my backup vms get backed up to a different datastore, what i normally do is copy the backup vm from my backup datastore to my main datastore where i run all my live vms from

once copied i click the vmx file and "register vm in the inventory" i then can play the vm and its up and running

but in the main datastore files, instead of saying the vm_name wont it say vm_name+date, if so i dont want this behaviour

thanks, rob

Fighter456 commented 1 year ago

Then I recommend using ghettoVCB-restore.sh instead of copying the files from the backup datastore to the main datastore.

The script takes care about the display name of the virtual machine.