How to Backup a Linux Phone Server - Asterisk/Trixbox

Posted on 2008-11-07
Last Modified: 2012-05-05
I have a Asterisk/Trixbox Phone server running on the standard Linux OS that comes with Trixbox.

I don't trust the trixbox Backup system and I want a way to do a complete backup/image of the Phone Server to a file which I can quickly use to restore from.

This is important when I want to install some new components but need to have the ability to go back quickly if it doesn't work the way I want.

How do I backup a Linux box? what program should I use and how do I install it?


Question by:stanbond
    LVL 14

    Accepted Solution

    I would think you want to create an image, not just backup the files.  Look at:

    You could even use Ghost or something similar if you want to bring the system down to create the image before adding the new components.

    Author Comment

    I get the error -

    checking build system type... Invalid configuration `i686-pc-linux-': machine `i686-pc-linux' not recognized
    configure: error: /bin/sh ./config.sub i686-pc-linux- failed

    Any Ideas or Other Suggestions?

    Author Comment

    LVL 12

    Assisted Solution

    If you want to use partimage, grab a copy of systemrescuecd. It's a bootable CD that contains partimage, along with a bunch of other utilities, making it usable even if the system is un-bootable. While tools like kickstart make quick un-attended deploys possible, image backups are the only way to go for quick re-deploys.

    Having said that, if this is an important production system, there are a few guidelines to help avoid the need for an image restore
    1. Do your testing on a development or control system.
    2. Don't install anything that's not distributed or built as a package so that it can be removed cleanly.
    3. Use CVS or something similar to manage configuration files so that changes are documented, traceable, and can be backed out.
    LVL 7

    Assisted Solution

    the linux dd command can be used to make a disk image of the file system at block level.

    the normal way to make backups is to use tar, it does backups on the file level, but then you have to know what is important, usualy your config and setup files, as the rest can be re-installed.

    have you considered loading trixbox on a test pc, and try to restore the backup it make on your primary system ?

    If you want to do block level image.
    best would be to stop trix box, boot with a boot cd, and use dd to make a copy of the disk to a usb drive.

    1. Check what your partition table looks like with
        $ sudo fdisk -l
        e.g.>>/dev/sda1   *           1        9361    75192201   83  Linux
        you dont need swap, and might have a separate boot partition.

    2. do a dd low level block copy to usb drive or over network.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now