Duplicity configuration for Ubuntu linux




6,612 latest version

1.5 quality score

Version information

  • 1.0.3 (latest)
  • 1.0.2
  • 1.0.1
released Jul 3rd 2019

Start using this module


opstudio/duplicity — version 1.0.3 Jul 3rd 2019


Table of Contents

  1. Description
  2. Setup - The basics of getting started with duplicity
  3. Usage - Configuration options and additional functionality


Install and configure duplicity on Ubuntu Linux.

Create scripts with backup jobs and add cron tasks.


What duplicity affects OPTIONAL

If it's obvious what your module touches, you can skip this section. For example, folks can probably figure out that your mysql_instance module affects their MySQL instances.

If there's more that they should know about, though, this is the place to mention:

  • A list of files, packages, services, or operations that the module will alter, impact, or execute.
  • Dependencies that your module automatically installs.
  • Warnings or other important notices.

Setup Requirements OPTIONAL

Before make backups you need to be sure you can connect to destination url.

Beginning with duplicity


Install module

puppet module install opstudio-duplicity


Example configuration

include duplicity::install

$jira_home                = '/var/atlassian/application-data/jira'
$jira_install_dir         = '/opt/atlassian/jira'
$backup_server            = ""
$backup_user              = "backup_user"
$backup_transfer_type     = "rsync"
$backup_base              = "/backup"
$backup_agent_node        = $::hostname
$full_backup_interval     = '2W'
$last_full_backup_to_keep = '24'
$last_increment_to_keep   = '110'
$backup_schedule_hours    = [3, 9, 15, 21]
$cleanup_schedule_hours   = [4]

$source_dirs = [$jira_home, $jira_install_dir]
$ignore_dirs = ["$jira_home/tmp/*", "$jira_home/caches/*", "$jira_install_dir/temp/*"]

duplicity::backup_job { "jira":
  backup_server            => $backup_server,
  backup_user              => $backup_user,
  backup_transfer_type     => $backup_transfer_type,
  backup_base              => $backup_base,
  source_dirs              => $source_dirs,
  ignore_dirs              => $ignore_dirs,
  full_backup_interval     => '2W',
  last_full_backup_to_keep => '24',
  last_increment_to_keep   => '110',
  backup_schedule_hours    => $backup_schedule_hours,
  cleanup_schedule_hours   => $cleanup_schedule_hours,
  force_create_dir_by_ssh  => true,

fancy stuff with your module here. It's especially helpful if you include usage examples and code samples for doing things with your module.