-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup.config
26 lines (25 loc) · 1.13 KB
/
backup.config
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
export ID=/usr/bin/id;
export ECHO=/bin/echo;
export MOUNT=/bin/mount;
export RM=/bin/rm;
export MV=/bin/mv;
export CP=/bin/cp;
export KILLALL=/usr/bin/killall;
export DATE=/bin/date;
export TOUCH=/bin/touch;
export RSYNC=/usr/bin/rsync;
export SLEEP=/bin/sleep;
export SUSPEND=/usr/sbin/pm-suspend;
export TAIL=/usr/bin/tail;
export DIRNAME=/usr/bin/dirname;
export REALPATH=/usr/bin/realpath;
export SED=/bin/sed;
# ------------- Used for adding timestamp to backups -------------------
export DATESTAMP=$($DATE +%Y%m%d%H%M)
# ------------- File Locations -----------------------------------------
export MOUNT_DEVICE=nas1:/backup; #SMB/NFS/CIFS/etc share name
export SNAPSHOT_RW=/nas/backup; #directory to mount device listed aboce
export LOGFILE=rsync.log.$($DATE +%Y%m%d%H%M%S); #will be added to the backup to list added/deleted/changed files
export DIAGNOSTICLOG=/home/scott/backupdiag.log; #for showing start/stop times of backups, backup size, etc
export EXCLUDES=/opt/scripts/backup/backup_exclude; #list of files/folders to EXCLUDE from backup
export INCLUDES=/opt/scripts/backup/backup_include; #list of files/folders to INCLUDE in backup