We tried to keep the installation of Backup4WP as simple as possible. There are different ways to install the WordPress backup tool:

Using GIT (via the console)

If you use GIT as your development platform, this installation is for you. Just use via the console go to the public folder of your website and use the following command:

git clone https://github.com/finalwebsites/backup4wp.git mybackup

Continue via your website: https://domain.com/mybackup

Upload via SFTP

If you don’t like to use GIT or the server console, it’s always possible to

  1. Download the zip file
  2. Extract the zip file on your own PC
  3. Upload the files via sFTP to the public folder
  4. Rename the directory “backup4wp-master” to “mybackup”

Continue via your website: https://domain.com/mybackup

Installation via ManageWP (using the Snippets function)

Do you use ManageWP to manage all your website like we do? In that case the installation is very easy. Just add the following code snippet to the “Snippet” section in ManageWP and hit the “Run” button.

$dir = dirname(dirname(dirname(__DIR__))).'/mybackup';
if (file_exists($dir)) {
	echo 'A mybackup directory already exists!';
} else {
	$url = 'https://github.com/finalwebsites/backup4wp/archive/master.zip';
	$ch = curl_init($url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
	$result = curl_exec ($ch);
	if (curl_errno($ch)) {
		die('Curl error: ' . curl_error($ch));
	curl_close ($ch);
	if ($success = file_put_contents('master.zip', $result)) {
		exec('unzip master.zip && mv backup4wp-master mybackup');
        echo 'Downloaded and extracted zip file ('.$success.' bytes)';
	} else {
		echo 'Error while downloading zip file';

Continue via your website: https://domain.com/mybackup


There is only one option you need to configure: Who can allowed to access the Backup4WP application. Click on the “Options” menu item.

If your hosting based on Apache? Than it’s possible to limit access to the “mybackup” directory by IP addresses or login/password. The function below will create the necessary files for one IP address or login/password combination. If you like to add more, please access the files via sFTP. There are several online htpasswd generators which create new login/password combinations.

Backup4WP Apache authentication

If you don’t like (or can’t) use Apache authentication, it’s possible to access the tool via a magic link. To enable this option you need a SMTP login or a Sendgrid API key. If you use one of them, Backup4WP can detect them and shows them in the screen below.

Backup4WP email configuration

Do you have any issues during the installation? Please post them here.