10-directories.conf 886 Bytes
Newer Older
Steve Kemp's avatar
Merge  
Steve Kemp committed
1
2
3
4

##################################################
# Source files

Steve Kemp's avatar
Steve Kemp committed
5
#
6
7
# List of directories to make backups of.  /var/backups/mysql is included here
# such that versioned database backups are kept.
Steve Kemp's avatar
Steve Kemp committed
8
#
9
SRCLIST=(/etc /root /srv /home /usr/local /var/mail /var/lib /var/spool/cron /var/backups/mysql)
Steve Kemp's avatar
Merge  
Steve Kemp committed
10
11

# The following expression specifies the files not to be archived.
Steve Kemp's avatar
Steve Kemp committed
12
#
Steve Kemp's avatar
Merge  
Steve Kemp committed
13
14
# This example skips all files and directories with a path name containing
# '.nobackup' and all .o files:
Steve Kemp's avatar
Steve Kemp committed
15
#
16
17
18
# Exclude mysql binary dirs, as these are dumped to /var/backups/mysql before
# the backup.  Also exclude php5 session files.
#
19
SKIPCOND=(-path "*.nobackup*" -o -name "*.o" -o '(' -path '/var/lib/mysql' -o -path '/var/lib/php' -o -path '/var/lib/docker' ')' -prune )
Steve Kemp's avatar
Merge  
Steve Kemp committed
20
21
22

##################################################
# Destination
Steve Kemp's avatar
Steve Kemp committed
23
#
Steve Kemp's avatar
Merge  
Steve Kemp committed
24
# Destination directory for backups;
Steve Kemp's avatar
Steve Kemp committed
25
26
#
BACKUP_DIR="/var/backups/localhost"