How to restore from a custom backup on the My sCool Server?

Published: 26 October 2018
on channel: My sCool Server - Empowering Education
37
0

The My sCool Server has built in support for both internal as well as external media based recovery images and custom backups which give you the peace of mind to safeguard against unforeseen system failures. Once such a custom backup has been created, it is possible to restore completely or selectively from such a backup.

Herein are the steps demonstrating how to restore from a custom backup.

Herein we shall delete a custom web content folder and demonstrate how it can be recovered from a previously created custom backup snapshot
Directly boot into the MSS device
Open Terminal
Tip: To open terminal press Ctrl + Alt + T
Delete a custom web content folder sudo rm -rf /var/www/html/mss/custom
Enter password of mssadmin when prompted
For restoration from a custom backup point become super user 
sudo su -
List out custom backup snapshots created in the custom_content folder using borg list /home/mssadmin/custom_content
Choose a snapshot number that you want to restore and enter it in the next command 
Execute the command to recover a custom web content folder from custom backup snapshot borg mount [/backup/folder/path/home]::[snapshotname] /mnt
For e.g borg mount /home/mssadmin/custom_content::1 /mnt
Next, execute the command to synchronise files from custom backup snapshot rsync -avP /mnt/* [/folder/path]
For e.g rsync -avP /mnt/* /
Let us check if the deleted files have been restored ls -l /var/www/html/mss/custom
When files are recovered successfully, execute umount /mnt


Watch video How to restore from a custom backup on the My sCool Server? online without registration, duration hours minute second in high quality. This video was added by user My sCool Server - Empowering Education 26 October 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3 once and liked it people.