Earlier this week we wrote about how to use command line tools to back up your website. Check out our previous article for details on how we create these backups.
In case the worst happens, you might need to restore your backup. No worries. We can easily do this from the command line too! Basically, we are going to do the same thing, but in reverse.
Restoring Backup Files to the Server
We are going to use the scp command again, except this time the syntax will vary a little since we need to upload our backup file to the server, not the other way around.
*** This is a Security Bloggers Network syndicated blog from Sucuri Blog authored by Gerson Ruiz. Read the original post at: https://blog.sucuri.net/2017/08/how-to-restore-website-backups-from-the-command-line.html