Backup automation (Linux)
In Linux/Unix and similar operating systems, task automation is handled by the cron service. Most hosting providers allow managing this service.
The Plesk control panel example below shows how to automate backup creation.
IMPORTANT! Make sure that backup.sh and restore.sh have the necessary execution rights.
Do not close this browser window – we will need this path later.
In a new browser window, open the Plesk control panel and navigate to the Home page:
IMPORTANT! Your view may differ. The description given here is an example only.
Click the Crontab icon. The following page will display:
In the System user section, click the name of your main system user (should match your main FTP user).
The following window will list the cron jobs associated with this user. If there are no jobs, the list will be empty as on the following screenshot:
Click the Schedule a Task icon to create a new cron job. The job creation form looks as follows:
Suppose that you you receive several orders a day, change their statuses, and make changes to the product catalog. In this case, daily backups would be reasonable.
Sheduling the job time is important. Backups are best performed when your store has the least visitors. For example, this could be at 1 A.M. (local time).
You should also consider the following:
Let’s look at an example. You’ve decided that:
Complete the cron job creation form:
Enter 0 for Minute.
Enter 6 for Hour.
Enter * for Day of Month, Month, and Day of Week.
Enter the string from Step 1 for Command.
Click OK to create the task:
To receive notifications when the backup.sh script is run, click the Preferences icon. In the form that opens, enter the e-mail address to which notifications will be sent.
Enter your e-mail address in the field Send Crontab messages to e-mail. Click OK to save the changes.
This completes backup automation for your online store.
© 2004-2011 Pentasoft Corp. Corp. All Rights Reserved.