Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 12.0.2): 15.0.1
Operating system and version (eg, Ubuntu 17.04): raspbian stretch
Apache or nginx version (eg, Apache 2.4.25): unknown
PHP version (eg, 7.1): unknown
The issue you are facing:
As described in another topic my nextcloudpi was not starting anymore, SD card seems broken.
I installed raspbian stretch, then Nextcloud pi via container.
How do I know restore the backups?
The filesystem looks like this:
pi@raspberrypi:/media/Touro1TB $ ls
ncdata ncdata-03-20-19 NCP ncp-config_20180724.tar ncp-snapshots
pi@raspberrypi:/media/Touro1TB $ cd ncp-snapshots
pi@raspberrypi:/media/Touro1TB/ncp-snapshots $ ls
autobackup_2019-03-20_060858 hourly_2019-03-15_091702
autobackup_2019-03-20_062107 hourly_2019-03-15_101702
daily_2019-03-08_201703 hourly_2019-03-15_111701
daily_2019-03-09_201703 hourly_2019-03-15_121702
daily_2019-03-10_211702 hourly_2019-03-15_131701
daily_2019-03-11_211702 hourly_2019-03-15_141701
daily_2019-03-12_211702 hourly_2019-03-15_151701
daily_2019-03-13_211702 hourly_2019-03-15_161702
daily_2019-03-14_211702 hourly_2019-03-15_171701
hourly_2019-03-14_191701 hourly_2019-03-15_181701
hourly_2019-03-14_201701 hourly_2019-03-15_191701
hourly_2019-03-14_211701 hourly_2019-03-16_001701
hourly_2019-03-14_221701 manual_2018-12-04_203221
hourly_2019-03-14_231701 manual_2018-12-04_203505
hourly_2019-03-15_001701 monthly_2018-12-13_191703
hourly_2019-03-15_011701 monthly_2019-01-12_191707
hourly_2019-03-15_021701 monthly_2019-02-11_201708
hourly_2019-03-15_031701 monthly_2019-03-13_211703
hourly_2019-03-15_041701 weekly_2019-02-21_231702
hourly_2019-03-15_051939 weekly_2019-02-28_231702
hourly_2019-03-15_071701 weekly_2019-03-07_231703
hourly_2019-03-15_081701 weekly_2019-03-14_231702
I tried to use the nc-restore-snapshot within the ncp web panel with
/media/Touro1TB/ncp-snapshots/hourly_2019-03-15_191701
[ nc-restore-snapshot ]
Create a readonly snapshot of ‘/media/Touro1TB/ncdata’ in ‘/media/Touro1TB/ncdata/…/ncp-snapshots/autobackup_2019-03-21_074832’
snapshot autobackup_2019-03-21_074832 generated
Maintenance mode enabled
Delete subvolume (no-commit): ‘/media/Touro1TB/ncdata’
Create a snapshot of ‘/media/Touro1TB/ncp-snapshots/hourly_2019-03-15_191701’ in ‘/media/USBdrive/ncdata’
Maintenance mode disabled
Starting scan for user 1 out of 1 (ncp)
Folder /ncp/
Folder /ncp/files
File /ncp/files/Nextcloud Manual.pdf
File /ncp/files/Nextcloud.mp4
Folder /ncp/files/Documents
File /ncp/files/Documents/About.txt
File /ncp/files/Documents/About.odt
Folder /ncp/files/Photos
File /ncp/files/Photos/Coast.jpg
File /ncp/files/Photos/Nut.jpg
File /ncp/files/Photos/Hummingbird.jpg
±--------±------±-------------+
| Folders | Files | Elapsed time |
±--------±------±-------------+
| 4 | 7 | 00:00:00 |
±--------±------±-------------+
snapshot /media/Touro1TB/ncp-snapshots/hourly_2019-03-15_191701 restored
As you can see, this was not helpful, nothing important was restored. I had ~250 GB of files on the disk.