datto / dattobd

kernel module for taking block-level snapshots and incremental backups of Linux block devices
GNU General Public License v2.0
569 stars 121 forks source link

After reboot. #240

Open pskaurav opened 3 years ago

pskaurav commented 3 years ago

As per documentation(https://github.com/datto/dattobd/blob/master/doc/dbdctl.8.md), reload-snapshot and reload-incremental should be run before block device is mounted. Could not find out to where to run and how to run like like scripts etc? Please help me to run these commands.

pskaurav commented 3 years ago

It would be great if somebody can reply .

nixomose commented 3 years ago

this is kind of an exercise for the reader.

you need to write the scripts to call dbdctl before the filesystems that were snapshotted are mounted. this means you have to put the calls to dbdctl in initramfs, initrd or dracut or whatever bootloader thingi your flavor of linux uses.

there's documentation for each of those systems explaining how to have scripts run on startup before filesystems are mounted.