File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ instanceName=
5
5
# set to true to allow using Trilium without authentication (makes sense for server build only, desktop build doesn't need password)
6
6
noAuthentication =false
7
7
8
+ # set to true to disable backups (e.g. because of limited space on server)
9
+ noBackup =false
10
+
8
11
# Disable automatically generating desktop icon
9
12
# noDesktopIcon=true
10
13
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const Option = require('../entities/option');
9
9
const TaskContext = require ( './task_context.js' ) ;
10
10
const migrationService = require ( './migration' ) ;
11
11
const cls = require ( './cls' ) ;
12
+ const config = require ( './config' ) ;
12
13
13
14
const dbReady = utils . deferred ( ) ;
14
15
@@ -131,6 +132,12 @@ function setDbAsInitialized() {
131
132
}
132
133
133
134
dbReady . then ( ( ) => {
135
+ if ( config . General && config . General . noBackup === true ) {
136
+ log . info ( "Disabling scheduled backups." ) ;
137
+
138
+ return ;
139
+ }
140
+
134
141
setInterval ( ( ) => require ( './backup' ) . regularBackup ( ) , 4 * 60 * 60 * 1000 ) ;
135
142
136
143
// kickoff first backup soon after start up
You can’t perform that action at this time.
0 commit comments