This tutorial explains how you can restore a linux file backup of, for example the /var/www
directory on your server.
Assuming you have a link of the tar archive you want to restore for /var/www
.
If you are using SimpleBackups, you can go to your backup page, under the "Backup History" section click the little "i" on the right, then click "Raw Download Link" and copy the output.
On your server, run the following command, replace the raw download link you obtained in the previous step:
wget "TarBackupLinkHereBetweenTheQuotes" -O "backup.tar.gz"
Now that you downloaded the backup on your server, restore it as shown below by running:
tar --overwrite -xvf backup.tar.gz --directory /var/www
\
Note: this will overwrite your /var/www
directory by the one in the backup archive. It is a good practice to extract the backup in a temp folder first and inspect it.
30-11-2023
PostgreSQL, renowned for its robustness and flexibility, is a widely-used open-source database management system. One of its strengths lies…
28-11-2023
Server-Side Encryption with Customer-Provided Keys (SSE-C) offers a secure method to store sensitive data in cloud storage services like…
28-11-2023
Every savvy computer user knows a data backup is like insurance. You don’t really think about it until you end up needing it. This is no…
Free 7-day trial. No credit card required.
Have a question? Need help getting started?
Get in touch via chat or at [email protected]