Backup-manager.conf

De Wiki @ Brest

Révision de 9 janvier 2013 à 15:01 par Fleon (discussion | contributions) (1 version : import libre à brest)

(diff) ← Version précédente | Voir la version courante (diff) | Version suivante → (diff)

Voici les modifications (encadrées)apportées dans le fichier.

  • #le dièse sert à commenter à mettre une ligne de commentaire
  • # le fichier a été purgé des lignes de commandes non nécessaires pour notre cas (ex : la sauvegarde par ftp)
# EMPLACEMENT DES ARCHIVES									
#export BM_REPOSITORY_ROOT="/var/archives"
export BM_REPOSITORY_ROOT="/home/administrateur/sauvegarde"
# le repertoire ou vont être stocké les sauvegardes
# SECURITE : DROIT LE LECTURE/ECRITURE RESTREINT SUR ROOT
export BM_REPOSITORY_SECURE="true"
export BM_REPOSITORY_USER="root"
export BM_REPOSITORY_GROUP="root"
export BM_REPOSITORY_CHMOD="770"
export BM_ARCHIVE_CHMOD="660"
# Number of days we have to keep an archive (Time To Live)
export BM_ARCHIVE_TTL="1"
# on ne garde que la sauvegarde à J-1 qui est écrasée par la nouvelle le jour J
# Do you want to purge only the top-level directory or all
# directories under BM_REPOSITORY_ROOT?
export BM_REPOSITORY_RECURSIVEPURGE="true"				

# 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"

# The backup method to use. TYPE DE SAUVEGARDE = TARBALL # Available methods are: # - tarball # - tarball-incremental # - mysql # - svn # - pipe # - none # If you don't want to use any backup method (you don't want to # build archives) then choose "none"

export BM_ARCHIVE_METHOD="tarball"
# ici utilise une procédure tarball simple, c'est à que TOUTE les données sont sauvegardées systématiquement. Qu'elles aient 
été modifiés ou pas depuis la dernière sauvegarde

# NON-ENCRYPTAGE DE L'ARCHIVE export BM_ENCRYPTION_METHOD="false"

# The encryption will be made using a GPG ID # Examples: # export BM_ENCRYPTION_RECIPIENT="" # export BM_ENCRYPTION_RECIPIENT="" export BM_ENCRYPTION_RECIPIENT=""


# Section "TARBALL" # - Backup method: tarball


# Archive filename format # long  : host-full-path-to-folder.tar.gz # short : parentfolder.tar.gz export BM_TARBALL_NAMEFORMAT="long"

# Type of archives # Available types are: # tar, tar.gz, tar.bz2, tar.lz, dar, zip. # Make sure to satisfy the appropriate dependencies # (bzip2, dar, lzma, ...). export BM_TARBALL_FILETYPE="tar.gz"

# You can choose to build archives remotely over SSH. # You will then need to fill the BM_UPLOAD_SSH variables # (BM_UPLOAD_SSH_HOSTS, BM_UPLOAD_SSH_USER, BM_UPLOAD_SSH_KEY). # If this boolean is set to true, archive will be saved locally (in # BM_REPOSITORY_ROOT but will be built by the remote host). # Thus, BM_TARBALL_DIRECTORIES will be used to backup remote directories. # Those archive will be prefixed with the remote host name. export BM_TARBALL_OVER_SSH="false"

# Do you want to dereference the files pointed by symlinks ? # enter true or false (true can lead to huge archives, be careful). export BM_TARBALL_DUMPSYMLINKS="false"

# Targets to backup

# You can use two different variables for defining the targets of # your backups, either a simple space-separated list (BM_TARBALL_DIRECTORIES) # or an array (BM_TARBALL_TARGETS[]). # Use the first one for simple path that doesn't contain spaces in their name. # Use the former if you want to specify paths to backups with spaces.

# It's recommanded to use BM_TARBALL_TARGETS[] though. # Warning! You *must not* use both variables at the same time. # NOTE: The Debian package will only update BM_TARBALL_DIRECTORIES

# Paths without spaces in their name: !!! modifications export BM_TARBALL_DIRECTORIES="/etc /home/user1/serveur"

# If one or more of the targets contain a space, use the array: # declare -a BM_TARBALL_TARGETS # BM_TARBALL_TARGETS[0]="/etc" # BM_TARBALL_TARGETS[1]="/boot" # export BM_TARBALL_TARGETS

# Files to exclude when generating tarballs, you can put absolute # or relative paths, Bash wildcards are possible. export BM_TARBALL_BLACKLIST="/var/archives"

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

  1. !!! supression de la slice limit

# 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=""

# 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="weekly"

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

# Examples: you want to make master tarballs every friday: # BM_TARBALLINC_MASTERDATETYPE="weekly" # BM_TARBALLINC_MASTERDATEVALUE="5"

# Or every first day of the month: # BM_TARBALLINC_MASTERDATETYPE="monthly" # BM_TARBALLINC_MASTERDATEVALUE="1"


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


# the method of burning archives from the list : # - DVD  : burn archives on a DVD medium # (that doesn't need formatting, like DVD+RW).

# - DVD-RW : blank the DVD medium and burn archives # (recommanded for DVD-RW media).

# - CDRW  : blank the CDRW and burn the whole # ARCHIVES_REPOSITORY or only # the generated archives.

# - CDR  : burn the whole ARCHIVES_REPOSITORY or # only the generated archives. # - none  : disable the burning system

export BM_BURNING_METHOD="DVD-RW"

# When the CD is burnt, it is possible to check every file's # MD5 checksum to see if the CD is not corrupted. export BM_BURNING_CHKMD5="true"

# The device to use for mounting the cdrom export BM_BURNING_DEVICE="/dev/cdrom"

# You can force cdrecord to use a specific device # Fill in the full path to the device to use or even # e.g. BM_BURNING_DEVFORCED="/dev/cdrom" # If none specified, the default cdrecord device will be used. export BM_BURNING_DEVFORCED="/dev/cdrom"

# By default backup-manager will make Joliet media (using the mkisofs switches # : "-R -J"). You can change these if you want to use non-Joliet disc images. # Change this only if you know what you're doing. Refer to mkisofs(8) for # details. export BM_BURNING_ISO_FLAGS="-R -J"

# enter here the max size of your media 
# (usal sizes are 4200 for DVD media and 700 or 800 for CDR media)
 export BM_BURNING_MAXSIZE="4700"


# Advanced settings, use this with care.


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

# 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="rm /home/administrateur/sauvegarde -r"
# On vide l'ancienne sauvegarde du répertoire dédiée
# Enter here some shell script.
# It will be executed after the last action of backup-manager.
export BM_POST_BACKUP_COMMAND="fuser -k /media/cdrom"
# On tue les processus qui pourrait rendre le graveur occupé (busy)