Difficulty Level: easy

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.

  1. Login to the NextcloudPi web panel (at nextcloudpi.local)
  2. On the left in the section “System” choose “nc-automount” and activate it.
  3. login to your pi via SSH (ssh pi@IP-ADDRESS | pswd: raspberry)
  4. update the pi with sudo apt update & sudo apt upgrade
  5. update ncp (if there is an update) by typing sudo ncp-config and confirm.
  6. Type df -h to list attached drives.
  7. Look for your backup drive and type: ls /media/BACKUP-DRIVE/
  8. You should see a list of your backups.
  9. Look for the config-backup and note its name: ncp-config_XXXXXXXX.tar

  1. Go back to the NextcloudPi web pannel (at nextcloudpi.local)
  2. On the left in the section "Backups" choose "nc-import-ncp"
  3. Fill in path & file name and hit apply.
  4. 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.

  1. Follow step 1-7 from the description above
  2. Look for the backup file and note its name: nextcloud-bkp_XXXXXXXX_XXXXXXXXXX.tar
  3. Go back to the NextcloudPi web pannel (at nextcloudpi.local)
  4. On the left in the section Backups choose nc-restore
  5. Fill in path & file name and hit apply.
  6. Depending on your backup size this can take a very long time.
  7. 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
  8. 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 are done. Please leave a comment in the Forum if you succeeded or have issues. It helps to improve this documentation.

Edited: 2021.04.16