I am having some trouble with disaster recovery. I am unable to see in the Nethserver GUI restore section the previous backups I successfully made.
Here is what I did:
-Installed the same version of nethserver on another hardware (7.4) with the same IP and hostname as the old one.
-Logged in as root on terminal, ran yum update and rebooted the server
-Attached the USB harddrive where the full backup was stored (succesfully) every night at 3 by the old server
-Logged in to nethserver GUI, ticked “Skip manual configuration and restore a backup file” and uploaded the backup-config.tar.xz file with the option to install the necessary components. This went on quiet a while and finished successfully. I can see all users and components.
-Checked on backup section if the settings are the same as on old server -> yes, the usb is listed there.
-Clicked on restore section and the drop down menu to select the day I would like all files to have restored from, but realise only 1 day (today) is visible.
-If I run backup-data-list in terminal, it took quiet a while again but listed all the files but I don’t see them in the GUI.
-Turned off the server, starting the old server with the backup USB attached. Go to restore section and I can see the dates where successfull backups were made and also the file structure looks complete, not like this below:
Am trying to do the above procedure again on a different hardware. In case I face the same issue I will try the Command line procedure.
Could anyone tell me if I use the command:
restore-file / /
Will this recursivelly restore all files to its original place?
So far it looks ok. The data rstore is finished, without error, though there are some things missing:
Sogo:
-missing contacts and calendar
-missing mail filters
Nextcloud:
-All settings are back to default
-Customization missing
Software center:
-MySQL extension was not installed along with the webserver component
Restore files:
-Still does not list any previous backup point
I go through the server now and edit the list if necessary, or probably redo the procedure again to see if I was just unlucky.
After a few tries, it seems the restore only works with the restore-data option. Nextcloud restore actually worked at the end wouthout any intervention, apart from enabling the apps manually. SOGo, and missing MySQL had to be done following your previous advise. Danke nochmal fuer die Hilfe Markus
The issue described above is consistent with my unsuccsessful tries to move from one server to a new server. Back-up seems to work fine including files in the /etc/backup-data.d/custom.include and .exclude file. I tried both: USB and CIFS. Also tried the config file on the backup and the config file from the source server. Restore from the UI was not possible at all. Only “restore-data” worked partially.
For example I miss files from custom.include and the definitions of some registered services (config setprop myservice status disabled).