-
-
Notifications
You must be signed in to change notification settings - Fork 225
Backup and Restore
Snap snapshot is a snap utility to create and manage snap snapshots. It may be used for random snapshots or automated as scripted cronjob and has the added convenience of easy snap migration.
Snap snapshots official documentation
Example rotating backup script by @scubamuc
Example backup script by @sbe-arg
Snap snapshot will backup the entire Nextcloud snap including configuration, apps, certificates, database and data into a compressed file (*.zip) located in /var/lib/snapd/snapshots
. See what's inside a snapshot.
See documentation in man snap
and snap snapshot documentation
- stop Nextcloud snap
sudo snap stop nextcloud
- save Nextcloud snap
sudo snap save nextcloud
- start Nextcloud snap
sudo snap start nextcloud
- copy/move snapshot (*.zip) in
/var/lib/snapd/snapshots
to wherever
Important
- When migrating be sure that Nextcloud snap is installed on the target device.
- Snap restore restores the entire Nextcloud snap including configuration, apps, certificates, database and data.
- CAUTION!: snap restore is not incremental and will completely replace existing installation.
See documentation in man snap
and snap snapshot documentation
- copy/move snapshot (*.zip) to
/var/lib/snapd/snapshots
- discover snapshot-id using
snap saved
- restore snapshot
sudo snap restore <snapshot-id>
See documentation in man snap
and snap snapshot documentation
- discover snapshot-id using
snap saved
- delete snapshot
sudo snap forget <snapshot-id>
Nextcloud snap Wiki, use all information and scripts at own risk
- HTTP/HTTPS port configuration
- PHP configuration options
- Hosts & FQDN configuration
- Reverse proxy configuration
- CODE & Nextcloud Office configuration
- HPB client-push configuration
- Managing Nextcloud snap
- Managing automatic updates
- Managing logs
- Managing services
- Managing cron
- Managing encryption
- OCC management console