Creating a Full backup image

Joined
Feb 14, 2009
Messages
73
Points
0
Dear Experts,
1- How do I create a full backup image for my running and configured Elastix server so in case of a hardware failure I simply push the CD and format my server again with all my current settings that I have configured (extensions, Inbound, outbound, Trunks, etc..)?
2- Where is Elastix saving the backup I am doing with the inbuilt Backup/Restore feature? How do I export it?
 
Joined
Feb 14, 2009
Messages
73
Points
0
Ramoncio, I searched this forum for the backup posts.
I am actually confused on what to use to make a full system backup image and burn it on a DVD using the DVD writer available on my ELastix machine..

I am not sure if it exists a GUI module which can do the whole system backup job from the WEB instead of a Linux CLI (which in any case is not a big deal)..
After going through some posts here, I feel that Mondo and mindi is #1 but I couldn't find any post where Mondo has been explicitly discussed specially with the big number of the new releases.. and compatibility issues..
What is your recommendation?
Which version worked with you? ftp://ftp.mondorescue.org/rhel/5/

DaveD said:
You can not beat Mondo rescue, it just works is easy to setup and no down time to make the image
 
Joined
May 12, 2010
Messages
1,663
Points
0
I haven't tried mondo.
You can use the elastix web backup feature. It stores the files in /var/www/html/backup
To restore it you need to reinstall Elastix in a new machine, apply all the updates you applied to the original system so you get exactly the same versions for freepbx modules, and then copy your backup to /var/www/html/backup in the destination machine and restore the backup. After a reboot everything should be back working.
I prefer to do it using a bash script, so I backup exactly what I want.
I have published a couple of easy scripts here, one for manually create backups using tar and dumping some mysql databases and the second to transfer all config from one working server to another using rsync.
Some of this days I'll try mondo, and maybe even bacula.
 
Joined
Sep 23, 2008
Messages
488
Points
0
If you can take the HDD out, I use SelfImage when creating full system images, specifically for mass-production of a base-image via 4GB CF Cards :) Works a treat!
 
Joined
Feb 14, 2009
Messages
73
Points
0
Chilling_Silence said:
If you can take the HDD out, I use SelfImage when creating full system images, specifically for mass-production of a base-image via 4GB CF Cards :) Works a treat!
Taking out the HDD is not feasible and practical.
I need to create a system backup bootable image.. in case of a hardware failure I simply put my cd/dvd and re-install everything including the configurations..
 
Joined
Dec 14, 2008
Messages
1,120
Points
0
I'm using mondorescue to backup to a ftp NAS and once in a while, when I can shut down the pbx I am using clonezilla also to another NAS.

Both systems are working great.
 
Joined
Feb 14, 2009
Messages
73
Points
0
Patrick_elx said:
I'm using mondorescue to backup to a ftp NAS and once in a while, when I can shut down the pbx I am using clonezilla also to another NAS.

Both systems are working great.
Patrick, which versions of mondorescue are you using? what about mindi do you use it as well in parallel with mondo?
Do you have any documentation / tutorial on how to do it with Elastix?
 
Joined
Dec 14, 2008
Messages
1,120
Points
0
I used the following that was found in the forum:

run the following commands as root:
--------------------------------------------------------
cd ~
wget http://www.astusers.org/install-mondo.tgz
tar -xzvf install-mondo.tgz
chmod +x install-mondo.sh
./install-mondo.sh
--------------------------------------------------------
reboot once the install completes, then you will need to edit /etc/cron.weekly/mondobackup.cron and turn on one of the various backup methods, instructions are in the cron script itself.
to test run /etc/cron.weekly/./mondobackup.cron
you should see some iso files under /backup and anywhere else you configured the script to send them.
Restoring:
http://www.mondorescue.org/docs/mondorescue-howto.pdf
 
Joined
Feb 14, 2009
Messages
73
Points
0
Patrick_elx said:
I used the following that was found in the forum:

run the following commands as root:
--------------------------------------------------------
cd ~
wget http://www.astusers.org/install-mondo.tgz
tar -xzvf install-mondo.tgz
chmod +x install-mondo.sh
./install-mondo.sh
--------------------------------------------------------
reboot once the install completes, then you will need to edit /etc/cron.weekly/mondobackup.cron and turn on one of the various backup methods, instructions are in the cron script itself.
to test run /etc/cron.weekly/./mondobackup.cron
you should see some iso files under /backup and anywhere else you configured the script to send them.
Restoring:
http://www.mondorescue.org/docs/mondorescue-howto.pdf
Much appreciated! That's what I need.
 
Joined
May 25, 2007
Messages
174
Points
0
Dear Sir,
I am following your rule


run the following commands as root:
--------------------------------------------------------
cd ~
wget www.astusers.org/install-mondo.tgz
tar -xzvf install-mondo.tgz
chmod +x install-mondo.sh
./install-mondo.sh
--------------------------------------------------------
reboot once the install completes, then you will need to edit /etc/cron.weekly/mondobackup.cron and turn on one of the various backup methods, instructions are in the cron script itself.
to test run /etc/cron.weekly/./mondobackup.cron


I have some error message at the beginning .Is it correct and working

Should I reinstall again ?


Creating /usr/src/mondo folder
Now changing to /usr/src/mondo folder
Now installing cd & DVD tools
http://repo.elastix.org/elastix/1/updat ... ary.xml.gz: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Error: failure: repodata/primary.xml.gz from elastix-updates: [Errno 256] No more mirrors to try.
Now installing samba-client
http://repo.elastix.org/elastix/1/updat ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: elastix-updates. Please verify its path and try again
Installing other Mondo dependencies
http://repo.elastix.org/elastix/1/updat ... repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: elastix-updates. Please verify its path and try again
http://repo.elastix.org/elastix/1/base/ ... repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: elastix-base. Please verify its path and try again
Now downloading mondo and all of it's components
--10:30:28-- ftp://ftp.mondorescue.org/rhel/5/afio-2.4.7-1.i386.rpm
=> `afio-2.4.7-1.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE afio-2.4.7-1.i386.rpm ... 61421
==> PASV ... done. ==> RETR afio-2.4.7-1.i386.rpm ... done.
Length: 61421 (60K)

100%[=======================================>] 61,421 41.9K/s in 1.4s

10:30:37 (41.9 KB/s) - `afio-2.4.7-1.i386.rpm' saved [61421]

--10:30:37-- ftp://ftp.mondorescue.org/rhel/5/buffer-1.19-1.i386.rpm
=> `buffer-1.19-1.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE buffer-1.19-1.i386.rpm ... 10912
==> PASV ... done. ==> RETR buffer-1.19-1.i386.rpm ... done.
Length: 10912 (11K)

100%[=======================================>] 10,912 14.9K/s in 0.7s

10:30:44 (14.9 KB/s) - `buffer-1.19-1.i386.rpm' saved [10912]

--10:30:44-- ftp://ftp.mondorescue.org/rhel/5/mindi- ... 5.i386.rpm
=> `mindi-busybox-1.7.3-1.rhel5.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE mindi-busybox-1.7.3-1.rhel5.i386.rpm ... 254548
==> PASV ... done. ==> RETR mindi-busybox-1.7.3-1.rhel5.i386.rpm ... done.
Length: 254548 (249K)

100%[=======================================>] 254,548 99.3K/s in 2.5s

10:30:52 (99.3 KB/s) - `mindi-busybox-1.7.3-1.rhel5.i386.rpm' saved [254548]

--10:30:52-- ftp://ftp.mondorescue.org/rhel/5/mindi- ... 5.i386.rpm
=> `mindi-2.0.1-1.rhel5.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE mindi-2.0.1-1.rhel5.i386.rpm ... 262560
==> PASV ... done. ==> RETR mindi-2.0.1-1.rhel5.i386.rpm ... done.
Length: 262560 (256K)

100%[=======================================>] 262,560 101K/s in 2.5s

10:31:01 (101 KB/s) - `mindi-2.0.1-1.rhel5.i386.rpm' saved [262560]

--10:31:01-- ftp://ftp.mondorescue.org/rhel/5/mondo- ... 5.i386.rpm
=> `mondo-2.2.5-1.rhel5.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE mondo-2.2.5-1.rhel5.i386.rpm ... 911001
==> PASV ... done. ==> RETR mondo-2.2.5-1.rhel5.i386.rpm ... done.
Length: 911001 (890K)

100%[=======================================>] 911,001 185K/s in 4.8s

10:31:11 (185 KB/s) - `mondo-2.2.5-1.rhel5.i386.rpm' saved [911001]

--10:31:11-- ftp://ftp.mondorescue.org/rhel/5/mondo- ... noarch.rpm
=> `mondo-doc-2.2.5-1.rhel5.noarch.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE mondo-doc-2.2.5-1.rhel5.noarch.rpm ... 1896339
==> PASV ... done. ==> RETR mondo-doc-2.2.5-1.rhel5.noarch.rpm ... done.
Length: 1896339 (1.8M)

100%[=======================================>] 1,896,339 192K/s in 9.2s

10:31:27 (202 KB/s) - `mondo-doc-2.2.5-1.rhel5.noarch.rpm' saved [1896339]

Now downloading mondo cron job
--10:31:27-- http://www.astusers.org/mondocron.tgz
Resolving www.astusers.org... 72.14.235.121
Connecting to www.astusers.org|72.14.235.121|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4670 (4.6K) [application/octet-stream]
Saving to: `mondocron.tgz'

100%[=======================================>] 4,670 --.-K/s in 0.09s

10:31:28 (49.2 KB/s) - `mondocron.tgz' saved [4670/4670]

Now installing mondo and all of it's components
error: Failed dependencies:
cdrecord is needed by mondo-2.2.5-1.rhel5.i386
Now performing a partial cleanup
Copying mondobackup.cron to /etc/cron.weekly
Making sure mondobackup.cron has the correct permissions
Creating required backup directory \backup
mkdir: created directory `/backup'
Creating SMB mount point /mnt/smbmondo
mkdir: created directory `/mnt/smbmondo'
mkdir: created directory `/mnt/usbmondo'
***************************************************************
*Install complete! You MUST REBOOT YOUR SYSTEM! *
* *
*you also need to edit the cron job to schedule: *
* nano /etc/cron.weekly/mondobackup.cron *
* *
*Press the Enter key to exit *
***************************************************************

Thanks
Terry
 
Joined
May 25, 2007
Messages
174
Points
0
Dear Sir,
After many reinstall and test ,I cannot get .ISO file in the backup files

this is what i get when i reinstall
anyone ,please help

Thanks
Terry

Old /usr/src/mondo folder exists! Now deleting it
Creating /usr/src/mondo folder
Now changing to /usr/src/mondo folder
Now installing cd & DVD tools
Now installing samba-client
http://repo.elastix.org/elastix/1/base/ ... repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: elastix-base. Please verify its path and try again
Installing other Mondo dependencies
Now downloading mondo and all of it's components
--11:17:17-- ftp://ftp.mondorescue.org/rhel/5/afio-2.4.7-1.i386.rpm
=> `afio-2.4.7-1.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE afio-2.4.7-1.i386.rpm ... 61421
==> PASV ... done. ==> RETR afio-2.4.7-1.i386.rpm ... done.
Length: 61421 (60K)

100%[=======================================>] 61,421 41.2K/s in 1.5s

11:17:25 (41.2 KB/s) - `afio-2.4.7-1.i386.rpm' saved [61421]

--11:17:25-- ftp://ftp.mondorescue.org/rhel/5/buffer-1.19-1.i386.rpm
=> `buffer-1.19-1.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE buffer-1.19-1.i386.rpm ... 10912
==> PASV ... done. ==> RETR buffer-1.19-1.i386.rpm ... done.
Length: 10912 (11K)

100%[=======================================>] 10,912 14.7K/s in 0.7s

11:17:31 (14.7 KB/s) - `buffer-1.19-1.i386.rpm' saved [10912]

--11:17:31-- ftp://ftp.mondorescue.org/rhel/5/mindi- ... 5.i386.rpm
=> `mindi-busybox-1.7.3-1.rhel5.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE mindi-busybox-1.7.3-1.rhel5.i386.rpm ... 254548
==> PASV ... done. ==> RETR mindi-busybox-1.7.3-1.rhel5.i386.rpm ... done.
Length: 254548 (249K)

100%[=======================================>] 254,548 98.8K/s in 2.5s

11:17:39 (98.8 KB/s) - `mindi-busybox-1.7.3-1.rhel5.i386.rpm' saved [254548]

--11:17:39-- ftp://ftp.mondorescue.org/rhel/5/mindi- ... 5.i386.rpm
=> `mindi-2.0.1-1.rhel5.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE mindi-2.0.1-1.rhel5.i386.rpm ... 262560
==> PASV ... done. ==> RETR mindi-2.0.1-1.rhel5.i386.rpm ... done.
Length: 262560 (256K)

100%[=======================================>] 262,560 102K/s in 2.5s

11:17:47 (102 KB/s) - `mindi-2.0.1-1.rhel5.i386.rpm' saved [262560]

--11:17:47-- ftp://ftp.mondorescue.org/rhel/5/mondo- ... 5.i386.rpm
=> `mondo-2.2.5-1.rhel5.i386.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE mondo-2.2.5-1.rhel5.i386.rpm ... 911001
==> PASV ... done. ==> RETR mondo-2.2.5-1.rhel5.i386.rpm ... done.
Length: 911001 (890K)

100%[=======================================>] 911,001 146K/s in 6.1s

11:17:58 (146 KB/s) - `mondo-2.2.5-1.rhel5.i386.rpm' saved [911001]

--11:17:58-- ftp://ftp.mondorescue.org/rhel/5/mondo- ... noarch.rpm
=> `mondo-doc-2.2.5-1.rhel5.noarch.rpm'
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /rhel/5 ... done.
==> SIZE mondo-doc-2.2.5-1.rhel5.noarch.rpm ... 1896339
==> PASV ... done. ==> RETR mondo-doc-2.2.5-1.rhel5.noarch.rpm ... done.
Length: 1896339 (1.8M)

100%[=======================================>] 1,896,339 230K/s in 8.9s

11:18:15 (208 KB/s) - `mondo-doc-2.2.5-1.rhel5.noarch.rpm' saved [1896339]

Now downloading mondo cron job
--11:18:15-- http://www.astusers.org/mondocron.tgz
Resolving www.astusers.org... 72.14.235.121
Connecting to www.astusers.org|72.14.235.121|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4670 (4.6K) [application/octet-stream]
Saving to: `mondocron.tgz'

100%[=======================================>] 4,670 --.-K/s in 0.1s

11:18:17 (46.8 KB/s) - `mondocron.tgz' saved [4670/4670]

Now installing mondo and all of it's components
package afio-2.4.7-1 is already installed
package buffer-1.19-1 is already installed
package mindi-busybox-1.7.3-1.rhel5 is already installed
package mindi-2.0.1-1.rhel5 is already installed
package mondo-2.2.5-1.rhel5 is already installed
package mondo-doc-2.2.5-1.rhel5 is already installed
Now performing a partial cleanup
Copying mondobackup.cron to /etc/cron.weekly
removed `/etc/cron.weekly/mondobackup.cron'
Making sure mondobackup.cron has the correct permissions
Creating required backup directory \backup
Creating SMB mount point /mnt/smbmondo
***************************************************************
*Install complete! You MUST REBOOT YOUR SYSTEM! *
* *
*you also need to edit the cron job to schedule: *
* nano /etc/cron.weekly/mondobackup.cron *
* *
*Press the Enter key to exit *
***************************************************************

[root@elastix /]# reboot


[root@elastix cron.weekly]# ./mondobackup.cron

./mondobackup.cron
cp: cannot stat `//mondo.tmp.cTBVwS/mindi-*oot*.img': No such file or directory
 
Joined
Nov 12, 2007
Messages
597
Points
16
Wish people would use the forum search function
Here is what I posted in another thread

Create a file "/etc/yum.repro.d/mondo.repo", containing:


[mondorpms]
name=Fedora Core $releasever - mondo
baseurl=ftp://ftp.mondorescue.org/fedora/$releasever/
#gpgkey=somethin/RPM-GPG-KEY
enabled=1
gpgcheck=0

Don't worry about the "Fedora Core" bit.Then at console do "yum list mondo*, then do"yum install mondo". After mondo is installed, run "mondoarchive", and away you go
 
Joined
May 25, 2007
Messages
174
Points
0
Dear Sir,
Sorry,I didnot read all what u mention about .
I know ,you are teach us for many ,Thanks .
Now i have create as u said ,But have some error message


Is it working ?
I have do "yum list mondo*" twice
NO 1
yum list mondo*
Loading "fastestmirror" plugin
Determining fastest mirrors
* mondorpms: ftp.mondorescue.org
* elastix-base: repo.elastix.org
* base: centos.cs.nctu.edu.tw
* elastix-updates: repo.elastix.org
* updates: ftp.isu.edu.tw
* addons: centos.cs.nctu.edu.tw
* extras: centos.cs.nctu.edu.tw
mondorpms 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 24 kB 00:01
mondorpms : ################################################## 178/178
http://repo.elastix.org/elastix/1/base/ ... repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: elastix-base. Please verify its path and try again

NO 2
[root@elastix ~]# yum list mondo*
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* mondorpms: ftp.mondorescue.org
* elastix-base: repo.elastix.org
* base: centos.cs.nctu.edu.tw
* elastix-updates: repo.elastix.org
* updates: ftp.isu.edu.tw
* addons: centos.cs.nctu.edu.tw
* extras: centos.cs.nctu.edu.tw
elastix-base 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
elastix-updates 100% |=========================| 951 B 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Excluding Packages from Base RPM Repository for Elastix
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from Updates RPM Repository for Elastix
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Error: No matching Packages to list
 
Joined
Nov 12, 2007
Messages
597
Points
16
Sorry typo in above post

yum list mondo
yum install mondo

After finish to run type

mondoarchive
 
Joined
May 25, 2007
Messages
174
Points
0
Dear Sir,
This is working ,i will test more
another question is ,
If i used
run the following commands as root:
--------------------------------------------------------
cd ~
wget www.astusers.org/install-mondo.tgz
tar -xzvf install-mondo.tgz
chmod +x install-mondo.sh
./install-mondo.sh
--------------------------------------------------------
reboot once the install completes, then you will need to edit /etc/cron.weekly/mondobackup.cron and turn on one of the various backup methods, instructions are in the cron script itself.
to test run /etc/cron.weekly/./mondobackup.cron
you should see some iso files under /backup and anywhere else you configured the script to send them.

when I test to test run /etc/cron.weekly/./mondobackup.cron
I have error on line 221
Can u te;; me how to modify this ?Or give me some direction

Thanks
Terry
 
Joined
May 25, 2007
Messages
174
Points
0
Dear All,
another problems

When i used DaveD rules ,
I can create cd and insert test server ,
it show Kernel panic
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Points
36
Terry,

Can you confirm what server you are trying to restore your CD on e.g.

Dell 3100
Sata Hard Drive 80Gb
2Gb Memory

Regards

Bob
 

Members online

No members online now.

Forum statistics

Threads
30,992
Messages
131,106
Members
17,716
Latest member
Orbit114
Top