Nextcloud: Difference between revisions
formatting |
→Configuration: backups |
||
| Line 129: | Line 129: | ||
Note that APCu will still be used for local caching, as recommended by Nextcloud upstream. | Note that APCu will still be used for local caching, as recommended by Nextcloud upstream. | ||
=== | === Data storage === | ||
Nextcloud stores metadata in the database and files either on a local filesystem, external storage, or in an object storage. | |||
==== Local filesystem ==== | |||
Using a filesystem with snapshot support, such as btrfs or zfs, may be useful for backup purposes | |||
==== External storage ==== | |||
https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/external_storage_configuration_gui.html | |||
==== Object store ==== | |||
In this example we'll configure a local S3-compatible object store using Minio and connect it to Nextcloud | In this example we'll configure a local S3-compatible object store using Minio and connect it to Nextcloud | ||
| Line 276: | Line 284: | ||
}; | }; | ||
</nowiki>}} | </nowiki>}} | ||
=== Backups === | |||
You should make backups of both the database and your storage. | |||
For the database, [https://search.nixos.org/options?show=services.mysqlBackup services.mysqlBackup] or [https://search.nixos.org/options?show=services.postgresqlBackup services.postgresqlBackup] may come in handy. For local storage backups, periodically taking a snapshot of a snapshot-enabled filesystem such as btrfs or zfs may be a good first step. Remember to also make off-site copies. | |||
== Clients == | == Clients == | ||