-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
FR: Ability to Use External Disk as Database File Location #43
Comments
Hi @saya6k, what a nice suggestion, thank you! I am in the process of updating the addon, so I'll see what I can do for you. |
I would love this feature, too! Nevertheless I would like to thank you for your work, I was very thrilled when I found this plugin. I appreciate it very much. |
or just another partition of the disk is running on. It would be really nice to have it. |
Owwh! Thank you for your kind words! 🙏🏻 But i just need to stick some time in it, and it's really helpfull knowing all of your usecases. |
There are solutions to at least automount USB disks onto the /media or /share folders: For extra local storage (like optane, or any other seocndary disks or partitions) this may not work, but the whole solution is also not very user friendly. The mentioned Samba NAS addon is running in unprovileged mode to list local partitions and disks, and mount then into the /share or /media folders. I'm am not really happy to follow that path, as it will downgrad the security-rating of the TimesaleDb Addon. So.. I'm perhaps down the path of creating a separate addon to do just that: Enumerate local (or USB) storage, and mount it in the /share or /media or /backup folder. That addon also provides means to auto-mount (USB) disks for media and other purposes.. This way, those mounts should be visible to the timescaledb addon and can just be used as a backup loaction. What do you think? |
This feature would be convenient, but is probably not a good idea. Databases are pretty picky about storage (especially guarantees about data flushing), putting the database files on a network share is almost guaranteed to get you in trouble sooner or later. I personally wouldn't even trust USB-attached storage, but YMMV :) |
Some add-ons, such as Samba NAS, already support the use of an external disk.
If it were possible to specify an external disk for my database file location, I could leverage faster disks, like Intel Optane, to enhance database performance.
The text was updated successfully, but these errors were encountered: