# Where to store the archives
export BM_REPOSITORY_ROOT="/var/archives"

# Where to place temporary files
export BM_TEMP_DIR="/tmp"

# For security reasons, the archive repository and the generated
# archives will be readable/writable by a given user/group.
# This is recommended to set this to true.
export BM_REPOSITORY_SECURE="true"

# The repository will be readable/writable only by a specific
# user:group pair if BM_REPOSITORY_SECURE is set to true.
export BM_REPOSITORY_USER="root"
export BM_REPOSITORY_GROUP="root"
# You can also choose the permission to set the repository, default
# is 770, pay attention to what you do there!
export BM_REPOSITORY_CHMOD="770"

##############################################################
# Archives - let's focus on the precious tarballs...
##############################################################

# Each archive generated will be chmoded for security reasons
# (BM_REPOSITORY_SECURE should be enabled for this).
export BM_ARCHIVE_CHMOD="660"

# Number of days we have to keep an archive (Time To Live)
export BM_ARCHIVE_TTL="1"

# Do you want to purge only the top-level directory or all
# directories under BM_REPOSITORY_ROOT?
export BM_REPOSITORY_RECURSIVEPURGE="false"

# Do you want to replace duplicates by symlinks?
# (archive-DAY is a duplicate of archive-(DAY - 1) if they
# are both the same according to MD5 hashes).
export BM_ARCHIVE_PURGEDUPS="true"

# Prefix of every archive on that box (default is HOSTNAME)
export BM_ARCHIVE_PREFIX="$HOSTNAME"

# Should we purge only archives built with $BM_ARCHIVE_PREFIX
export BM_ARCHIVE_STRICTPURGE="true"

# You may want to nice the commands run for archive-creation
# (Recommanded for desktop users.)
# Choose a nice level from -20 (most favorable scheduling) to 19 (least favorable).
export BM_ARCHIVE_NICE_LEVEL="10"

export BM_ARCHIVE_METHOD="tarball-incremental"

# set to encrypt
export BM_ENCRYPTION_METHOD=""

#Encryption recipient
export BM_ENCRYPTION_RECIPIENT="KEY_FP"

#Tarball Name
export BM_TARBALL_NAMEFORMAT="long"

#Tarball type
export BM_TARBALL_FILETYPE="tar"

#Tarball over ssh
export BM_TARBALL_OVER_SSH="false"
#Dump symlinks .
export BM_TARBALL_DUMPSYMLINKS="false"
export BM_TARBALL_DIRECTORIES="/usr/share/backup-manager"

export BM_TARBALL_BLACKLIST=""
# With the "dar" filetype, you can choose a maximum slice limit.
export BM_TARBALL_SLICESIZE="1000M"

# Extra options to append to the tarball generation
# (take care to what you do; this will be silently added to the
# command line.)
export BM_TARBALL_EXTRA_OPTIONS="--numeric-owner --preserve-permissions --no-check-device"

##############################################################
# The tarball-incremental method uses the same keys as the
# tarball method, plus two others.
#############################################################

# Which frequency to use for the master tarball?
# possible values: weekly, monthly
export BM_TARBALLINC_MASTERDATETYPE="monthly"

# Number of the day, in the BM_TARBALLINC_MASTERDATETYPE frequency
# when master tarballs should be made
export BM_TARBALLINC_MASTERDATEVALUE="5"


##############################################################
# Backup method: MYSQL
#############################################################

export BM_MYSQL_DATABASES="__ALL__"

export BM_MYSQL_SAFEDUMPS="true"

export BM_MYSQL_ADMINLOGIN="root"

export BM_MYSQL_ADMINPASS=""

export BM_MYSQL_HOST="localhost"

export BM_MYSQL_PORT="3306"

export BM_MYSQL_FILETYPE="bzip2"

export BM_MYSQL_EXTRA_OPTIONS=""

export BM_MYSQL_SEPARATELY="true"

export BM_MYSQL_DBEXCLUDE=""

##############################################################
# Backup method: PostgreSQL
#############################################################

export BM_PGSQL_DATABASES="__ALL__"

export BM_PGSQL_ADMINLOGIN="root"

export BM_PGSQL_ADMINPASS=""

export BM_PGSQL_HOST="localhost"

export BM_PGSQL_PORT="5432"

export BM_PGSQL_FILETYPE="bzip2"

export BM_PGSQL_EXTRA_OPTIONS=""

##############################################################
# Backup method: svn
#############################################################

export BM_SVN_REPOSITORIES=""

export BM_SVN_COMPRESSWITH="bzip2"

##############################################################
# Backup method: pipe
#############################################################

declare -a BM_PIPE_COMMAND
declare -a BM_PIPE_NAME
declare -a BM_PIPE_FILETYPE
declare -a BM_PIPE_COMPRESS

export BM_PIPE_COMMAND
export BM_PIPE_NAME
export BM_PIPE_FILETYPE
export BM_PIPE_COMPRESS

##############################################################
# Section "UPLOAD"
# You can upload archives to remote hosts with different
# methods.
#############################################################

export BM_UPLOAD_METHOD="ftp"

export BM_UPLOAD_HOSTS=""

export BM_UPLOAD_DESTINATION=""

##############################################################
# The SSH-GPG method
# The ssh-gpg method uses the same configuration keys as the
# ssh method, plus one other
#############################################################

export BM_UPLOAD_SSHGPG_RECIPIENT=""

##############################################################
# The FTP method
#############################################################

# Use FTP secured transfers (FTP over TLS)
# User, password and data will be uploaded encrypted with SSL.
# Passive mode will be automaticaly activated
export BM_UPLOAD_FTP_SECURE="true"

# Do you want to use FTP passive mode?
# This is mandatory for NATed/firewalled environments
export BM_UPLOAD_FTP_PASSIVE="true"

# Test the FTP connection before starting archives upload.
# This will enable BM to try sending a 2MB test file before
# sending any archive
export BM_UPLOAD_FTP_TEST="false"

# the user to use for the FTP connections/transfers
export BM_UPLOAD_FTP_USER="ftp_user"

# the FTP user's password
export BM_UPLOAD_FTP_PASSWORD="insert_password_here"

# FTP specific remote hosts
export BM_UPLOAD_FTP_HOSTS="server_hostname"

# purge archives on remote hosts before uploading?
export BM_UPLOAD_FTP_PURGE="true"

# You can specify a time to live for archives uploaded with FTP
# This can let you use different ttl's locally and remotely
# By default, BM_ARCHIVE_TTL will be used.
export BM_UPLOAD_FTP_TTL="10"

# destination for FTP uploads (overrides BM_UPLOAD_DESTINATION)
export BM_UPLOAD_FTP_DESTINATION="/backups/"


##############################################################
# The S3 method
#############################################################

export BM_UPLOAD_S3_DESTINATION=""

export BM_UPLOAD_S3_ACCESS_KEY=""

export BM_UPLOAD_S3_SECRET_KEY=""

export BM_UPLOAD_S3_PURGE="false"

##############################################################
# The RSYNC method
#############################################################

export BM_UPLOAD_RSYNC_DIRECTORIES=""

export BM_UPLOAD_RSYNC_DESTINATION=""

export BM_UPLOAD_RSYNC_HOSTS=""

export BM_UPLOAD_RSYNC_DUMPSYMLINKS="false"

##############################################################
# Section "BURNING"
# - Automatic CDR/CDRW/DVDR burning
#############################################################

export BM_BURNING_METHOD="none"

export BM_BURNING_CHKMD5="false"

export BM_BURNING_DEVICE="/dev/cdrom"

export BM_BURNING_DEVFORCED=""

export BM_BURNING_ISO_FLAGS="-R -J"

export BM_BURNING_MAXSIZE="650"


##############################################################
# Advanced settings, use this with care.
#############################################################

# Every output made can be sent to syslog
# set this to "true" or "false"
export BM_LOGGER="false"

# Which level of messages do you want to log to syslog?
# possible values are : debug,info,warning,error
export BM_LOGGER_LEVEL="debug"

# You can choose which facility to use
export BM_LOGGER_FACILITY="user"

# Enter here some shell script.
# It will be executed before the first action of backup-manager.
export BM_PRE_BACKUP_COMMAND=""

# Enter here some shell script.
# It will be executed after the last action of backup-manager.
export BM_POST_BACKUP_COMMAND=""