#1 2019-03-30 01:48:00

NextLevel
Member
Registered: 2019-03-11
Posts: 33

--del-dirs never deletes

No matter what I define on the --del-dirs option, it never deletes something

 ./xsibackup --del-dirs=+1d --backup-point=/vmfs/volumes/vSphere_Backups/XSI --backup-type=custom --backup-vms="TestW2k3" --backup-prog=xsitools:z

I always get:  info: no directories to delete as per the --del-dirs argument

Backing up via XSITools
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
File name: TestW2k3-flat.vmdk, File size: 4294967296
Block size: 52428800, Block count: 82
Disk usage: 4294967296
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
82/82 blocks | Processed 101%
Previous block count: 78838
Current block count: 78838
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Time taken: 22 seconds
Avg speed: 186 mb/s
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[TestW2k3] info: no directories to delete as per the --del-dirs argument
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The ESXi configuration was saved to "/vmfs/volumes/vSphere_Backups/XSI/20190330011240"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No errors detected in backup
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup finished
Tip: no chained backups scheduled, set --on-success and/or --on-error arguments to chain a backup
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Killed

But there are olders to delete:

[root@ESX01:/vmfs/volumes/2542dc62-3824324c/xsi-dir] find /vmfs/volumes/vSphere_Backups/XSI/20*  -type d -name "TestW2k3"
/vmfs/volumes/vSphere_Backups/XSI/20190319135506/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190319145209/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190319153811/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190319162314/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190319200006/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190320200006/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190321200006/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190322200006/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190323003352/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190330001834/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190330002911/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190330005724/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190330010257/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190330011058/TestW2k3
/vmfs/volumes/vSphere_Backups/XSI/20190330011240/TestW2k3

Also the datedirmask=20[1-3][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
is still original

Where is my fault?

Offline

#2 2019-03-30 10:48:07

admin
Administrator
Registered: 2017-04-21
Posts: 1,370

Re: --del-dirs never deletes

You are using (c)XSITools as the backup program. Use --prune-xsitoolsrepo instead of --del-dirs. (c)XSITools does not generate backup folders as such, those folders only contain the hash-maps of your virtual disks.

(c)XSITools stores backups in deduplicated repositories, you may use --prune-xsitoolsrepo to delete individual backups manually, or the --backup-room argument to let (c)XSITools manage the amount of space it uses.

Online

#3 2019-03-30 17:09:05

NextLevel
Member
Registered: 2019-03-11
Posts: 33

Re: --del-dirs never deletes

Does that mean with XSITools I cannot automatically clean up the repository distinguish by dates and VM? 
i.e keeping the last 7 days of backups and related blocks of VM-One.
and keeping the last 30 days of backups and related blocks of VM-Two.

Do I need to make a repo per VM to solve that?

--prune-xsitoolsrepo ; This is a standalone option, not a part of a backup job, right? Since it cannot be used as a part of the backup job, it would not help.

--backup-room  ; This does always checks and prune against the whole repo no matter which VMs the backup job includes, right?
So a backup of a VM can be deleted even it is the last one that exists of it?

Also I cannot run --backup-room option as a standalone, it must be combined with some (and successful) backup of a VM..., or not?

Confused ...

Offline

Board footer