You are not logged in.
Here is my backup job:
[root@localhost:~] cat /vmfs/volumes/datastore1/xsi-dir/jobs/prod
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=Rsync \
--date-dir=yes \
--snapshot=doquiesce \
--backup-point={IP address removed}:22:"/vmfs/volumes/datastore2/vm-backups" \
--backup-type=Custom \
--backup-vms="firewall-pfsense,sbc-freepbx,fusionPBX,dialer,stunnel-proxy" \
--backup-how=Hot \
--del-dirs=+20d \
--use-smtp=2 \
--mail-to={email address removed} \
--backup-id=prod \
--description="Production VMs weekly backup" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"
Question 1 - would the --del-dirs do deletion before start making a new backup job?
Question 2 - For the --del-dirs=+20d from above, what would be the last date for deletion, I want to delete just 20220318000006 from here:
[root@esxi2:~] ls -lah /vmfs/volumes/datastore2/vm-backups
drwxr-xr-x 1 root root 72.0K Mar 18 02:28 20220318000006
drwxr-xr-x 1 root root 72.0K Mar 25 02:28 20220325000007
drwxr-xr-x 1 root root 72.0K Apr 1 02:29 20220401000007
drwxr-xr-x 1 root root 72.0K Apr 8 02:29 20220408000007
Sorry, couldn't find the answers in the documentation.
Thanks.
Last edited by alexa (2022-04-13 09:05:10)
Offline
Please try to try things on your own to give yourself the answer.
We can help you understand how some things work or what are the solutions to your needs, you can easily find out what the above will exactly produce on your own though.
Offline