-
Notifications
You must be signed in to change notification settings - Fork 4
/
Backup_list.conf.default
139 lines (124 loc) · 4.37 KB
/
Backup_list.conf.default
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
## OPTIONS
# Backup directory.
backup_dir="/directory/to/store/backup"
# Encrypted backup directory.
# Usually just next to the backup directory
enc_backup_dir="/encrypted/backup/directory"
# Encryption
# true/false
encrypt=true
# Password for encryption
# This file should be set at chmod 400
cryptpass="/file/which/contains/password"
# Compression algorithm to use
# gzip
# Standard compression algorithm.
# Fast and light on ressources.
# lzop
# Very fast algorithm.
# Low efficency
# zstd
# Zstandard algorithm
# Similar to gzip but faster
# bzip2
# Very slow but very effective.
# Light on ressources.
# lzma
# Faster than bzip2 and even more effective.
# But demanding in resources.
# lzip
# Similar to lzma.
# xz
# Similar to lzma but more recent.
#
# none
# No compression
# Concatenation in a tar file only
# symlink
# No compression
# Symbolic link to the YunoHost tar file from /home/yunohost.backup/archives
# The symbolic link is used only for the local $backup_dir of archivist.
# Real tar files are send to recipients.
#
# This mode allow archivist to not duplicate locally the backup if not compressed.
# WARNING: Does not work with encryption !
#
# Default: gzip
ynh_compression_mode=gzip
files_compression_mode=gzip
# --------------------------------------------------------------------------------------
## YUNOHOST BACKUPS
# YunoHost backups
# Specific backup made by 'yunohost backup' command
# ynh_core_backup=true/false: Make a backup of the core of YunoHost, without any apps.
ynh_core_backup=true
ynh_core_pre_backup=
ynh_core_post_backup=
# ynh_app_backup=APP: Make a backup of an app.
# You can add as many lines as you want to save multiple apps.
# List all apps with sudo yunohost app list --installed | grep "id: "
# ynh_app_backup=wordpress
# If you don't want an app with a lot of data to backup those big files, please add 'do_not_backup_data' after the app name.
# ynh_app_backup=transmission do_not_backup_data
ynh_app_pre_backup=
ynh_app_post_backup=
ynh_app_backup=
# --------------------------------------------------------------------------------------
## FILES BACKUPS
# Max size for each backup in Mb.
# Be carreful, it's only a soft limit, that means the script will try to limit each backup.
# Because, it will never made more than one backup for a single directory (Even if it's a real big directory without subdirectories). And the same if there's files next to subdirectories, only one backup will be made for all this files.
max_size=500
# Backup of files and directories
# Add as many lines as you want for each directory or file you want to be backuped.
# Exclude a directory, a file, or multiples files with a regex with the exclude_backup instruction.
# file_to_backup="/directory/to backup"
# file_to_backup=/file/to backup
# exclude_backup="/directory/to exclude"
# exclude_backup=/file/to exclude
# exclude_backup="/exclude/all/tarball/in_this_directory/.tar.gz$"
files_pre_backup=
files_post_backup=
file_to_backup=
exclude_backup=
# --------------------------------------------------------------------------------------
## BACKUPS RECIPIENTS
# All options following a recipient name will be enabled for this recipient only.
# > recipient name=Name of this recipient.
# type=Choose between one of the scripts in the "senders" directory.
# destination directory=Directory where to put the backup in the other side.
# encrypt=Override main option for encryption. (true/false) (Optionnal option)
# specific option for type=See the chosen script to know what's the options.
# exclude backup=Exclude a backup file or a directory from the backup. This option can be duplicated. (Optionnal option)
# include backup=Choose the only file or directory which be send. This option can be duplicated. (Optionnal option)
# > recipient name=local example
# type=local
# destination directory=/my/local/backup
# encrypt=false
# pre_backup=
# post_backup=
# exclude backup=/exclude/dir
# include backup=
# > recipient name=rsync ssh example
# type=rsync_ssh
# destination directory=backup
# encrypt=false
# ssh_host=domain.tld
# ssh_user=user
# ssh_port=22
# ssh_key=/home/user/.ssh/id_rsa
# ssh_pwd=
# ssh_options=
# pre_backup=
# post_backup=
# exclude backup=/exclude/dir
# include backup=
# > recipient name=b2 example
# type=b2
# destination directory=backup
# encrypt=false
# b2_bucket=my-bucket
# pre_backup=
# post_backup=
# exclude backup=/exclude/dir
# include backup=