Use PVE-zsync to have daily/weekley/montly backup

yena

Renowned Member
Nov 18, 2011
385
6
83
Hello,
can i use PVE-zsync to have daily, weekly and montly backup ?
i have think to set this cron:

## Backup of Last 6 days
0 3 * * * pve-zsync sync --source 100 --dest 192.168.1.2:tank/backup --verbose --maxsnap 6 --name daily

## Backup of Last 3 weeks
30 2 * * 0 pve-zsync sync --source 100 --dest 192.168.1.2:tank/backup --verbose --maxsnap 3 --name weekly

## Backup of Last 3 month
10 1 1 pve-zsync sync --source 100 --dest 192.168.1.2:tank/backup --verbose --maxsnap 3 --name monthly

is it correct ?
Thanks!
 
Hi,

generally yes this ist the way to do it.

the first 2 are ok.
the third one im not sure about the time setting.
but I would write

## Backup of Last 3 month
10 1 1 * * pve-zsync sync --source 100 --dest 192.168.1.2:tank/backup --verbose --maxsnap 3 --name monthly
 
Hi,

generally yes this ist the way to do it.

the first 2 are ok.
the third one im not sure about the time setting.
but I would write

## Backup of Last 3 month
10 1 1 * * pve-zsync sync --source 100 --dest 192.168.1.2:tank/backup --verbose --maxsnap 3 --name monthly

------------------------------------

The Daily / Weekly and Monthly are deduplicated ( like Rsnapshot with hardlink ) or i will have three "line" of backup so i will occupy Backup space x 3 ?

Thanks
 
Sorry I did not look at the dest.

this is not possible to have the same destination subvol for all this jobs
It is not implemented yet.

It must be
--dest 192.168.1.2:tank/backup/daily
--dest 192.168.1.2:tank/backup/weekly
--dest 192.168.1.2:tank/backup/monthly

and then yes it would be the x 3 space.