Mike's PBX Cookbook

Call Server FTP backups

You will require an FTP server somewhere on your ELAN network. Remember, FTP is not TFTP for the following reasons:

Set the PBX paramaters:

This is done in overlay LD 117:

PRT/NEW/CHG/OUT - Print / Add / Edit / Delete
  - BKPR - Backup rule(s)
  - BKPS - Backup schedule(s)

Add a backup rule, and schedule it:

Usage:

You may have to "OUT" the schedule to "OUT" the backup rule. This may have to be done to get rid of the path paramaters of the backup rule. Just re-create it until the backup schedule works.

=> new bkpr 2 pbx 192.168.0.20 admin 0000 \backup

The "\backup" is a directory under the FTP server directory. "admin" is the username, and "0000" is the password.

=> new bkps 1 2 a

The "a" means: 'perform automatic backups when LD 43, EDD command is invoked'. Use this to test whether the FTP backup worked, or set it for a daily schedule. We can print the Backup Schedules as follows:

=> prt bkps
Number of Backup Schedules defined = 1
----------------------------------------------------

 NN   Backup-Rule   Frequency   Day  Hour  Minute

----------------------------------------------------
 1          2       Auto              

We can print the Backup Rules as follows:

=> prt bkpr
Number of Backup Rules defined = 2
----------------------------------------------------

 NN   Dest Parameters           N-of-vers Name

----------------------------------------------------
   1  RMD                           5     FrontFlashcard
   2  FTP 192.168.0.20             10     FileTransfer
          pbx
          \backup

We can also edit the schedule to do monthly backups for backup rules 1 and 2.

=> prt bkps
Number of Backup Schedules defined = 2
----------------------------------------------------

 NN   Backup-Rule   Frequency   Day  Hour  Minute

----------------------------------------------------
 1          2       Monthly     2     0      0
 2          1       Monthly     1     0      0

=>

You should see the following at the end of an edd in ld 43:

Database backup Complete!
BKR - Backup preparation to "/u/bkdb/backup/tmp/" completed

BKR - TAR Archiving "/u/bkdb/backup/tmp/" ... completed

BKR - GZIP Compressing "/u/bkdb/backup/bkdata.tar" ... 100 percent completed

opening FTP session to remote server 192.168.0.20

copying "/u/bkdb/backup/bkdata.gz" to remote server
removing unnecessary files from remote server

renaming remote files

Automatic Backup according to rule completed.
.
EDD000
.
TEMU193 Automatic Backup according to rule (2) ended successfully.