-
Notifications
You must be signed in to change notification settings - Fork 0
/
home
63 lines (58 loc) · 1.5 KB
/
home
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
# =================== Customize Remote Here =========================
# Configuration values not set here are set in the base configuration
#
# Remote username and hostname if different than Base configuration
# REMOTE_USER="<your_remote_user>"
# REMOTE_HOST="<your_remote_host>"
#
## PATHS - which paths are included
#
# Paths for home folders backup
PATHS=(
'/home'
)
## EXCLUDES - which files/folders to exclude from the corresponding PATHS
#
# Home folders borg backup excludes
EXCLUDES=(
'/home/*/.cache'
'/home/*/.docker/desktop/vms'
'/home/*/.local/share/Daedalus'
'/home/*/.local/share/nvim-*'
'/home/*/Music/*'
'/home/*/transfers/*'
'*/.Trash-*'
'*/[Cc]ache/*'
'*/.bitcoin/blocks/*'
'*.vmdk'
'*.pyc'
)
## INCLUDES - patterns to include
#
# borg backup pattern includes
INCLUDES=()
# Arguments to the borg commands
#
# Home folders backup borg create ...
BORG_CREATE_ARGS=(
--info
--list
--filter AME
--compression lz4
--exclude-caches
--one-file-system
--exclude-if-present '.nobackup'
)
# Storage path on remote, default: <hostname>/backups
# BACK_HOST="$(hostname)"
BACK_DIR="home"
# Remote borg repository to use
# If using a non-standard SSH port ssh:// have to be specified (per borg v1.0.9)
# BORG_REPO="ssh://${REMOTE_USER}@${REMOTE_HOST}:<ssh_port>/${BACK_HOST}/${BACK_DIR}"
BORG_REPO="${REMOTE_USER}@${REMOTE_HOST}:${BACK_HOST}/${BACK_DIR}"
# How many backups to keep
# KEEP_HOURLY=0
KEEP_DAILY=8
KEEP_WEEKLY=6
KEEP_MONTHLY=4
KEEP_YEARLY=2