-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup.conf_SAMPLE
69 lines (62 loc) · 2.07 KB
/
backup.conf_SAMPLE
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
#
# backup.sh configuratin file
#
# backup.sh expects to find this file in /opt/backup.sh/backup.conf
#
# Script operating mode
# MODE=0 --> Mirror to remote ssh server
# MODE=1 --> Mirror entire disk to external USB disk as Botable
# MODE=2 --> Mirror Documents to external USB disk
# MODE=3 --> Make all backups
MODE=0
# Files to include in the backup.
# Each line in the INCLUDE file should be a directory to be mirrowed (do not end the path in "/").
# A sample file could be:
#
#/Library/Screen Savers
#/Users/username/.profile
#/Users/username/Desktop
#/Users/username/Documents
#/Users/username/Movies
#/Users/username/Music
#/Users/username/Pictures
#
INCLUDE=/opt/backup.sh/include.txt
# Files to exclude from backup.
# EXCLUDE file is intended to not copy those dirs neither their subdirs.
# A sample file could be:
#
#*/.Trash
#.DS_Store
#.localized
#.Spotlight-*/
#.Trashes
#/private/tmp/*
#/private/var/run/*
#/private/var/spool/postfix/*
#/private/var/vm/*
#/tmp/*
#/Volumes/*
#
EXCLUDE=/opt/backup.sh/exclude.txt
# Logfile
LOG=/opt/backup.sh/backup.log
# Server parameters for remote backup ( parameters used when MODE=0 or MODE=3)
# The IP of the remote host
HOST=10.174.24.102 # The remote server IP address
# The ssh options to access the remote backup host
SSH_OPTS="-p 22" # The port where ssh is listening in the remote server
# Uncomment next to mount/umount a remote disk in the backup server.
# This disk will be mounted when backing up and unmounting at the end of the backup
# This options are very useful if you need the backups to be available in a windows partition on the remote server
#MOUNT_CMD="sudo mount -t ntfs UUID=79D330B408A08042 $DISK -o utf8,uid=1000,gid=1000,umask=077"
#UMOUNT_CMD='sudo umount $(findfs UUID=79D330B408A08042)'
DISK=/
# Path in the remote disk to save the backup in
MIRROR=$DISK/backup_folder/
# Path in the remote disk to save the old backup files
MIRROR_OLD=$DISK/backup_old_folder/
# Sufix to be used for old version files
MIRROR_OLDSUFFIX=_rsync.$timestamp
# External USB (parameter used when MODE=1, MODE=2 or MODE=3) operation
USB_DISK=/Volumes/BACKUP