From 6a0e70568ac03e1d8c3f23e8c3f643f1f7c9501d Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 6 Aug 2023 16:38:24 -0400 Subject: [PATCH] remove litestream docs from nextcloud now that i've migrated from sqlite to mariadb --- docs/repair-nextcloud.md | 6 ++++++ docs/restore-nextcloud.md | 43 --------------------------------------- 2 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 docs/restore-nextcloud.md diff --git a/docs/repair-nextcloud.md b/docs/repair-nextcloud.md index a830883..1a46cfd 100644 --- a/docs/repair-nextcloud.md +++ b/docs/repair-nextcloud.md @@ -8,6 +8,12 @@ sudo -u nextcloud nextcloud-occ maintenance:repair sudo -u nextcloud nextcloud-occ maintenance:mode --off ``` +## Rescan Files + +``` +sudo -u nextcloud nextcloud-occ files:scan --all +``` + ## Converting from SQLite to MySQL (mariadb) First: keep Nextcloud set to SQLite as its dbtype, and separately launch MySQL diff --git a/docs/restore-nextcloud.md b/docs/restore-nextcloud.md deleted file mode 100644 index ff01b41..0000000 --- a/docs/restore-nextcloud.md +++ /dev/null @@ -1,43 +0,0 @@ -# Restoring Nextcloud From Backup - -Install the `litestream` package. - -``` -nix-shell --run fish -p litestream -``` - -Set the S3 credentials: - -``` -set -x AWS_ACCESS_KEY_ID (read) -set -x AWS_SECRET_ACCESS_KEY (read) -``` - -Restore from S3: - -``` -litestream restore -o nextcloud.db s3://noahmasur-backup.s3.us-west-002.backblazeb2.com/nextcloud -``` - -Install Nextcloud. Then copy DB: - -``` -sudo rm /data/nextcloud/data/nextcloud.db* -sudo mv nextcloud.db /data/nextcloud/data/ -sudo chown nextcloud:nextcloud /data/nextcloud/data/nextcloud.db -sudo chmod 770 /data/nextcloud/data/nextcloud.db -``` - -Restart Nextcloud: - -``` -sudo systemctl restart phpfpm-nextcloud.service -``` - -Adjust Permissions and Directories: - -``` -sudo mkdir /data/nextcloud/data/noah/files -sudo chown nextcloud:nextcloud /data/nextcloud/data/noah/files -``` -