The differences between two versions are shown here.
| Both sides of the previous revisionPrevious revisionNext revision | Previous revision | ||
| backup [2017/09/21 09:52] – [Überblick] lwsystems | backup [2018/11/02 17:58] (current) – [Überblick] lwsystems | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| ===== Überblick ===== | ===== Überblick ===== | ||
| + | * [[Recovery]] | ||
| Benno MailArchiv stores its data under different paths. | Benno MailArchiv stores its data under different paths. | ||
| 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 | ||