Restore your Backup
Restoring NCP Settings
:: Note ::
These are only the Settings of NCP, no users, no apps, only what you have configured in the NCP TUI or GUI.
- Login to the NextcloudPi web panel (at nextcloudpi.local)
- On the left in the section “
System
” choose “nc-automount
” and activate it. - login to your pi via SSH (ssh pi@IP-ADDRESS | pswd: raspberry)
- update the pi with
sudo apt update
&sudo apt upgrade
- update ncp (if there is an update) by typing
sudo ncp-config
and confirm. - Type
df -h
to list attached drives. - Look for your backup drive and type:
ls /media/BACKUP-DRIVE/
- You should see a list of your backups.
- Look for the config-backup and note its name:
ncp-config_XXXXXXXX.tar
- Go back to the NextcloudPi web pannel (at nextcloudpi.local)
- On the left in the section “
Backups
” choose “nc-import-ncp
” - Fill in
path
&file name
and hit apply. - This will not take long as it only restores your ncp settings. (You will not have any user or data restored. This we will do in the following step.)
Restoring the data-backup
(the process for the dateless and full backup is the same)
Restoring NCP Backup
:: Note ::
This is your data, users and apps. It does not include the NCP configurations.
- Follow step 1-7 from the description above
- Look for the backup file and note its name:
nextcloud-bkp_XXXXXXXX_XXXXXXXXXX.tar
- Go back to the NextcloudPi web pannel (at nextcloudpi.local)
- On the left in the section
Backups
choosenc-restore
- Fill in
path
&file name
and hit apply. - Depending on your backup size this can take a very long time.
- Once the backup has been restored successfully reboot NCP using the web panel (top right) or just reboot the pi itself with SSH
sudo reboot now
- Now you will be able to login with your former login and all your data, apps and users should be restored.
:: Note ::
The web panel login will not be restored. you will have to use the password you got when you first activated (NCP activation page)
Congratulations, you’re done!
We hope this doc was helpful, if you encounter any issues please reach out to the community.
These docs are written by volunteers, please consider becoming one of them.
Contact the wiki team at Matrix or Telegram