|
Forum ©XSIBackup: ©VMWare ©ESXi Backup Software©XSIBackup-Free: Free Backup Solution for ©VMWare ©ESXi©XSIBackup-DC & Pro: ©VMWare ©ESXi Backup Professional Tools |
![]() |
You are not logged in.
Pages: 1
I want to create a replica of the virtual machine with different versions. With the program before the DC, I could put the parameter --datedir = yes, it would create the copy folder with the data and I could save several versions limiting the copy space with --backup-room = 400.
How can I do it with the new program?
Offline
./xsibackup --backup "VMs(MYVM)" /vmfs/volumes/backup/myrepo --rotate=10
To keep ten restore points.
Offline
Thank you very much for your answer.
I had already made several versions of backups, but had not seen it. I understand that the snapshot.vmsn are the versions, how can I now recover a previous copy?
PDC-BONDITEX-Snapshot1.vmsn
PDC-BONDITEX-Snapshot2.vmsn
PDC-BONDITEX-Snapshot3.vmsn
PDC-BONDITEX-Snapshot4.vmsn
PDC-BONDITEX-Snapshot5.vmsn
PDC-BONDITEX-Snapshot6.vmsn
PDC-BONDITEX-Snapshot7.vmsn
PDC-BONDITEX-Snapshot8.vmsn
PDC-BONDITEX-flat.vmdk
PDC-BONDITEX.nvram
PDC-BONDITEX.vmdk
PDC-BONDITEX.vmsd
PDC-BONDITEX.vmsd.tmp
PDC-BONDITEX.vmx
PDC-BONDITEX.vmx.tmp
PDC-BONDITEX.vmxf
PDC-BONDITEX.vmx~
vmware-1.log
vmware-2.log
vmware-3.log
vmware-4.log
vmware-5.log
vmware-6.log
vmware-7.log
vmware-8.log
vmware.log
./xsibackup --restore /vmfs/volumes/datastore1/backup/PDC-BONDITEX/PDC-BONDITEX-Snapshot2.vmsn /vmfs/volumes/datastore1/restore/
2021-03-02T08:03:20 | Error code 382 at file restore.c, line 382 | Error description: can't find the .xsitools file:
-----------------------------------------------------------------------------------------------------------
Removed host <tmp> dir OK
-----------------------------------------------------------------------------------------------------------
Removed prog <tmp> dir OK
Thanks
Offline
Why are you pointing the restore source to a .vmsn file?.
"I understand that the snapshot.vmsn are the versions"
You just left us speechless...
You must point it to the VM you want to restore under a repository, always under a timestamped folder, something like:
./xsibackup --restore /vmfs/volumes/backup/20210214140301/PDC-BONDITEX /vmfs/volumes/datastore1/restore/
You don't place backups in the same datastore where you are hosting the VMs
Replicas are just replicas, you don't need to restore them, they are ready to use copies. You can make a series of replicas to be used as full backups if you will. Although that is not a very practical method of doing things, as you are copying all the data everytime:
./xsibackup --replica "VMs(PDC-BONDITEX)" /vmfs/volumes/backup/replicas/PDC-BONDITEX/$(date +%Y%m%d%H%M%S)
But above all, please, read the manual and then place concrete questions:
https://33hops.com/xsibackup-dc-full-manual-home.html
Guessing is not the best way to achieve good results.
Offline
Thank you for your answers
The copies already work correctly and the folders are generated with the dates of when they are made but I cannot automatically delete the previous versions.
I have tried it with the --rotate but as we can see it does not detect it
--rotate option was detected, retrieving backups to prune...
-----------------------------------------------------------------------------------------------------------
ROTATION: set to 5 backup cycles
-----------------------------------------------------------------------------------------------------------
No backups to prune as per rotation number, 1 backups found
these are the saved versions of copies
20210303083353 20210303130746 20210303154603 20210304141231
20210303091752 20210303140104 20210304112020 20210308142448
Could it be that I am missing something?
Thanks a lot
Offline
As we stated in some previous response, you "can" use (c)XSIBackup-DC to produce backups that way. Nonetheless that is not the intended usage of the program and rotating doesn't work with custom solutions like this.
Nonetheless, it is extremely easy to delete folders older than some amount of time following a given pattern by using the find command.
Offline
Pages: 1