Majic Projects
Majic Ansible Roles
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png Majic Ansible Roles / Closed Feature request MAR-44 Roles for setting-up backup server/client
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Go to the next issue (open or closed)
Go to the next open issue
There are no more issues in that direction.
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Feature request
  • Category
    Not determined
  • Targetted for
    1.0.0
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    1 week
  • Time spent
    1 week
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
In order to have properly functioning infrastructure, it would be useful to have a proper set of roles for managing the backup servers and clients.

The solution should be based on Duplicity (http://duplicity.nongnu.org/) and Duply (http://duply.net/) - as convenient wrapper around duplicity.

There are two roles that should be implemented:
* backup_server
* backup_client

The '''backup_server''' role should be implemented as follows:
* Deploy Duplicity and Duply.
* Create users, based on a list servers, that will be allowed to backup to the server.
* Set-up authorized_keys for the backup users. Public keys should be provided locally.
* The backup users should be allowed sftp only, and should also be confined via chroot.

The '''backup_client''' role should be implemented as follows:
* Deploy Duplicity and Duply.
* Deploy a private key for logging-in into the backup server.
* Configure Duply, having it read exclude patterns from a single file.
* Design it so that exclude pattern file should be constructed using assemble module. Roles that want to create backups can simply deploy their exclude pattern file in this directory. Handler should be provided for reassembling this file.
* known_hosts should be populated appropriately from Ansible facts (check how) so the backups could be run automatically. This should be put into global known_hosts file.
* Configures cron-job for running backups (make this configurable).
Todos (0 / 0)
Issue created