The cron command can only support one cron entry. However, you can set up a cron backup command and then use a post-prune script to run the prune command after the backup. The User Guide has a section on how to set this up, but basically you just need to create a .verticalbackup/scripts/post-backup script that runs the prune command.
The only downside of doing this is that when the prune command is running, the backup process is still there, and because ESXi only allows a limited amount of memory to host processes, this may run into a memory issue sooner than running the prune command from your Linux VM.
Another option is to run the Duplicacy command line directly on your Linux VM for the prune operation. And Duplicacy is free for this purpose.
You talk about memory issues when running prune. Is that only when running the prune script you talked about, or will my current solution (where the Linux VM just sends an SSH-command to ESXi) also mean memory issues?
Running the prune command on ESXi via ssh may still run into memory issues if you have too many backups in the storage, but it will certainly be less severe than running it as a post-backup script.
The recommended way is to run Duplicacy to prune on a VM or even a physical machine where you can have much more memory at your disposal.
How many VMs do you think before verticalbackup prune is not good enough? I currently have my backup-storage on NFS though FreeNAS connected to same virtual switch in ESXi (so over 10Gbit) - Running with over 40GB of Free RAM.
A process running on the ESXi host can only have a limited amount of memory, no matter how much RAM the host has. My estimate is that the prune command may run out of memory once the total size of the storage is more than 1TB.
If I want to run the prune job from another machine, how should the repository be initialized? Should I initialize it using the same ID as on the ESXi host?
Nice product by the way. Only issue I’ve come across so far is that SFTP does not work on other ports than 22. I made sure that the firewall was configured but still go the error “UnboundLocalError: local variable ‘hostAndPort’ referenced before assignment”. I can make a new topic about this if needed.