oetiker / znapzend

zfs backup with remote capabilities and mbuffer integration.
www.znapzend.org
GNU General Public License v3.0
608 stars 137 forks source link

When does the first snapshot get created? #375

Closed driesmp closed 6 years ago

driesmp commented 6 years ago

Hello,

I'd like to snapshot my root pool and back it up on my storage pool which is redundant. I have the following config on my root pool called zroot.

znapzendzetup list

backup plan: zroot dst_0 = storage/zroot dst_0_plan = 1week=>1day,1month=>1week,1year=>1month enabled = on mbuffer = /usr/local/bin/mbuffer mbuffer_size = 1G post_znap_cmd = off pre_znap_cmd = off recursive = on src = zroot src_plan = 1week=>1day,1month=>1week,1year=>1month tsformat = %Y-%m-%d-%H%M%S zend_delay = 0

NOTE: if you have modified your configuration, send a HUP signal (pkill -HUP znapzend) to your znapzend daemon for it to notice the change.

I installed the configuration to disk and started the znapzend daemon in FreeBSD. I don't see any snapshot getting created? Are there fixed times for daily snapshots? My highest frequency is daily and keep for a week. So maybe it is just waiting for 00:00 to take its first snapshot. Is the latter assumption correct or should znapzend create a snapshot at the moment it is started?

moetiker commented 6 years ago

it waits. you can test it with znapzend -d --runonce=zroot

driesmp commented 6 years ago

Alright, and it waits for what exactly? 00:00h at midnight to take its first one?

redmop commented 6 years ago

Yes. It will take it at 00:00h on your local computer.

moetiker commented 6 years ago

yes

driesmp commented 6 years ago

Okido thanks for helping out! Lovely tool <3