mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-29 01:58:49 +01:00
Backup manager to only zip specific directories in config #89
This commit is contained in:
parent
cd6e99b4c3
commit
315592efe5
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "audiobookshelf-client",
|
"name": "audiobookshelf-client",
|
||||||
"version": "1.4.7",
|
"version": "1.4.8",
|
||||||
"description": "Audiobook manager and player",
|
"description": "Audiobook manager and player",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "audiobookshelf",
|
"name": "audiobookshelf",
|
||||||
"version": "1.4.7",
|
"version": "1.4.8",
|
||||||
"description": "Self-hosted audiobook server for managing and playing audiobooks",
|
"description": "Self-hosted audiobook server for managing and playing audiobooks",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -307,7 +307,16 @@ class BackupManager {
|
|||||||
// pipe archive data to the file
|
// pipe archive data to the file
|
||||||
archive.pipe(output)
|
archive.pipe(output)
|
||||||
|
|
||||||
archive.directory(configPath, 'config')
|
var audiobooksDbDir = Path.join(configPath, 'audiobooks')
|
||||||
|
var librariesDbDir = Path.join(configPath, 'libraries')
|
||||||
|
var settingsDbDir = Path.join(configPath, 'settings')
|
||||||
|
var usersDbDir = Path.join(configPath, 'users')
|
||||||
|
|
||||||
|
archive.directory(audiobooksDbDir, 'config/audiobooks')
|
||||||
|
archive.directory(librariesDbDir, 'config/libraries')
|
||||||
|
archive.directory(settingsDbDir, 'config/settings')
|
||||||
|
archive.directory(usersDbDir, 'config/users')
|
||||||
|
|
||||||
if (metadataBooksPath) {
|
if (metadataBooksPath) {
|
||||||
Logger.debug(`[BackupManager] Backing up Metadata Books "${metadataBooksPath}"`)
|
Logger.debug(`[BackupManager] Backing up Metadata Books "${metadataBooksPath}"`)
|
||||||
archive.directory(metadataBooksPath, 'metadata-books')
|
archive.directory(metadataBooksPath, 'metadata-books')
|
||||||
|
Loading…
Reference in New Issue
Block a user