Backup
Nextcloud back with restic
Below steps are not tested fully.
These are basic steps to perform backup nextcloud with restic
From nextcloud docs, there 2 location that need to be backed up. There are
Nextcloud data directory
Postgresql database dumps For these, we need to create 2 restic repos to maintain.
Initialize restic repos
NEXTCLOUD_DATA_RESTIC_REPO
is the restic repo for nextcloud data directory backupNEXTCLOUD_PG_RESTIC_REPO
is the restic repo for postgresql database dumps backupBACKUP_DIR
backup directory of nextcloud dataRESTIC_PASSWORD_FILE
Restic repo password file for both repos
Init the repos
Set maintenance mode ON
Run restic backups
Backup nextcloud data
Backup postgresql database dump
Unset maintenance mode
This shell script automates above steps with metrics
Last updated
Was this helpful?