Skip to main content

Duplicity backup wrapper.

Project description

DupTool provides convenient way to define and run your backup job using duplicity. In DupTool config file you can define named backup groups which can include different duplicity options. Later you can run each group simply by running duptool script and backup group name. DupTool also allows user to define file groups which can be used with different backup groups, for instance one backup group can include given file group, where different backup group can exculde given file group. Below you can find example config file:

{
    "file_groups": {
        "fg1" : ["/dir/a.txt", "/dir/b.txt"],
        "fg2" : ["/dir/c.txt", "/dir/d.txt"]
    },
    "groups":[
        {
            "name":"First Backup Group",
            "description" : "Description",
            "source_dir":"/dir/",
            "dest_dir":"file:///backup_destination",
            "filter": [{"include": "$fg1"},{"exclude": "**"}],
            "duplicity_opts": ["--full-if-older-than", "1M"],
            "clean_cmd": ["remove-all-but-n-full","1"]
        },
        {
            "name":"Second Backup Group",
            "description" : "Description",
            "source_dir":"/dir/",
            "dest_dir":"file:///second_destination",
            "filter": [{"exclude": "$fg1"}],
            "duplicity_opts": ["--full-if-older-than", "7D"],
            "clean_cmd": ["remove-all-but-n-full","1"],
            "auto_run" : true
        },
    ],
    "vol_size": "1G",
    "encryption_key":"SECRET_K
}

In this example two File Groups are declared: fg1 and fg2. And two Backup Groups, in first Backup Group files and directires only from fg1 are backedup. Where in second Backup Group all files and directories EXCEPT from fg1 are backed up.

In default scenario this config file should be placed in ~/.duptool/config.json.

This allow to run above backups using simple command:

duptool backup

Notification

User can use duptool_notification to show notification bubble if backup was not done for certain days count. User can simply add command:

duptool_notification

to cron to check if there is a need of backup and if yes notification bubble will be shown in operating system

Duplicity

Make sure that duplicity is installed on your operating system. Instructions on instalation can be found on: http://duplicity.nongnu.org/ In Ubuntu or Debian like systems you can install it by:

sudo apt-get install duplicity

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DupTool-0.1.0.tar.gz (21.5 kB view details)

Uploaded Source

File details

Details for the file DupTool-0.1.0.tar.gz.

File metadata

  • Download URL: DupTool-0.1.0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for DupTool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9232c0c775829f1a549ac039e0fcc3c5cec3b8ffffc82de3a5ca4d65693add38
MD5 78150435e4e573a39177ba502eb9fe5a
BLAKE2b-256 c5bdf98439012b4cd92fe47f60801af05941062e5fab5174e88cf0c5c69396ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page