-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.go
More file actions
27 lines (22 loc) · 751 Bytes
/
const.go
File metadata and controls
27 lines (22 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Define constants used across the application.
package main
import "time"
const (
defaultMysqlUser = "backup"
defaultMysqlPassword = "password"
defaultMysqlHost = "localhost"
defaultMysqlPort = 3306
defaultParallel = 4
defaultLocalBackupCount = 3
defaultRCloneRemote = "onedrive:"
configFileName = "config.json"
sqliteDBPath = "/data/data.db"
backupPath = "/backup/"
remoteBackupBasePath = "backup/"
downloadedBackupPath = "/downloaded_backup/"
HttpPort = 32400
defaultFullBackupInterval = 12 * time.Hour
defaultIncrementalBackupInterval = 30 * time.Minute
defaultCleanupInterval = 1 * time.Hour
defaultRcloneUploadInterval = 15 * time.Minute
)