-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsystembackup.conf
33 lines (27 loc) · 1.21 KB
/
systembackup.conf
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
# Yes, this is just a bash file that is 'source'ed into the main
# script. I know it is terrible, and that I really should be using
# something that doesn't allow arbitary code injection, but I _really_
# don't like dealing with bash that much, but I have dug this hole
# already and it works. Ideally I would roll this into haskell so
# that I can get some sexy type checking and inference, but then
# I have much the same problem of dealing with ssh/rsync/cp/openssl,
# but now with extra monadic stuff around it.
LOCAL_BACKUP_DIRECTORY="/mnt/backup"
SOURCES="/home /etc"
LOCAL_BACKUPS_TO_KEEP=2500
# OpenSSL encryption cipher. See "openssl enc --help" for more info.
CIPHER="-aes-256-cbc"
# OpenSSL digest algorism. See "openssl dgst --help" for more info.
HMAC_ALGO="-sha512"
# OpenSSL password for encyption. See "openssl pass" for more info.
PASSWORD="pass:password"
#PASSWORD="env:environment_variable"
#PASSWORD="file:password_file"
# OpenSSL hmac key. Alphanumeric. See the openssl man pages for more info.
HMAC_KEY="hmac_key"
# Array to store the remote location data.
# One config entry per line
# Format is "server user ssh_id backup_dir backups_to_keep"
REMOTE_CONFIG=(
"server user ssh_id /mnt/backup number_of_backups"
)