Koozali.org: home of the SME Server

DAR - BACKUPS

Offline robert1101

  • 4
  • +0/-0
DAR - BACKUPS
« on: October 26, 2007, 10:02:45 AM »
After Trials with Dar for backing up my test environment SME 7.2 server, my main problem is that when testing the restore of a full backup all appeared to be good. A quick flick through the folders and files on the server and everything appears where it should. But then came the BUT all the databases hadn't been restored...

Does anyone out there have any ideas on why this maybe in my preference a full backup as far as I am concerned should do a full and proper dump of any databases and their content.

No Buts Ifs or maybes...

After some research and it has come to my attention that DAR does back up the much needed mysql database and it's tables, but that is it what about the other databases which we may need...

Guys just so you know a cron job with the code to use mysqldump is not an acceptable option either here.. come on let's make life easy for our selves.


Offline raem

  • *
  • 3,972
  • +4/-0
Re: DAR - BACKUPS
« Reply #1 on: October 26, 2007, 10:22:14 AM »
robert1101

You really need to give more specific information.
Are you using one of the backup contribs specifically designed for sme7.2 that use dar, if so which one ?

Quote
....BUT all the databases hadn't been restored...

If using darrell mays smeserver-dar2 contrib it includes a mysql dump & restore (if used correctly).


Quote
....it has come to my attention that DAR does back up the much needed mysql database and it's tables, but that is it what about the other databases which we may need...

Which other databases are you talking about ?
« Last Edit: October 26, 2007, 10:28:31 AM by RayMitchell »
...

Offline robert1101

  • 4
  • +0/-0
Re: DAR - BACKUPS
« Reply #2 on: October 26, 2007, 12:41:43 PM »
Sorry other databases are databases for other applications on the server such as egroupware or joomla etc.

I am using just the contribs version of dar, and dar2 in the contribs will not work for me at this point.

Will do further research on the dar 2 you have mentioned.

Offline robert1101

  • 4
  • +0/-0
Re: DAR - BACKUPS
« Reply #3 on: October 26, 2007, 12:49:56 PM »
After researching I have found "darrell mays smeserver-dar2 contrib" after installing this and testing it.

It failed to create a backup 3 times. I will continue to look at this though and will, log a bug if the problem persists.

Offline psoren

  • *
  • 371
  • +0/-0
Re: DAR - BACKUPS
« Reply #4 on: October 28, 2007, 07:34:40 PM »
It failed to create a backup 3 times. I will continue to look at this though and will, log a bug if the problem persists.

In what way to what media are you trying to backup?

Try watching your log file realtime, log in to your server with putty and do:

tail -f /var/log/messages

Then start the backup job from the server manager and see where it fails. It is not tolerant at all ;-)

Per

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: DAR - BACKUPS
« Reply #5 on: October 28, 2007, 10:38:49 PM »
After Trials with Dar for backing up ...

Dar is not "included on the SME Server 7.x CD", so this topic is not appropirate for this paritcular forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: DAR - BACKUPS
« Reply #6 on: October 28, 2007, 10:39:52 PM »
After researching I have found "darrell mays smeserver-dar2 contrib" after installing this and testing it.

It failed to create a backup 3 times. I will continue to look at this though and will, log a bug if the problem persists.

Please log a bug if you ever notice something working incorrectly just once. Thanks.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: DAR - BACKUPS
« Reply #7 on: October 28, 2007, 11:05:32 PM »
Moved to contribs section as it is more appropriate here.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Re: DAR - BACKUPS
« Reply #8 on: October 29, 2007, 03:16:42 AM »
robert1101

Quote
...other databases are databases for other applications on the server such as egroupware or joomla...

They should all be included when the backup does a mysql dump ie the built in backup function or compatible backup contribs eg smeserver-dar2

Quote
...It failed to create a backup 3 times....

I suspect you are not using smeserver-dar2 correctly as it works OK for me on different servers.
Post all the settings that you use for a backup job and any messages from log files.
...

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: DAR - BACKUPS
« Reply #9 on: October 29, 2007, 03:29:40 PM »
Post all the settings that you use for a backup job and any messages from log files.

To display all your smeserver-dar2 jobs and settings:

# db dar2 show

To display one of your job settings:

# db dar2 show jobname

To view realtime, execute from the commandline:

# /etc/e-smith/events/actions/dar2-backup jobname

Darrell

Offline sal1504

  • ****
  • 149
  • +0/-0
Re: DAR - BACKUPS
« Reply #10 on: November 03, 2007, 02:54:22 AM »
i seem to be having a similar problem. i am running SMEServer 7.2 with smeserver-dar2 on my test machine. when i run the backup everything appears to backup. i am backing up to a second smeserver with an ibay for my test backup.

                                            Test SMEServer 1 with SMEServer-dar2
                                                                     |
                                                                     |
                                           Backup Smeserver with IBay named testbkup

The backup works in that on the backup server there are the appropriate backup files. (\\testbkup\smebackup). After i toasted the test server and reinstalled smeserver-dar2, i did a restore. all of the smeserver information (ibays, users, etc.) were there but nothing in the /opt directory. Groupoffice and others were not restored. i am not sure if these items were even backed up. i went into dar2 and added /opt, /opt/groupoffice. nothing changed. i then went in and changed /opt to opt and /opt/groupoffice to opt/groupoffice with the same results. i really like the functionality of dar2 but i need to be sure that i am getting a total backup of the whole system in case of a total melt down. Any help will be greatly appreciated. if there is more information needed please let me know.

best forum anywhere!!













Offline raem

  • *
  • 3,972
  • +4/-0
Re: DAR - BACKUPS
« Reply #11 on: November 03, 2007, 05:03:27 AM »
sal1504

Quote
...i went into dar2 and added /opt, /opt/groupoffice. nothing changed. i then went in and changed /opt to opt and /opt/groupoffice to opt/groupoffice with the same results.

Your "Backup selections" in the backup job in server manager should look like this ?

etc/e-smith/templates-custom
etc/e-smith/templates-user-custom
etc/group
etc/gshadow
etc/passwd
etc/samba/secrets.tdb
etc/samba/smbpasswd
etc/shadow
etc/smbpasswd
etc/ssh
etc/sudoers
home/e-smith
root
opt

Check your backup file to see if /opt/.. is actually there using the mc plug in to allow reading the dar file.

Also check the dar2 database information is correct as per Darrells earlier advice, using
db dar2 show
db dar2 show jobname
« Last Edit: November 03, 2007, 05:11:52 AM by RayMitchell »
...

Offline sal1504

  • ****
  • 149
  • +0/-0
Re: DAR - BACKUPS
« Reply #12 on: November 05, 2007, 09:05:51 PM »
ray

thanks for the help. i must of had opt in the wrong spot. when i moved it to the end everything in the opt folder restored properly. you talked about the mc plug in for dar2. what is it, how do i get it and how do i use it?

 

Offline raem

  • *
  • 3,972
  • +4/-0
Re: DAR - BACKUPS
« Reply #13 on: November 06, 2007, 06:50:52 AM »
sal1504

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

cd /opt/dar2-mc
. install.sh
...