Hi!
I want to upgrade my Nextcloud hardware so I created a full backup, installed NCPi on a second machine and tried to ārestoreā the full backup on that machine.
But seems stuck.
This is the output of log:
The backup has about 1TB, but itās been well over 10 hours and nothing has happenedā¦
Not sure if I should just reboot the machine and try again. But even so, what guarantee do I have that it wonāt do the exact same thing?
You do not provide any details on your hardware, nor nc and ncp versions in use, so to make any comment is like shooting in a pitch dark room blindfolded
Running āsudo ncp-reportā will gather all the info one needs.
I use pastebin to share (too) long output, but a text file will do fine also.
Restore of 1TB will take some time depending on your hardware.
Please read
It mentions an example, where restore of 400GB took 24h.
Just an idea: To monitor, if the restore is still active, you could for example open a parallel SSH session and take a look at top or htop to see, which processes are working / taking the CPU.
Hi all!
Thanks for your replies!
I ended up just reboot the machine and trying again (after adding some extra logs in the nc-restore script).
And now (the second time) it seems to actually be doing something.
Unfortunately the second time it failed due to insufficient space
But at least now I know what the problem is.
Will keep you posted!
Ok, after 6 days and many trials and errors (that are simply too many to list), I finally got it working.
Some observations that are worth mentioning, though (for others who may wish to perform a backup+restore):
If you start nc-restore from the terminal via SSH, you will need to keep the terminal/session open throughout the entire process! I didnāt know that and I suspect that was the reason it āgot stuckā in the first place (which caused me to open this post)
To check if the restoration process is actually still in progress, SSH into your server and use the top command and check if you see the pigz process. (Thanks @schoetju for this!)
Itās better to just use the web interface to start the restoration process. That way you can just let it do its thing over night without having to keep the web console open (unlike an SSH terminal).
Make sure the path to your ānewā datadir is the same as the one you used during backup. Unfortunately, nc-restore doesnāt offer the possibility to specify a new datadir path upon restoration. Its just going to assume you want it in the same place.
Hope this helps someone in the future! (maybe even me )
One more thing worth mentioning: It would be nice if nc-restore had some kind of --verbose option. That way, even though it āspamsā the logs, at least you know something is going on, regardless of how long it takes.