-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml.example
109 lines (94 loc) · 3.13 KB
/
config.toml.example
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Rename this to config.toml
[global]
# Path to restic binary
restic_binary = "C:/restic_0.15.1_windows_amd64/restic_0.15.1_windows_amd64.exe"
# Default intervall for jobs in minutes
default_interval = 720
# Directory used for database files created during backup creation
scratch_dir = "scratchdir"
# mysql dump binary, if used for database backups, can be left blank if available in path
# mysql_dump_binary = "C:/Program Files/mysql/mysqldump.exe"
# postgres dump binary, if used for database backups, can be left blank if available in path
# postgres_dump_binary = "C:/Program Files/PostgreSQL/14/bin/pg_dump.exe"
# [global.period]
# Optionally limit backup scheduling to the following time frame
# start time
# backup_start_time = "22:00"
# end time
# backup_end_time = "05:00"
# Rest-Server as backend
[global.Rest]
# URL for rest server to use for all jobs
# only domain:port or ip:port
rest_host = "example.com:443"
# Pubkey of restic server
server_pubkey_file = "C:/Users/Foo/pub_key"
# SFTP as backend
[global.SFTP]
# URL for rest server to use for all jobs
# only domain:port or ip:port
sftp_host = "example.com:443"
# Optional command for connecting with special settings.
# For restic option `-o sftp.command="ssh -p 22 [email protected] -s sftp"`
# can contain {user} to be replaced by job user
# can contain {host} to be replaced by default or job override host
sftp_command = "ssh -p 22 {user}@{host} -s sftp"
# S3 as backend
[global.S3]
# URL for rest server to use for all jobs
# only domain:port or ip:port
s3_host = "s3.amazonaws.com"
# All backup jobs, start each one with [[jobs]]
[[job]]
# For referencing jobs in commands and output, also used as part of the database backup folder
name = "Job1"
# Command to run pre backup
# pre_command = ""
# Paths to include for backup
# Use only / for delimiters
paths = ["C:/Users/Foo"]
# Exclude items see [restic docs](https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files)
excludes = []
# Encryption key
repository_key = "<CHANGE ME>"
# Repository name
repository = "<CHANGE ME>"
# Command to run post backup
# post_command = { command = "", args= ["foo","bar"] }
# Whether to run the post_command even on backup failure
post_command_on_failure = false
# custom interval for this job, in minutes
# interval = 1440
# Postgres Database backup
# postgres_db = {database = "database", change_user = false, user = "user", password = "password"}
# MySQL Database backup
# mysql_db = "database"
job_type = "Rest"
# Login user
rest_user = "<CHANGE ME>"
# Password for user
rest_password = "<CHANGE ME>"
# a second job, minimal required settings
[[job]]
name = "Job2"
paths = ["C:/Users/Foo"]
excludes = []
repository_key = "<CHANGE ME>"
repository = "<CHANGE ME>"
post_command_on_failure = false
job_type = "SFTP"
sftp_user = "<CHANGE ME>"
# optional, can contain {user} and {host}
sftp_command = "ssh -p 22 {user}@{host} -s sftp"
# third job, mysql backup only
[[job]]
name = "Job3"
paths = []
excludes = []
repository_key = "<CHANGE ME>"
repository = "<CHANGE ME>"
mysql_db = "database"
post_command_on_failure = false
job_type = "S3"
aws_access_key_id = "<CHANGE ME>"
aws_secret_access_key = "<CHANGE ME>"