dda-backup-crate
| DevOps Hacking with Clojure | Website & Blog
dda-backup-crate
The backup crate provides installation & configuration application backups. Specific adapters has to be defined.
Compatibility
The Crate works with:
- pallet 0.8
- ubuntu 14.04
Funktionality
The backup Crate provides:
- Backup User ( dataBackupSource ) is put on the target Linux system.
- Creating required folder structures :
- transport -outgoing - to store backups that brings the current backup system to another machine.
- store - the place to store the currently stored local backups.
- restore - the place from which the backup system initiates the restore process.
- Install backup scripts as backup base system.
- manages the required cronjobs.
Usageexample
Namespaces used
(:require
[org.domaindrivenarchitecture.pallet.crate.backup :as backup])
Individual Backup Configuration
(def my-config
{:backup-name "managed-vm"
:script-path "/usr/lib/dda-backup/"
:gens-stored-on-source-system 1
:elements [{:type :file-compressed
:name "user-home"
:root-dir "/home/some-user"
:subdir-to-save ".ssh .mozilla"}]
:backup-user {:name "dataBackupSource"
:encrypted-passwd "someEncryptedPwd"}}
Backs up .ssh and .mozilla in /home/some-user.
Installation
(backup/install "app-name" my-config)
Configuraton
(backup/configure "app-name" my-config)
Do the restore
cd /home/dataBackupSource/restore/
/usr/lib/dda-backup/app-name_restore.sh [prefix for restore files]
Using Duplicity
Concerning duplicity-ppa, in the case of "Package source : FAIL" the second try will work.
License
Author: Michael Jerger, Tobias Scherer, Thomas Jakob Licensed under the Apache License, Version 2.0 (the "License");