Installation


Upgrades


DTC-Xen Installation


DTC-Xen / Dom0 Howtos

DTC-Xen / DomU Howtos

FAQ


DTC Howtos


Manuals


Features


Roadmap


Devel docs


Wiki - i18n


Wiki - Meta


FtpBackup

Overview

DTC has the ability to backup your hosting data (web sites, databases, etc) to a remote server and similarly to restore that data.

Three files are used by this function:

  • /var/lib/dtc/etc/net_backup.sh -- The shell script run on the "source" server to fire off the actual backup.
  • /var/lib/dtc/etc/net_restor.sh -- A restore script.
  • /var/lib/dtc/etc/ncftpput_login.cfg -- User data to log in via FTP to the "target"/backup server.

To use this backup system, you must install "ncftp" because the backup will use ncftpput (which is also normally setup by the dependencies of dtc-postfix-courier) to log into and transfer files to the backup(target) FTP server.

Let's assume this configuration:

  • The DTC system you want to back up is on the hostname of "dtc.yourdomain.com".
  • The server you want to use for backups is located at "backupserver.yourdomain.com".

Set up:

First, create an FTP account on "backupserver.yourdomain.com".

Next, edit the file /var/lib/dtc/etc/ncftpput_login.cfg on "dtc.yourdomain.com" Add the username, password and host name that you created on "backupserver.yourdomain.com". To use our example:

  host backupserver.yourdomain.com
  user username@backupserver.yourdomain.com
  pass xyz123abc

Finally, go to the DTC control panel on "dtc.yourdomain.com" to the "DTC general configuration --> FTP backup" web page of the panel. Add in the relevant data for the FTP account you created and set the frequency of how often you want to back up.

Voila! You're done. :-)

A good idea is to manually run the shell script "/var/lib/dtc/etc/net_backup.sh" from the command line of "dtc.yourdomain.com". This way you can watch the script execute and you'll see what it's doing and if it is reporting any errors.

Need details on restoring DTC and using the "/var/lib/dtc/etc/net_restor.sh" script. Feel free to edit and add to this wiki. :-)

update

  • The ncftpput_login.cfg is written by the Web UI and doesn't have to be manually updated.
  • Backup directory (as configured in the UI) has to be created manually
  • The Backup only includes the most vital stuff, i.e. the apache module config files are not contained. These will be restored by the DTC install, but you might lose overrides, i.e. for mod_bwlimit.


Editing this page means accepting its license.

Page last modified on January 05, 2011, at 02:37 PM EST