meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:backup:duply [2017/06/14 09:02] – niziak | linux:backup:duply [2018/03/08 08:31] – niziak | ||
---|---|---|---|
Line 59: | Line 59: | ||
**Note:** duply dosn't make any cleanup or deletions during '' | **Note:** duply dosn't make any cleanup or deletions during '' | ||
- | To perform maintenance of old backup accordign to '' | + | To perform maintenance of old backup accordign to '' |
duply with '' | duply with '' | ||
+ | |||
+ | Example options: | ||
+ | * MAX_FULL_BACKUPS=2 | ||
+ | * MAX_FULLS_WITH_INCRS=1 | ||
+ | Will keep 2 full backup sets, but only one with increments (last one). | ||
+ | |||
+ | Sometimes it is good to check whether incremental backups are meaningful (it depends on type of data stored). If command | ||
+ | <code bash> | ||
+ | can be short e.g. MAX_FULLBKP_AGE=7D | ||
+ | |||
====== Usage ====== | ====== Usage ====== | ||
Line 75: | Line 85: | ||
<file bash> | <file bash> | ||
- | duply gitlab backup | + | duply gitlab backup |
- | duply gitlab purge --force # list outdated backup archives and delete them | + | duply gitlab purge --force |
- | duply gitlab cleanup --extra-clean --force > /dev/null # list broken backup files and delete them | + | duply gitlab-to-grinnux purgeIncr --force && banner OK || banner error |
+ | duply gitlab-to-grinnux purgeFull --force && banner OK || banner error | ||
+ | duply gitlab cleanup --extra-clean --force > / | ||
</ | </ | ||
+ | ===== shell function ===== | ||
+ | <code bash> | ||
+ | function run_duply() { | ||
+ | duply ${1} backup && banner OK || banner error | ||
+ | echo " | ||
+ | duply ${1} purge --force && banner OK || banner error | ||
+ | duply ${1} purgeIncr --force && banner OK || banner error | ||
+ | duply ${1} purgeFull --force && banner OK || banner error | ||
+ | echo " | ||
+ | duply ${1} cleanup --extra-clean --force > /dev/null && banner OK || banner error | ||
+ | } | ||
+ | </ | ||
====== SFTP and rbash ====== | ====== SFTP and rbash ====== |