audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

[Enhancement]: Modify path of backups

Open KellicTiger opened this issue 1 year ago • 7 comments

Type of Enhancement

Web Interface/Frontend

Describe the Feature/Enhancement

The target for where the backups are located is on the same volume where the application is installed

image

Best practice for backups is to put them on a volume other than where you are running the application or where the dataset is located. While it is possible for me to symlink a location to where my backup drive it, the better option is to allow the path to be modified.

As a temp work around document where the pathing is stored. I'm assuming it is in a config file somewhere.

Why would this be helpful?

Adhering to best practices for backups. As in the event of the drive where the app is stored you would also lose the backup.

Allowing the changing of the path to another drive would allow for better data protection.

Future Implementation (Screenshot)

image

Audiobookshelf Server Version

v2.9.0

Current Implementation (Screenshot)

No response

KellicTiger avatar May 13 '24 23:05 KellicTiger

Duplicate of https://github.com/advplyr/audiobookshelf/issues/199 but this uses the new issue format and looks nicer :)

nichwall avatar May 14 '24 03:05 nichwall

Amazing that I'm just finding this right now and the request is so new!

I'm currently moving ABS from Docker to an LXC and I'm having a hard time linking it to my standard services backup share. Either changing it from within the app or allowing it to be set in the config file at /etc/default/audiobookshelf would be amazing. Thank you all for your effort!

noja11 avatar May 14 '24 20:05 noja11

As I'm running ABS as a Docker container on TrueNAS Scale. I just set up a mapping from /metadata/backups to my backups folder. That folder is then uploaded nightly to a off-site backup.

ZLoth avatar May 18 '24 01:05 ZLoth

I made an update so that the backup path can be overridden with an environment variable BACKUP_PATH.

It is now stored in server settings so that we can eventually make the path editable in the UI. That may not make it in the next release so for anyone that wants to modify it now will be able to pass in the env variable.

advplyr avatar Jun 18 '24 22:06 advplyr

It is now stored in server settings so that we can eventually make the path editable in the UI.

Thank you so much for that change!

I just tried an LXC where I edited the audiobookshelf config file at /etc/default/audiobookshelf to include BACKUP_PATH. As that didn't work yet, I'm assuming I'll need to wait for the next release after 2.10.1?

Again, thank you so much for this quality of life upgrade, I really appreciate it!

noja11 avatar Jun 19 '24 15:06 noja11

Yes, you'll need to either way for the next release, build form source, or use the edge docker image.

nichwall avatar Jun 19 '24 15:06 nichwall

I added the ability to edit the path in the UI for the next release. If you have used an env variable to set the backup path then it will be reverted to use the env variable path on a server restart. A warning will be showed in the logs in that case.

image

image

advplyr avatar Jun 19 '24 22:06 advplyr

Added in v2.11.0

advplyr avatar Jul 09 '24 20:07 advplyr