Linux Backup
From Pbxnsip Wiki
[edit]
Functionality
This script makes a backup of the current configuration of the system. The filename contains the date, so that this script can be called every day.
Please note that there is a long line for the tar command.
[edit]
Code
#!/bin/bash date=`date "+%y%m%d"` filename=pbx$date.tgz tar cvfz $filename acds adrbook attendants autocallback button_lists buttons callingcards cdr colines conferences dial_plan dial_plan_entry domain_alias domains extensions generated hoots hunts ivrnodes lamps messages mohs orbits pnp_parms recordings regidx registrations schedules shared_lines spool srvflags tftp trunks user_alias users pbx.xml
