Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to properly execute Sanoid concurrently with different configs? #949

Open
tschoening81 opened this issue Aug 29, 2024 · 0 comments
Open

Comments

@tschoening81
Copy link

I have Sanoid installed to create snapshots of internal storage and want to use it for external USB backup as well. I have a backup script where I want to call Sanoid manually with a special config file using --configdir=/etc/sansoid/bak_usb. What I'm wondering about is the other options for cache and lock files. Both instances of Sanoid work on different and exclusive ZFS pools.

So, is it required to specific individual cache-dir and run-dir as well?

I guess if I don't do so, the Sanoid instance handling system internal storage and that for backup only simply can't run concurrently? So whenever the execution time overlaps, I run into some error?

Does the cache-dir needs to be maintained at the USB backup disk?

I'm having trouble understanding what the cache file is actually used for. My USB backup gets switched monthly. So what happens to the cache file if it's stored at the system and outdated with respect to a new USB disk used? Is it necessary to put the cache onto the USB disk? I don't care about performance too much, so if Sanoid would take a minute more to do it_'s stuff, that would be OK for me. Therefore I currently prefer keeping things next to each other, which means the cache would be something like /var/cache/sanoid/bak_usb instead of /media/bak_usb/sanoid/cache.

Thanks for your answers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant