#
# List of directories or files to backup.  If this is defined, only these
# directories or files will be backed up.
#
# For Smb, only one of $Conf{BackupFilesExclude} and $Conf{BackupFilesOnly}
# can be specified per share. If both are set for a particular share, then
# $Conf{BackupFilesOnly} takes precedence and $Conf{BackupFilesExclude}
# is ignored.
#
# This can be set to a string, an array of strings, or, in the case
# of multiple shares, a hash of strings or arrays.  A hash is used
# to give a list of directories or files to backup for each share
# (the share name is the key).  If this is set to just a string or
# array, and $Conf{SmbShareName} contains multiple share names, then
# the setting is assumed to apply all shares.
#
# If a hash is used, a special key "*" means it applies to all
# shares that don't have a specific entry.
#
# Examples:
#    $Conf{BackupFilesOnly} = '/myFiles';
#    $Conf{BackupFilesOnly} = ['/myFiles'];     # same as first example
#    $Conf{BackupFilesOnly} = ['/myFiles', '/important'];
#    $Conf{BackupFilesOnly} = {
#       'c' => ['/myFiles', '/important'],      # these are for 'c' share
#       'd' => ['/moreFiles', '/archive'],      # these are for 'd' share
#    };
#    $Conf{BackupFilesOnly} = {
#       'c' => ['/myFiles', '/important'],      # these are for 'c' share
#       '*' => ['/myFiles', '/important'],      # these are other shares
#    };
#
$Conf{BackupFilesOnly} = {};

#
# List of directories or files to exclude from the backup.  For Smb,
# only one of $Conf{BackupFilesExclude} and $Conf{BackupFilesOnly}
# can be specified per share.  If both are set for a particular share,
# then $Conf{BackupFilesOnly} takes precedence and
# $Conf{BackupFilesExclude} is ignored.
#
# This can be set to a string, an array of strings, or, in the case
# of multiple shares, a hash of strings or arrays.  A hash is used
# to give a list of directories or files to exclude for each share
# (the share name is the key).  If this is set to just a string or
# array, and $Conf{SmbShareName} contains multiple share names, then
# the setting is assumed to apply to all shares.
#
# The exact behavior is determined by the underlying transport program,
# smbclient or tar.  For smbclient the exclude file list is passed into
# the X option.  Simple shell wild-cards using "*" or "?" are allowed.
#
# For tar, if the exclude file contains a "/" it is assumed to be anchored
# at the start of the string.  Since all the tar paths start with "./",
# BackupPC prepends a "." if the exclude file starts with a "/".  Note
# that GNU tar version >= 1.13.7 is required for the exclude option to
# work correctly.  For linux or unix machines you should add
# "/proc" to $Conf{BackupFilesExclude} unless you have specified
# --one-file-system in $Conf{TarClientCmd} or --one-file-system in
# $Conf{RsyncArgs}.  Also, for tar, do not use a trailing "/" in
# the directory name: a trailing "/" causes the name to not match
# and the directory will not be excluded.
#
# Users report that for smbclient you should specify a directory
# followed by "/*", eg: "/proc/*", instead of just "/proc".
#
# FTP servers are traversed recursively so excluding directories will
# also exclude its contents.  You can use the wildcard characters "*"
# and "?" to define files for inclusion and exclusion.  Both
# attributes $Conf{BackupFilesOnly} and $Conf{BackupFilesExclude} can
# be defined for the same share.
#
# If a hash is used, a special key "*" means it applies to all
# shares that don't have a specific entry.
#
# Examples:
#    $Conf{BackupFilesExclude} = '/temp';
#    $Conf{BackupFilesExclude} = ['/temp'];     # same as first example
#    $Conf{BackupFilesExclude} = ['/temp', '/winnt/tmp'];
#    $Conf{BackupFilesExclude} = {
#       'c' => ['/temp', '/winnt/tmp'],         # these are for 'c' share
#       'd' => ['/junk', '/dont_back_this_up'], # these are for 'd' share
#    };
#    $Conf{BackupFilesExclude} = {
#       'c' => ['/temp', '/winnt/tmp'],         # these are for 'c' share
#       '*' => ['/junk', '/dont_back_this_up'], # these are for other shares
#    };
#
$Conf{BackupFilesExclude} = {
  '*' => [
    '/host`',
    '/host',
    '/host',
    '/host',
    '/host',
    '/host',
    '/host',
    '/host',
    '/host',
    '/host',
    '/host',
    '/host',
    '/dev/*',
    '/etc/webmin/system-status/info.lock',
    '/export/backup/*',
    '/export/backup1/*',
    '/export/backup2/*',
    '/export/old/*',
    '/export/data/*',
    '/export/data1/*',
    '/export/downloads/*',
    '/export/downloads-/*',
    '/export/data.bakup',
    '/export/dlna/*',
    '/export/dlna1/*',
    '/export/pics/*',
    '/export/pics/MBT',
    '/export/pics2/*',
    '/export/pics3/*',
    '/export/repo/',
    '/export/repo1/*',
    '/export/storage/*',
    '/export/videos/*',
    '/export/av8b/*',
    '/home/pete/.config/google-chrome/Default/Local Storage/',
    '/home/pete/.cache/moonchild productions/pale moon/btiwvhj2.default/cache2/entires/',
    '/home/pete/.cache/moonchild productions/pale moon/btiwvhj2.default/cache2/doomed/',
    '/home/pete/.cache/moonchild*/*/*.default/',
    '/home/pete/.cache/moonchild*/*/*.default/cache2/entries/',
    '/home/pete/.cache/moonchild*/*/*.default/cache2/doomed/',
    '/home/pete/.cache/mozilla/*/*.default/Cache/*',
    '/home/pete/.cache/mozilla/*/*.default/cache2/*',
    '/home/pete/.cache/mozilla/*/*.default/thumbnails/*',
    '/home/pete/.cache/mozilla/*/*.default/safebrowsing-backup/*',
    '/home/pete/.cache/opera/Cache/',
    '/home/pete/.cache/opera/*',
    '/home/pete/.config/opera/Local Storage/leveldb/*',
    '/home/pete/.cache/thunderbird/*.default/Cache.Trash*',
    '/home/pete/.cache/thunderbird/*.default/cache2/*',
    '/home/pete/.mozilla/seamonkey/*.default/*',
    '/home/pete/.mozilla/firefox/*.default/*',
    '/home/pete/.gvfs',
    '/home/pete/.lockmail',
    '/home/pete/.thunderbird/*.default/ImapMail/*',
    '/home/pete/FrostWire',
    '/home/pete/Mail/.imap/Trash/*',
    '/home/pete/VirtualBox*',
    '/local/*',
    '/media/*',
    '/misc/*',
    '/mnt/*',
    '/net/*',
    '/notes/*',
    '/opt/couchpotato/cache/python/*',
    '/proc/*',
    '/repos/*',
    '/run/*',
    '/sys/*',
    '/tmp/*',
    '/var/cache/*',
    '/var/lib/clamav/clamav*',
    '/var/lib/mlocate/mlocate.db.*',
    '/var/webmin/*',
    '/var/www/html/vvue/*',
    '/var/www/html/weewx/*',
    '/var/www/html/wxobs/*',
    '/var/lib/nfs/rpc_pipefs/*',
    '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/*',
    '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Caches/*',
    '/var/lib/transmission/.config/transmission/resume',
    '/var/lib/transmission/.config/transmission/torrents',
    '/var/lib/yum/yumdb/*',
    '/var/log/*log*',
    '/var/log/rsync.log-*',
    '/var/log/sa/*',
    '/var/lib/xymon/tmp/*',
    '/var/log/xymon/*',
    '/var/named/chroot/proc/*',
    '/var/run/fetch2300',
    '/var/spool/abrt/*',
    '/var/spool/MailScanner/incoming/*',
    '/var/spool/MailScanner/quarantine/*',
    '/var/spool/MailScanner/quarantine',
    '/var/spool/MailScanner/spamassassin/bayes_journal',
    '/var/spool/postfix/active/*',
    '/var/spool/postfix/defer*',
    '/var/spool/postfix/hold/*',
    '/var/spool/postfix/incoming/*',
    '/var/tmp/*',
    '/var/www/html/camera/backyard/*',
    '/var/www/html/camera/_sfpg_data/*',
    '/var/www/html/camera/old/*',
    '/var/www/html/weewx*',
    '/var/www/html/vvue/*',
    '/var/www/html/weather/*',
    '/var/www/html/ws23/*',
    '/win*/*',
    '/winxp/*',
    '/home/new/*',
    '/*/Dropbox'
  ]
};
