tasket / wyng-backup

Fast backups for logical volumes & disk images
GNU General Public License v3.0
251 stars 16 forks source link

Running wyng instances in parallel #210

Open nijave opened 5 months ago

nijave commented 5 months ago

Is it possible to run wyng instances in parallel if they're using different archives and different LVs?

It looks like at least the lockfile path needs changed but not sure if there are limitations with LVM

Given lv1 lv1-data lv2 lv2-data

I run 1 wyng instance for no -data and 1 wyng instance for -data sequentially but I'm wondering if it's possible to parallelize these.

tasket commented 1 month ago

@nijave The method of locking atm is too simple to allow multiple concurrent instances of Wyng. This could probably be enhanced to create locks based on the --local path and archive being used, which may allow safe concurrent operation.

However, there would still have to be a global lock for accessing TLVM metadata snapshots, so multiple instances accessing thin LVM would have to take turns when acquiring deltas.