1
1
# Rename this to config.toml
2
2
3
3
[global]
4
- # Pubkey of restic server
5
- restic_key = "<CHANGE ME>"
6
4
# Path to restic binary
7
5
restic_binary = "C:/restic_0.15.1_windows_amd64/restic_0.15.1_windows_amd64.exe"
8
6
# Default intervall for jobs in minutes
9
7
default_interval = 720
10
8
# Directory used for database files created during backup creation
11
9
scratch_dir = "scratchdir"
12
10
13
- # mysql dumb binary, if used for database backups, can be left blank if available in path
14
- # mysql_dumb_binary = "C:/Program Files/mysql/mysqldump.exe"
11
+ # mysql dump binary, if used for database backups, can be left blank if available in path
12
+ # mysql_dump_binary = "C:/Program Files/mysql/mysqldump.exe"
15
13
16
- # postgres dumb binary, if used for database backups, can be left blank if available in path
17
- # postgres_dumb_binary = "C:/Program Files/PostgreSQL/14/bin/pg_dump.exe"
14
+ # postgres dump binary, if used for database backups, can be left blank if available in path
15
+ # postgres_dump_binary = "C:/Program Files/PostgreSQL/14/bin/pg_dump.exe"
18
16
19
17
# [global.period]
20
18
# Optionally limit backup scheduling to the following time frame
@@ -27,9 +25,27 @@ scratch_dir = "scratchdir"
27
25
[global.Rest]
28
26
# URL for rest server to use for all jobs
29
27
# only domain:port or ip:port
30
- rest_url = "example.com:443"
28
+ rest_host = "example.com:443"
29
+ # Pubkey of restic server
31
30
server_pubkey_file = "C:/Users/Foo/pub_key"
32
31
32
+ # SFTP as backend
33
+ [global.SFTP]
34
+ # URL for rest server to use for all jobs
35
+ # only domain:port or ip:port
36
+ sftp_host = "example.com:443"
37
+ # Optional command for connecting with special settings.
38
+ # For restic option `-o sftp.command="ssh -p 22
[email protected] -s sftp"`
39
+ # can contain {user} to be replaced by job user
40
+ # can contain {host} to be replaced by default or job override host
41
+ sftp_command = "ssh -p 22 {user}@{host} -s sftp"
42
+
43
+ # S3 as backend
44
+ [global.S3]
45
+ # URL for rest server to use for all jobs
46
+ # only domain:port or ip:port
47
+ s3_host = "s3.amazonaws.com"
48
+
33
49
# All backup jobs, start each one with [[jobs]]
34
50
[[job]]
35
51
# For referencing jobs in commands and output, also used as part of the database backup folder
@@ -41,10 +57,7 @@ name = "Job1"
41
57
paths = ["C:/Users/Foo"]
42
58
# Exclude items see [restic docs](https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files)
43
59
excludes = []
44
- # Login user
45
- user = "<CHANGE ME>"
46
- # Password for user
47
- password = "<CHANGE ME>"
60
+
48
61
# Encryption key
49
62
repository_key = "<CHANGE ME>"
50
63
# Repository name
@@ -60,25 +73,37 @@ post_command_on_failure = false
60
73
# MySQL Database backup
61
74
# mysql_db = "database"
62
75
76
+ job_type = "Rest"
77
+ # Login user
78
+ rest_user = "<CHANGE ME>"
79
+ # Password for user
80
+ rest_password = "<CHANGE ME>"
81
+
63
82
# a second job, minimal required settings
64
83
[[job]]
65
84
name = "Job2"
66
85
paths = ["C:/Users/Foo"]
67
86
excludes = []
68
- user = "<CHANGE ME>"
69
- password = "<CHANGE ME>"
70
87
repository_key = "<CHANGE ME>"
71
88
repository = "<CHANGE ME>"
72
89
post_command_on_failure = false
73
90
91
+ job_type = "SFTP"
92
+ sftp_user = "<CHANGE ME>"
93
+ # optional, can contain {user} and {host}
94
+ sftp_command = "ssh -p 22 {user}@{host} -s sftp"
95
+
74
96
# third job, mysql backup only
75
97
[[job]]
76
- name = "Job2 "
98
+ name = "Job3 "
77
99
paths = []
78
100
excludes = []
79
- user = "<CHANGE ME>"
80
- password = "<CHANGE ME>"
101
+
81
102
repository_key = "<CHANGE ME>"
82
103
repository = "<CHANGE ME>"
83
104
mysql_db = "database"
84
105
post_command_on_failure = false
106
+
107
+ job_type = "S3"
108
+ aws_access_key_id = "<CHANGE ME>"
109
+ aws_secret_access_key = "<CHANGE ME>"
0 commit comments