{
    "content": [
        {
            "type": "text",
            "text": "# duplicity (pydoc)\n\n## TLDR\n\n> Create incremental, compressed, encrypted, and versioned backups.\n\n- Backup a directory via FTPS to a remote machine, encrypting it with a password:\n  `FTP_PASSWORD={{ftp_login_password}} PASSPHRASE={{encryption_password}} duplicity {{path/to/source_directory}} {{ftps://user@hostname/path/to/target_directory}}/`\n- Backup a directory to Amazon S3, doing a full backup every month:\n  `duplicity --full-if-older-than {{1M}} s3://{{bucket_name[/prefix}}`\n- Delete versions older than 1 year from a backup stored on a WebDAV share:\n  `FTP_PASSWORD={{webdav_login_password}} duplicity remove-older-than {{1Y}} --force {{webdav[s]://user@hostname[:port]/some_directory}}`\n- List the available backups:\n  `duplicity collection-status \"file://{{absolute/path/to/backup_directory}}\"`\n- List the files in a backup stored on a remote machine, via SSH:\n  `duplicity list-current-files {{-t|--time}} {{YYYY-MM-DD}} scp://{{user@hostname}}/{{path/to/backup_directory}}`\n- Restore a subdirectory from a GnuPG-encrypted local backup to a given location:\n  `PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --path-to-restore {{path/to/restore_directory}} file://{{absolute/path/to/backup_directory}} {{path/to/directory_to_restore_to}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** duplicity\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (21 lines)\n- **PACKAGE CONTENTS** (33 lines)\n- **VERSION** (2 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nduplicity\n\n### DESCRIPTION\n\n# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4; encoding:utf8 -*-\n#\n# Copyright 2002 Ben Escoto <ben@emerose.org>\n# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>\n#\n# This file is part of duplicity.\n#\n# Duplicity is free software; you can redistribute it and/or modify it\n# under the terms of the GNU General Public License as published by the\n# Free Software Foundation; either version 2 of the License, or (at your\n# option) any later version.\n#\n# Duplicity is distributed in the hope that it will be useful, but\n# WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n# General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with duplicity; if not, write to the Free Software Foundation,\n# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\n### PACKAGE CONTENTS\n\nlibrsync\nasyncscheduler\nbackend\nbackends (package)\ncachedops\ncommandline\nconfig\ndiffdir\ndupcollections\ndupmain\nduptemp\ndupthreading\nduptime\nerrors\nfilenaming\nfilechunkio\nglobmatch\ngpg\ngpginterface\nlazy\nlibrsync\nlog\nmanifest\npatchdir\npath\nprogress\nrobust\nselection\nstatistics\ntarfile\ntempdir\nutil\n\n### VERSION\n\n0.8.21\n\n### FILE\n\n/usr/lib/python3/dist-packages/duplicity/init.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "duplicity",
        "section": "",
        "mode": "pydoc",
        "summary": "duplicity",
        "synopsis": null,
        "tldr_summary": "Create incremental, compressed, encrypted, and versioned backups.",
        "tldr_examples": [
            {
                "description": "Backup a directory via FTPS to a remote machine, encrypting it with a password",
                "command": "FTP_PASSWORD={{ftp_login_password}} PASSPHRASE={{encryption_password}} duplicity {{path/to/source_directory}} {{ftps://user@hostname/path/to/target_directory}}/"
            },
            {
                "description": "Backup a directory to Amazon S3, doing a full backup every month",
                "command": "duplicity --full-if-older-than {{1M}} s3://{{bucket_name[/prefix}}"
            },
            {
                "description": "Delete versions older than 1 year from a backup stored on a WebDAV share",
                "command": "FTP_PASSWORD={{webdav_login_password}} duplicity remove-older-than {{1Y}} --force {{webdav[s]://user@hostname[:port]/some_directory}}"
            },
            {
                "description": "List the available backups",
                "command": "duplicity collection-status \"file://{{absolute/path/to/backup_directory}}\""
            },
            {
                "description": "List the files in a backup stored on a remote machine, via SSH",
                "command": "duplicity list-current-files {{-t|--time}} {{YYYY-MM-DD}} scp://{{user@hostname}}/{{path/to/backup_directory}}"
            },
            {
                "description": "Restore a subdirectory from a GnuPG-encrypted local backup to a given location",
                "command": "PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --path-to-restore {{path/to/restore_directory}} file://{{absolute/path/to/backup_directory}} {{path/to/directory_to_restore_to}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "PACKAGE CONTENTS",
                "lines": 33,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}