-
Notifications
You must be signed in to change notification settings - Fork 1
/
my-backup-sample.sh
executable file
·47 lines (37 loc) · 1.04 KB
/
my-backup-sample.sh
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
#!/bin/bash
# Edit this file to configure your backup.
# SFTP (SSH) path to back up to.
SSH_PATH="example.com:test/"
# SSH_ID="~/.ssh/id_rsa"
# SSH_KNOWN_HOSTS="~/.ssh/known_hosts"
# Where to keep attic encryption keys. Default: ~/.attic.
# ATTIC_KEYS=~/.attic
# Where to keep attic cache files. Default: ~/.cache.
# ATTIC_CACHE=~/.cache
# 1 backup per day will be kept for up to this many days. Default: 2.
# KEEP_DAILY=2
# Root of the file system to back up. Default: /.
# BACKUP_ROOT="/"
# What to back up within BACKUP_ROOT. One name per line. Use ./ to back up everything in BACKUP_ROOT. Default: ".".
# Note that the "do not cross mount points" option is in use so to back up more than one partition, specify each.
BACKUP_PATHS="
file1
file2
"
# What to exclude. One exclude per line. Attic style wildcards allowed.
EXCLUDES="
/proc
/dev
/tmp
/var/tmp
/var/log
/var/cache
/media
/lost+found
"
### End configuration -- don't edit below this line. ###
if [[ -e "./backup.sh" ]]; then
source ./backup.sh $@
else
source $(dirname "$0")/backup.sh $@
fi