The differences between two versions are shown here.
| Next revision | Previous revision | ||
| backup [2016/11/08 08:39] – Externe Bearbeitung 127.0.0.1 | backup [2018/11/02 17:58] (current) – [Überblick] lwsystems | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| ===== Überblick ===== | ===== Überblick ===== | ||
| + | * [[Recovery]] | ||
| - | Benno ;MailArchiv speichert seine Daten unterhalb von unterschiedlichen Pfaden. | + | Benno MailArchiv stores its data under different paths. |
| - | *Repository: | + | *Repository: |
| - | *Index: / | + | *Index: |
| - | *Import-Spool / | + | *Import-Spool |
| - | *Benutzer-Datenbank: | + | *Benutzer-Datenbank: |
| - | *Templates für HTML-UI: / | + | *Templates für HTML-UI: / |
| ===== Repository ===== | ===== Repository ===== | ||
| Zeile 16: | Zeile 17: | ||
| The emails are stored in compressed form in the repository. The repository occupies by far the largest space in the archive's file system. No emails are deleted from the repository, so a backup only needs to save the files that have been added since the last backup. | The emails are stored in compressed form in the repository. The repository occupies by far the largest space in the archive's file system. No emails are deleted from the repository, so a backup only needs to save the files that have been added since the last backup. | ||
| - | A simple incremental network backup using system tools is a good option here. | + | A simple incremental network backup using system tools is a good option here. |
| + | |||
| + | ====== Inkrementelles Backup | ||
| + | |||
| + | A simple incremental backup to a locally mounted network share can be implemented with a simple script. | ||
| + | |||
| + | ===== Tar-Archive ===== | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | # | ||
| + | # | ||
| + | BACKUPDIR=/ | ||
| + | |||
| + | ARCHIVE_DIR=/ | ||
| + | TS_FILE=$ARCHIVE_DIR/ | ||
| + | |||
| + | START_DATE=`date +%Y%m%d%H%M.%S` | ||
| + | |||
| + | if [ ! -f $TS_FILE ];then | ||
| + | touch -t 200001010000 $TS_FILE | ||
| + | fi | ||
| + | |||
| + | / | ||
| + | tar -T - -cf ${BACKUPDIR}/ | ||
| + | touch -t $START_DATE $TS_FILE | ||
| + | </ | ||
| + | |||
| + | ===== Verzeichnisstruktur ===== | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | # | ||
| + | # | ||
| + | BACKUPDIR=/ | ||
| + | |||
| + | ARCHIVE_DIR=/ | ||
| + | TS_FILE=$ARCHIVE_DIR/ | ||
| + | |||
| + | START_DATE=`date +%Y%m%d%H%M.%S` | ||
| + | |||
| + | if [ ! -f $TS_FILE ];then | ||
| + | touch -t 200001010000 $TS_FILE | ||
| + | fi | ||
| + | |||
| + | / | ||
| + | /bin/cpio --pass-through --preserve-modification-time --make-directories \ | ||
| + | $BACKUPDIR | ||
| + | touch -t $START_DATE $TS_FILE | ||
| + | </ | ||
| ====== Inkrementelles Netzwerk-Backup | ====== Inkrementelles Netzwerk-Backup | ||