Does anyone knows how to restore the mysql database from NS backup?
We have a job management system called OneOrZero help desk which was installed in /var/lib/nethserver/vhost/ and I was able to restore the vhost folder, but the database didn’t restore during the restoration.
Now, I want to check the backup and see if it has been backed up and restore the database only for that OneOrZero.
You will find you database files into /var/lib/nethserver/backup/mysql and you can restore them with mysqldump command, if I don’t make a mistake.
Move to /var/lib/nethserver/mysql with cd command.
If it’s only one file you need to use this command mysql < filename.sql to restore all databases.
If you can restore only one file use this command mysql --database=dbname < filename.sql
Also, on the Restore files, I can only see the date as 25 Feb 2019 being the oldest. Is it something to do with the folder /var/lib/nethserver/backup/duplicity/backup-data/ after the restoration?