new backup sw
This commit is contained in:
parent
7f38106002
commit
b3840c5037
6 changed files with 86 additions and 37 deletions
29
custom/backups/config/tasks/00-general.toml
Normal file
29
custom/backups/config/tasks/00-general.toml
Normal file
|
@ -0,0 +1,29 @@
|
|||
# name
|
||||
name = "general"
|
||||
|
||||
# cron as in https://lib.rs/crate/cron
|
||||
# <second> <minute> <hours> <day of month> <month> <day of the week>
|
||||
cron = "0 0 0 2 * *"
|
||||
|
||||
# retention on local server
|
||||
local_retention_time = "1d"
|
||||
|
||||
# retention on the ftp server
|
||||
remote_retention_time = "60d"
|
||||
|
||||
# ??? - Likely the local path
|
||||
backups_dir = "/data/backups"
|
||||
|
||||
# base dir of what to backup
|
||||
base_dir = "/host/srv"
|
||||
paths = [
|
||||
"cryptpad",
|
||||
"gitlab",
|
||||
"dendrite"
|
||||
]
|
||||
|
||||
# run pre-backup
|
||||
pre_commands = []
|
||||
# run post-backup
|
||||
post_commands = []
|
||||
|
30
custom/backups/config/tasks/10-minecraft.toml
Normal file
30
custom/backups/config/tasks/10-minecraft.toml
Normal file
|
@ -0,0 +1,30 @@
|
|||
# name
|
||||
name = "minecraft"
|
||||
|
||||
# cron as in https://lib.rs/crate/cron
|
||||
# <second> <minute> <hours> <day of month> <month> <day of the week>
|
||||
cron = "0 0 0 2 * *"
|
||||
|
||||
# retention on local server
|
||||
local_retention_time = "1d"
|
||||
|
||||
# retention on the ftp server
|
||||
remote_retention_time = "30d"
|
||||
|
||||
# ??? - Likely the local path
|
||||
backups_dir = "/data/backups"
|
||||
|
||||
# base dir of what to backup
|
||||
base_dir = "/host/srv"
|
||||
paths = [
|
||||
"smpxmc",
|
||||
"vanilla",
|
||||
"smpxterraria",
|
||||
"enneacraft"
|
||||
]
|
||||
|
||||
# run pre-backup
|
||||
pre_commands = []
|
||||
# run post-backup
|
||||
post_commands = []
|
||||
|
Reference in a new issue