MihanServer.IR

مرکز آموزش

Using the Simple FTP Backup Script

For most people who use shared hosting services, it is possible to generate full or partial website backups manually. While this can prove to be useful for static websites, it wouldn’t make sense to manually backup a dynamic website everyday.

For this purpose, I’ve created a Simple FTP Backup Script for Linux-based web servers. This Perl backup script allows you archive files and MySQL databases from your hosting account and upload them to a remote FTP server.

 

By scheduling the execution of this script automatically through a CRON task, you will be able to store daily backups of your website on a remote FTP server.

Using the Simple FTP Backup Script

In order to run this script, you will Perl as well as the Net::ftp class.

Here’s how to use this script :

  1. Edit ftp-backup-script.pl with a non-formatting text editor to set the backup parameters.
  2. Upload ftp-backup-script.pl to your web server in a non-public directory.
  3. Using your web host’s control panel, add a cron task that will run the script periodically :

    /usr/bin/perl /path/to/ftp-backup-script.pl

It’s as simple as that!

Of course, this is a beta release and I cannot guarantee the results nor do I take responsibility for loss of data so use it carefully.

Stay tuned as I will show you how to schedule backup tasks using cPanel and strategic ways to create backups efficiently.

 



آیا این پاسخ به شما کمک کرد؟

افزودن به مورد علاقه ها افزودن به مورد علاقه ها

چاپ این مقاله چاپ این مقاله

خوانده شده
How to install RkHunter (مشاهدات: 155)
Windows VPS Check List (مشاهدات: 131)
IPv4 INSTALLATION ASSISTANCE (مشاهدات: 105)
How to install eAccelerator (مشاهدات: 233)

Powered by WHMCompleteSolution

زبان:

منوی سریع

ورود کاربر

ایمیل

کلمه عبور

مرا به خاطر بسپار

جستجو



پیگیری ما در توییتر