{"id":6529,"date":"2023-09-11T18:09:10","date_gmt":"2023-09-11T18:09:10","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=6529"},"modified":"2023-09-11T18:09:12","modified_gmt":"2023-09-11T18:09:12","slug":"setup-use-duplicity-automatic-backups","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/","title":{"rendered":"How to install and use Duplicity to Automate Backups"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/duplicity_en.jpg\" alt=\"Duplicity automated backups ubuntu redhat centos debian windows macos\" class=\"wp-image-6541\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/duplicity_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/duplicity_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/duplicity_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/duplicity_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/duplicity_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>Duplicity is a powerful open source backup tool that allows you to perform encrypted and incremental backups. It supports a variety of backends for storing backup data including local or remote file systems, FTP, SSH, WebDAV and cloud storage services. Duplicity uses GnuPG for encryption and signing of backup archives.<\/p>\n\n\n\n<p>In this comprehensive guide, we will cover how to install and configure Duplicity and then use it to setup automated backups on Linux.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-duplicity\">Installing Duplicity<\/h2>\n\n\n\n<p>Duplicity is available in the default repositories of most Linux distributions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"on-debianubuntu\">On Debian\/Ubuntu<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt update\n$ sudo apt install duplicity<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"on-centosrhel\">On CentOS\/RHEL<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo yum install epel-release\n$ sudo yum update\n$ sudo yum install duplicity<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"on-arch-linux\">On Arch Linux<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo pacman -S duplicity<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"on-fedora\">On Fedora<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo dnf install duplicity<\/code><\/pre>\n\n\n\n<p>For other Linux distributions, consult your package manager.<\/p>\n\n\n\n<p>Once installed, verify that Duplicity is available by checking the version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity --version<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"generating-gpg-keys\">Generating GPG Keys<\/h2>\n\n\n\n<p>Duplicity uses GnuPG keys to encrypt and\/or sign backup archives. We need to generate a keypair for this purpose.<\/p>\n\n\n\n<p>Import the GPG tools package if not already installed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install gnupg<\/code><\/pre>\n\n\n\n<p>Generate a new keypair with RSA encryption.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ gpg --gen-key<\/code><\/pre>\n\n\n\n<p>Choose the key type as &#8220;RSA and RSA&#8221; with size 4096 bits. Set an expiry period if desired.<\/p>\n\n\n\n<p>Provide your details for user ID such as name, email etc. Add a secure passphrase for the keys. This will generate a public\/private keypair for you.<\/p>\n\n\n\n<p>List the keys to find the ID:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ gpg --list-keys<\/code><\/pre>\n\n\n\n<p>Export the public key for backup. Substitute the ID appropriately:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ gpg -a --export 1234ABCD &gt; public.gpg<\/code><\/pre>\n\n\n\n<p>The public key needs to be transferred to any remote backend you intend to use such as SSH or cloud storage. The private key should be kept securely on the local system perform the backups.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configuring-duplicity\">Configuring Duplicity<\/h2>\n\n\n\n<p>Duplicity supports a variety of storage backends such as local, SSH, FTP, WebDAV etc. We will look at configuring for some common backends:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"local-filesystem\">Local Filesystem<\/h3>\n\n\n\n<p>To backup to a local directory, set the backup destination URL like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">file:\/\/\/home\/user\/backups<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"ssh\">SSH<\/h3>\n\n\n\n<p>To backup to a remote system over SSH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">ssh:\/\/user@host\/\/path\/to\/backup<\/code><\/pre>\n\n\n\n<p>This assumes you have SSH access setup between the systems.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"amazon-s3\">Amazon S3<\/h3>\n\n\n\n<p>To backup to an Amazon S3 bucket:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">s3:\/\/s3-bucket-name[\/prefix] <\/code><\/pre>\n\n\n\n<p>The S3 credentials can be supplied via a ~\/.boto config file or environment variables.<\/p>\n\n\n\n<p>See the&nbsp;<a href=\"http:\/\/duplicity.nongnu.org\/duplicity.1.html#sect7\">Duplicity S3 Backend<\/a>&nbsp;documentation for details.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"google-cloud-storage\">Google Cloud Storage<\/h3>\n\n\n\n<p>For backing up to Google Cloud Storage:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">gs:\/\/cloud-storage-bucket[\/prefix]<\/code><\/pre>\n\n\n\n<p>Authentication can be done by various means including service account files, ADC JSON files or environmental variables.<\/p>\n\n\n\n<p>Refer the&nbsp;<a href=\"http:\/\/duplicity.nongnu.org\/duplicity.1.html#sect8\">GCS Backend<\/a>&nbsp;section in the docs for more details.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"swift\">Swift<\/h3>\n\n\n\n<p>To backup to an OpenStack Swift container:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">swift:\/\/container_name[\/prefix]<\/code><\/pre>\n\n\n\n<p>Authentication is through environment variables. See the&nbsp;<a href=\"http:\/\/duplicity.nongnu.org\/duplicity.1.html#sect10\">Swift Backend<\/a>&nbsp;documentation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"webdav\">WebDAV<\/h3>\n\n\n\n<p>To use a WebDAV server as backend:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">webdav[s]:\/\/hostname[:port]\/path<\/code><\/pre>\n\n\n\n<p>Duplicity will prompt for username\/password as required.<\/p>\n\n\n\n<p>See&nbsp;<a href=\"http:\/\/duplicity.nongnu.org\/duplicity.1.html#sect12\">WebDAV Backend<\/a>&nbsp;for details.<\/p>\n\n\n\n<p>In this manner, you can configure backups to a variety of storage endpoints. Now we are ready to create our first backup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"creating-backups\">Creating Backups<\/h2>\n\n\n\n<p>With the backend URL configured, we can now make a full backup.<\/p>\n\n\n\n<p>Set the following environment variable to avoid interactive prompts:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">export PASSPHRASE=your_passphrase <\/code><\/pre>\n\n\n\n<p>Then run a full backup:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity \/path\/to\/source dir file:\/\/\/path\/to\/destination<\/code><\/pre>\n\n\n\n<p>This will recursively backup the&nbsp;<code>\/path\/to\/source<\/code>&nbsp;directory to local destination&nbsp;<code>\/path\/to\/destination<\/code>.<\/p>\n\n\n\n<p>To backup to a remote location over SSH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity \/path\/to\/source ssh:\/\/user@host\/\/backup\/path<\/code><\/pre>\n\n\n\n<p>For backing up to cloud storage:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity \/local\/source s3:\/\/s3-bucket[\/prefix]<\/code><\/pre>\n\n\n\n<p>Duplicity will prompt for any required credentials like SSH password or AWS secret keys. The backup will be encrypted and stored in the destination.<\/p>\n\n\n\n<p>To backup certain folders only, specify them as include paths. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity include \/path\/to\/folders1 include \/path\/to\/folders2 \/path\/to\/source file:\/\/\/\/path\/to\/destination<\/code><\/pre>\n\n\n\n<p>This will only backup the specified folders from the source.<\/p>\n\n\n\n<p>After the initial full backup, consecutive backups will be incremental. This saves time and storage space. Duplicity uses&nbsp;<a href=\"https:\/\/librsync.github.io\/\">librsync<\/a>&nbsp;to efficiently determine changed content.<\/p>\n\n\n\n<p>To force a full backup instead of incremental, use the&nbsp;<code>--full-if-older-than<\/code>&nbsp;option:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity --full-if-older-than 60D \/path\/to\/source ssh:\/\/user@host\/\/path\/to\/backup<\/code><\/pre>\n\n\n\n<p>This will do a full backup if last full backup is older than 60 days.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"backup-scheduling-with-cron\">Backup Scheduling with Cron<\/h2>\n\n\n\n<p>We can automate the Duplicity backups using Cron jobs.<\/p>\n\n\n\n<p>Open the crontab for editing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ crontab -e<\/code><\/pre>\n\n\n\n<p>Add a cron schedule like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">0 1 * * * \/usr\/bin\/duplicity \/path\/to\/source ssh:\/\/user@host\/\/backup\/path<\/code><\/pre>\n\n\n\n<p>This will run a backup job everyday at 1 AM.<\/p>\n\n\n\n<p>For weekly backups:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">0 1 * * 0 \/usr\/bin\/duplicity \/path\/to\/source ssh:\/\/user@host\/\/backup\/path<\/code><\/pre>\n\n\n\n<p>This will trigger the backup every Sunday at 1 AM.<\/p>\n\n\n\n<p>Similarly you can schedule monthly, yearly backups etc.<\/p>\n\n\n\n<p>For more granular control, you can trigger separate full and incremental jobs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">0 1 * * * \/usr\/bin\/duplicity --full-if-older-than 30D \/path\/to\/source ssh:\/\/user@host\/\/path\/to\/full\/backup\n0 *\/4 * * * \/usr\/bin\/duplicity \/path\/to\/source ssh:\/\/user@host\/\/path\/to\/incr\/backup <\/code><\/pre>\n\n\n\n<p>This will run full backup on 1st of month and incremental every 4 hours.<\/p>\n\n\n\n<p>Remember to&nbsp;<a href=\"https:\/\/linuxize.com\/post\/redirect-stdout-stderr-linux\/\">redirect output<\/a>&nbsp;if the jobs produce a lot of output to avoid cron email spam.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"restoring-backups\">Restoring Backups<\/h2>\n\n\n\n<p>To restore the latest backup version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity restore ssh:\/\/user@host\/\/backup\/path \/local\/restore\/path<\/code><\/pre>\n\n\n\n<p>This will restore the backup available in the remote location to specified local path.<\/p>\n\n\n\n<p>To restore an earlier version from a specific date:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity restore --time 2020-01-01T12:30:00 ssh:\/\/user@host\/\/backup\/path \/local\/restore\/path<\/code><\/pre>\n\n\n\n<p>List all stored backup versions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity collection-status ssh:\/\/user@host\/\/backup\/path<\/code><\/pre>\n\n\n\n<p>Delete old backups:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity remove-older-than 6M --force ssh:\/\/user@host\/\/backup\/path<\/code><\/pre>\n\n\n\n<p>This will delete all backup versions older than 6 months.<\/p>\n\n\n\n<p>In this manner you can manage your backed up archives. Restoring selected versions whenever required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"duplicity-on-mac-with-homebrew\">Duplicity on Mac with Homebrew<\/h2>\n\n\n\n<p>On MacOS, Duplicity can be installed via&nbsp;<a href=\"https:\/\/formulae.brew.sh\/formula\/duplicity\">Homebrew<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ brew install duplicity<\/code><\/pre>\n\n\n\n<p>Usage remains same as on Linux:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ duplicity \/path\/to\/source \/path\/to\/destination<\/code><\/pre>\n\n\n\n<p>Schedule cron backup similarly using the native crontab:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ crontab -e<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"duplicity-on-windows\">Duplicity on Windows<\/h2>\n\n\n\n<p>Duplicity can be installed on Windows using the&nbsp;<a href=\"https:\/\/cygwin.com\/\">Cygwin<\/a>&nbsp;Linux environment.<\/p>\n\n\n\n<p>First&nbsp;<a href=\"https:\/\/cygwin.com\/install.html\">install Cygwin<\/a>&nbsp;with the rsync and python packages.<\/p>\n\n\n\n<p>Then install Duplicity via pip:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">C:\\&gt; pip install duplicity<\/code><\/pre>\n\n\n\n<p>Now you can use Duplicity to backup files locally or to remote Windows shares:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">C:\\&gt; duplicity C:\\Users\\user\\Documents E:\\Backups<\/code><\/pre>\n\n\n\n<p>Automate the scheduled backups using the Task Scheduler.<\/p>\n\n\n\n<p>A Windows native port of Duplicity called&nbsp;<a href=\"https:\/\/www.itefix.net\/cwdup\/\">cwDup<\/a>&nbsp;is also available though with reduced functionality.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"duplicity-best-practices\">Duplicity Best Practices<\/h2>\n\n\n\n<p>Here are some best practices to follow when using Duplicity:<\/p>\n\n\n\n<ul>\n<li>Backup to remote or offline storage for protection against malware, ransomware etc.<\/li>\n\n\n\n<li>Encrypt and sign backups to ensure security. Passphrase protect your GPG private key.<\/li>\n\n\n\n<li>Validate backups by performing restores periodically.<\/li>\n\n\n\n<li>Retain multiple versions but prune old backups to save space.<\/li>\n\n\n\n<li>Store metadata like GPG keys and configs separately from backup data.<\/li>\n\n\n\n<li>Test backups work before relying on them for restores.<\/li>\n\n\n\n<li>Automate on a schedule but also backup manually after important changes.<\/li>\n\n\n\n<li>Send backup logs\/notifications to monitor job status.<\/li>\n\n\n\n<li>Split large volumes across multiple disk drives for faster throughput.<\/li>\n\n\n\n<li>Take backup snapshots to avoid backing up open files in unstable state.<\/li>\n\n\n\n<li>Isolate backups from network with an air gap for maximum security.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>Duplicity is a robust open source solution for encrypted incremental backups. It provides a lot of flexibility in backend storage options. Utilizing GPG encryption allows for secure transfers and storage of backup archives.<\/p>\n\n\n\n<p>With this guide you should now be able to setup automated Duplicity backups jobs to a local or remote location. Storing backups off-site or in cloud storage protects against local disasters and provides redundancy.<\/p>\n\n\n\n<p>Regular testing and validation of backups ensures your data is protected when needed for restores. Following best practices around security, validation and monitoring helps maintain robust backups.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Duplicity is a powerful open source backup tool that allows you to perform encrypted and incremental backups. It supports a variety of backends for storing backup data including local or remote file systems, FTP, SSH, WebDAV and cloud storage services. Duplicity uses GnuPG for encryption and signing of backup archives. In this comprehensive guide, we ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[69,3],"tags":[],"yoast_head":"\n<title>How to install and use Duplicity to Automate Backups - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to install, configure and use Duplicity for automated and encrypted incremental backups on Linux. Follow this comprehensive guide for backup to local, remote, and cloud storage.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install and use Duplicity to Automate Backups - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to install, configure and use Duplicity for automated and encrypted incremental backups on Linux. Follow this comprehensive guide for backup to local, remote, and cloud storage.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-11T18:09:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-11T18:09:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/duplicity_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"How to install and use Duplicity to Automate Backups\",\"datePublished\":\"2023-09-11T18:09:10+00:00\",\"dateModified\":\"2023-09-11T18:09:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/\"},\"wordCount\":1088,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Linux system administration\",\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/\",\"name\":\"How to install and use Duplicity to Automate Backups - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-09-11T18:09:10+00:00\",\"dateModified\":\"2023-09-11T18:09:12+00:00\",\"description\":\"Learn how to install, configure and use Duplicity for automated and encrypted incremental backups on Linux. Follow this comprehensive guide for backup to local, remote, and cloud storage.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install and use Duplicity to Automate Backups\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781819544\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781819544\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"How to install and use Duplicity to Automate Backups - WebHi Tutorials &amp; Documentations","description":"Learn how to install, configure and use Duplicity for automated and encrypted incremental backups on Linux. Follow this comprehensive guide for backup to local, remote, and cloud storage.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/","og_locale":"en_US","og_type":"article","og_title":"How to install and use Duplicity to Automate Backups - WebHi Tutorials &amp; Documentations","og_description":"Learn how to install, configure and use Duplicity for automated and encrypted incremental backups on Linux. Follow this comprehensive guide for backup to local, remote, and cloud storage.","og_url":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-09-11T18:09:10+00:00","article_modified_time":"2023-09-11T18:09:12+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/duplicity_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"How to install and use Duplicity to Automate Backups","datePublished":"2023-09-11T18:09:10+00:00","dateModified":"2023-09-11T18:09:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/"},"wordCount":1088,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Linux system administration","Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/","url":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/","name":"How to install and use Duplicity to Automate Backups - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-09-11T18:09:10+00:00","dateModified":"2023-09-11T18:09:12+00:00","description":"Learn how to install, configure and use Duplicity for automated and encrypted incremental backups on Linux. Follow this comprehensive guide for backup to local, remote, and cloud storage.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/setup-use-duplicity-automatic-backups\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"How to install and use Duplicity to Automate Backups"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781819544","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781819544","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6529"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=6529"}],"version-history":[{"count":4,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6529\/revisions"}],"predecessor-version":[{"id":6581,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6529\/revisions\/6581"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=6529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=6529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=6529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}