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.
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.