From c2c283c431de02f7b9b0c38ba9e19aa992f7101c Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 4 Sep 2024 09:39:01 -0500 Subject: [PATCH] nextcloud: Back up Nextcloud with Restic Now that the database is hosted externally, we don't have to worry about backing it up specifically. Restic only backs up the data on the filesystem. --- group_vars/nextcloud.yml | 5 +++++ hosts | 1 + 2 files changed, 6 insertions(+) diff --git a/group_vars/nextcloud.yml b/group_vars/nextcloud.yml index a4a43c5..7994a6f 100644 --- a/group_vars/nextcloud.yml +++ b/group_vars/nextcloud.yml @@ -15,3 +15,8 @@ nextcloud_smtp: dnf_automatic_exclude: nextcloud nextcloud_db_host: postgresql.pyrocufflink.blue;sslcert=/etc/nextcloud/postgresql.cer;sslkey=/etc/nextcloud/postgresql.key;sslrootcert=system;sslmode=verify-full + +restic_include: +- /var/lib/nextcloud +restic_exclude: +- /var/lib/nextcloud/data/*/files_trashbin diff --git a/hosts b/hosts index 57ea5f5..c2f6317 100644 --- a/hosts +++ b/hosts @@ -164,6 +164,7 @@ samba-dc file0.pyrocufflink.blue [restic] +cloud0.pyrocufflink.blue [rw-root]