Koozali.org: home of the SME Server

HUGE PROPS - Backup2 Coder

Offline orcusomega

  • 12
  • +0/-0
HUGE PROPS - Backup2 Coder
« on: February 17, 2006, 04:40:57 AM »
I have to admit, I am remiss in finding the contributor of Backup2, but THANKS!

I had kind of written off SME for a bit since I could not find a good way to backup my SME box automagically, but this not only fits the bill, it exceeds it!

You have saved me a huge amount of time and grief, if you are in the Philly are,  :pint:  :pint:  :pint:  on me!

I just wish I had the time and skill to come up with some contribs myself :)  Anyone need help?

Bob

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
HUGE PROPS - Backup2 Coder
« Reply #1 on: February 17, 2006, 05:12:14 PM »
Thanks Bob.

FYI to find a contrib author and all contributors involved in the rpm development simply query the rpm:

If local but not installed:

# rpm -qip --changelog smeserver-backup2-0.0.1-b1dmay.noarch.rpm | more

Once installed, drop the p (package) and version/release/arch to query the rpm name only:

# rpm -qi --changelog smeserver-backup2 | more

Offline orcusomega

  • 12
  • +0/-0
HUGE PROPS - Backup2 Coder
« Reply #2 on: February 18, 2006, 09:05:14 PM »
Thanks for the extra info...

...but...

LOL you get more props.  I just got your Asterisk install up and (mostly) running, and between that, Backup2, and SME7admin, this has saved me hundreds of dollars for my small home office.

I did find that the script that was included in the tarball was not installing for some reason, but the logging of the error was not there... and the buffer for my SSH session did not catch it either.  There is a script on the board that I found that fixed the problem... but you rock.

 :pint:  :pint:

Do you have anything cooking that 1) you can share or 2) need some inexperienced help with?

Bob


Bob

Offline orcusomega

  • 12
  • +0/-0
HUGE PROPS - Backup2 Coder
« Reply #3 on: February 18, 2006, 09:06:02 PM »
Here is a link to the script I found here that solved the problem:

http://forums.contribs.org/index.php?topic=29275.0

Bob

stocky

HUGE PROPS - Backup2 Coder
« Reply #4 on: February 19, 2006, 03:47:29 AM »
I looked at the backup2 contrib and thought it looked great!

Then i tried to install it...it wanted RAR (which it said it was based on, so i realised that...not that n00b!) so i tried to install RAR...whcih then told me i needed a heap on dependancies (I am running SME7pre3).

Where do I find a list of all the modules so I can find these required dependancies?

help for a poor n00b....I am still learning...i have been brainwashed by M$ for too long.....

:-)

Offline p-jones

  • *
  • 594
  • +0/-0
HUGE PROPS - Backup2 Coder
« Reply #5 on: February 19, 2006, 09:10:59 AM »
Ditto on failed dependancies.
...

Offline orcusomega

  • 12
  • +0/-0
HUGE PROPS - Backup2 Coder
« Reply #6 on: February 19, 2006, 05:29:37 PM »
What problems did you encounter?

Can you give me the SME version you are running?
Can you give me a screen shot or a cut and paste of the error?

One way I isolated the problem was to pull apart the three scripts:

install.sh
install_parts.sh
install_fin.sh

and run chunks of the script sequentially to better isolate the problem.

You need to export the LOAD_LOC variable, so before you start pulling them apart, copy the tarball to /tmp (or wherever), and untar it

Code: [Select]

cd /tmp
wget ftp://anonymous@firewall-services.com/Asterisk/A4SME7.tar.gz
tar zxvf A4SME7.tar.gz
cd A4SME7
export LOAD_LOC=pwd


Then go through chunks of the script.  When/if you find the failed dependancies, let me know, I will help if I can.

Bob

Offline orcusomega

  • 12
  • +0/-0
HUGE PROPS - Backup2 Coder
« Reply #7 on: February 19, 2006, 05:33:36 PM »
Oh wait, did you need this library?

Code: [Select]

compat-libstdc++-33.i386 3.2.3-47.3


If so, then run

Code: [Select]

yum install compat-libstdc++


The OS (Centos) will go get the libraries, and that should help.  I forgot I needed to do that on SME7pre1 updated to SME7pre3 via yum.

Also, if you run into dependancy problems, you can use yum to go look for what is available.  For example, if you get an error saying you need dependancies, Yum will usually recommend a package.  To find it, run

Code: [Select]

yum search [package name]


if it finds it in the yum repository, then you can install it using

Code: [Select]

yum install [package name]


Hope this helps,

Bob

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
HUGE PROPS - Backup2 Coder
« Reply #8 on: February 19, 2006, 05:46:56 PM »
Correct. A simple forum search on 'rar depend', and then 'Show all results' would have returned the answer for the posters having issues. For SME 7.x you should install rpms using yum. The command below installs all required rpms and automagically all dependencies:

Code: [Select]
# yum localinstall rar-3.5.1-7dmay.i386.rpm smeserver-backup2-0.0.1-b1dmay.noarch.rpm

==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Setting up Local Package Process
Examining rar-3.5.1-7dmay.i386.rpm: rar - 3.5.1-7dmay.i386
Examining smeserver-backup2-0.0.1-b1dmay.noarch.rpm: smeserver-backup2 - 0.0.1-b1dmay.noarch
Marking rar-3.5.1-7dmay.i386.rpm to be installed
Marking smeserver-backup2-0.0.1-b1dmay.noarch.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-backup2.noarch 0:0.0.1-b1dmay set to be updated
---> Package rar.i386 0:3.5.1-7dmay set to be updated
--> Running transaction check
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00
contrib                   100% |=========================|  951 B    00:00
updates                   100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
centosplus                100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
smeos                     100% |=========================|  951 B    00:00
smeupdates                100% |=========================|  951 B    00:00
Reading repository metadata in from local files
--> Processing Dependency: libstdc++.so.5(CXXABI_1.2) for package: rar
--> Processing Dependency: libstdc++.so.5 for package: rar
--> Processing Dependency: libstdc++.so.5(GLIBCPP_3.2) for package: rar
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package compat-libstdc++-33.i386 0:3.2.3-47.3 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 rar                     i386       3.5.1-7dmay      rar-3.5.1-7dmay.i386.rpm  432 k
 smeserver-backup2       noarch     0.0.1-b1dmay     smeserver-backup2-0.0.1-b1dmay.noarch.rpm   70 k
Installing for dependencies:
 compat-libstdc++-33     i386       3.2.3-47.3       smeos             226 k

Transaction Summary
=============================================================================
Install      3 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 729 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: compat-libstdc++-33          ######################### [1/3]
  Installing: rar                          ######################### [2/3]
  Installing: smeserver-backup2            ######################### [3/3]

Installed: rar.i386 0:3.5.1-7dmay smeserver-backup2.noarch 0:0.0.1-b1dmay
Dependency Installed: compat-libstdc++-33.i386 0:3.2.3-47.3
Complete!
==============================================================
WARNING: You now need to run BOTH of the following commands
to ensure consistent system state:

signal-event post-upgrade; signal-event reboot

You should run these commands unless you are certain that
yum made no changes to your system.
==============================================================

Offline orcusomega

  • 12
  • +0/-0
HUGE PROPS - Backup2 Coder
« Reply #9 on: February 19, 2006, 05:51:05 PM »
LOL a LOT easier than my posting, and I had confused the Asterisk and the Backup2 posts.

Thanks for the help!

Bob

stocky

HUGE PROPS - Backup2 Coder
« Reply #10 on: February 20, 2006, 05:42:47 AM »
Thanks..you learn something new everyday around here!  :-D
dmay, i followed your method above (i didnt know the bit about it being recommended to use YUM to install rpm's so thanks!) but it didnt work, but then i realised your yum must be configured to look a lot more places than mine!

Mine only looks in:

smeaddons
smeos
smeupdates

how do I add the rest (eg contribs?)

thanks in advance

PS i am noting all this down for future refereance so I can keep teaching myself!

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
HUGE PROPS - Backup2 Coder
« Reply #11 on: February 20, 2006, 06:07:42 AM »

stocky

HUGE PROPS - Backup2 Coder
« Reply #12 on: February 20, 2006, 06:09:48 AM »
sorry...my bad!

wget the files first!  :roll:

stocky

HUGE PROPS - Backup2 Coder
« Reply #13 on: February 20, 2006, 06:11:30 AM »
hmmm...i searched...didnt find that, so i asked.

Thank you dmay :-)

stocky

HUGE PROPS - Backup2 Coder
« Reply #14 on: February 24, 2006, 07:30:54 AM »
Hi all,

Can anyone assist with this?

My current setup is.......

ROUTER(10.0.0.1)
|
|
Remote LAN (10.0.0.2)
SME BOX
Local LAN (192.169.101.1)
|
|
Remote Lan (192.168.101.2)
SBS 2003 Svr
Local LAN (192.168.201.2)
|
|
Rest of SBS network

I am trying to figure out a way to backup the SME box to the Windows server nightly so that evrything is backed up. I have created a share on the SBS server (SME_BU) \\servername\sme_bu

The problem I guess I am having it that the folder is not visible from the SME side of the SBS server. Am I right in thinking that I can set up the SBS box to have an FTP server and backup to that? Do I use Backup2 or rsync (that looks scary for a n00b to linux)

any help or suggestions gratefully accepted!