©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2021-02-13 12:56:17

Nils
Member
Registered: 2021-02-08
Posts: 8

Weekly Backup

Hi,
is it possible to do a weekly backup with OneDiff Option.
To use every day a different harddrives datastores per rotation?
Seven harddrives with the same label. Change every day the harddrive for the backup.
Greetings,
Nils

Offline

#2 2021-02-15 08:42:03

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Weekly Backup

The --backup-prog is independent of the cron schedule. You can schedule anything you want to, including anything that's not an (c)XSIBackup job.

The possibilities that bash scripting offer you are almost endless. What you describe is a fairly easy to solve scenario, we don't have all the details though.

date +%u
date +%a
date %+A

Any of the above date commands will return the day of the week as a number, an accronym or as its full name.
Thus, you just have to mount some datastores after the week day (Mon, Tue, Wed...) and then use the date command to build a dinamic target path.

./xsibackup --backup-prog=Onediff --backup-vms="VM1,VM2,VM3" --backup-point="/vmfs/volumes/$(date +%a)/onediff_replicas"

(*) We aren't getting what you mean by: "seven drives with the same label"

Offline

#3 2021-02-15 11:26:26

Nils
Member
Registered: 2021-02-08
Posts: 8

Re: Weekly Backup

Hi,
The problem is, I should be using different USB hard drives for each day. Each hard drive is replaced manually
One hard drive is for Monday, another for Tuesday, one for Wednesday and so on, each hard drive label is marked "USB Backup".
I registered the VM from every "USB backup" hard drive.
This works, but the problem right now is that XSI Backup does a full backup every night (CID), not a differential backup on every "USB backup" hard disk.

Here is the job:

--backup-prog=OneDiff \
--backup-point=/vmfs/volumes/USB-Backup/vm \
--backup-type=Custom \
--backup-vms="WindowsServer12" \
--backup-how=Cold \
--backup-id=4 \
--description="WindowsServer-4"

Offline

#4 2021-02-15 17:05:30

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Weekly Backup

How could Onediff possibly make a differential backup when you remove the seed. Worse than that, you are replacing it for something different.

With all our respect: don't do that. Please think about what a differential backup is and how it works before designing your backup strategy.

You don't need to delve into the details of how Onediff works, just imagine some regular differential backup.

Let's say you have performed your first full backup on Sunday and your backup contains: ABCD
Then you perform your first differential backup on monday and E is copied, you then have ABCDE
Then you replace the monday disk by the one from Sunday and copy F, you have ABCDF when you should have ABCDEF

That procedure is not valid.

Offline

Board footer