News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Java SMF automated database backup

Started by viulian, September 24, 2006, 05:00:55 PM

Previous topic - Next topic

viulian

I've made a new version, and fixed the bugs reported by scalawaggirl and asudhaker.
Please download from here:

http://hex.ro/wb/pages/projects/java-smf-backup.php

You should reinstall.

Bancherd


Uh...how should I config the program if I am using a portal.. ??? .ie. simpleportal.


viulian

Does the portal offer access to the forum's backend admin page ?

I never used simpleportal, but I assume you can reach the forum via some URL in fact, when you login to the admin page of the forum, such as http://example.com/portal/forum/index.php?action=admin or something like that.

If you don't figure out, I'll try to install simpleportal and see how it works, and then come up with an answer, if possible.

[SiNaN]

It uses the usual ModSettings panel. Nothing different from other mods. Is there a problem with it about this tool?
Former SMF Core Developer | My Mods | SimplePortal

scalawaggirl

I have uninstalled and downloaded the new version, which is working perfectly now!  Thanks, viulian for such a helpful tool and your personal time on this.

It's so much nicer than doing it manually and/or paying for more server resources so I can actually use gzip.

viulian

Quote from: Bancherd on June 10, 2008, 05:34:38 AM
Uh...how should I config the program if I am using a portal.. ??? .ie. simpleportal.

I've just installed simpleportal 1.2 (with SMF 1.1.5) and everything is OK. Application works with simple portal.
Just give it the forum's URL, such as http://example.com/community/index.php (do not put anything else after index.php).

Quote from: [SiNaN] on June 10, 2008, 07:29:18 AM
It uses the usual ModSettings panel. Nothing different from other mods. Is there a problem with it about this tool?

No problems noticed. The mod does not alter the forum's Admin URL and the actions are properly redirected. (basically the app just appends ?action=admin at the end of the forum URL. As long as this is working, everything else is ok.

Quote from: scalawaggirl on June 10, 2008, 08:00:41 AM
Thanks, viulian for such a helpful tool and your personal time on this.

Thanks scalawaggirl, glad to hear everything is alright :)

Bancherd

Got it!  Thanks.  :D

My problem was that "admin" was not named 'admin'  ;D

Sudhakar Arjunan

Quote from: viulian on June 10, 2008, 12:37:42 AM
I've made a new version, and fixed the bugs reported by scalawaggirl and asudhaker.
Please download from here:

http://hex.ro/wb/pages/projects/java-smf-backup.php

You should reinstall.
Hey viulian,

Thanks a lot and its really working perfectly for me.

And if possible let me know how to overright the current backup i had.

Is that i have to use phpmyadmin to do it.

Any how it worked perfectly for me and its really a good tool.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

viulian

Well, I thought about the restore thing in the past and reached to the conclusion it's too much work to make it work right (different php / mysql version, different security for php that would always cause problems and so on).
Plus, restores should rarely be needed - plus you can't do with phpmyadmin in fact as I think there's a limitation on how big the restore file is.
So you either need SSH connection / or the hosting provider to restore the database and you just send them your file.

So no matter how I look at it, isn't actually needed (at least from my point of view, that is).

Sudhakar Arjunan

Thanks for the detailed explanation.

Thanks for this excellent mod.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

kizer

New download said it could not find the "Main class"

Yes I uninstalled the old version and installed the new one.

The problem I was having is it would appear to download a few K of the backup and stop.
Own a Jeep? Links4Jeeps.com

viulian

Please give me a couple of more details..

Are you using the windows version or the linux one ? What is the file path in which you installed the software ?


SiL

Mac OS X compiled version of latest? 
(getting problems with uper mem on host - gz verson quits at 2MB with original MAc OS X versoin of utility

viulian

As I don't have a MacOS to be able to maybe offer an executable for it, you should get the _linux.zip version, unpack it to some folder, then go into that folder and issue:

java -jar JavaSMFBackup.jar

One thing, please make sure that you have Sun JDK 1.5 installed, and that java -version returns indeed version 1.5. Please check the UNIX_README contained in the zip.

SiL

Quote from: viulian on July 16, 2008, 11:39:25 AM
As I don't have a MacOS to be able to maybe offer an executable for it, you should get the _linux.zip version, unpack it to some folder, then go into that folder and issue:

java -jar JavaSMFBackup.jar

I get the following error...

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

java -version reports

java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
Java HotSpot(TM) Client VM (build 1.5.0_13-121, mixed mode, sharing)

Mac OS X 10.4.11

viulian

Yep, you were right. Can you please download again the _linux.zip version from http://hex.ro/wb/pages/projects/java-smf-backup-2.php ?

I forgot to add the ant javac target to java 1.5 and as I was using the 1.6 version, it produced a .jar file which was only understood by JDK 1.6.
Thank you for letting me know. I created two new files (version is the same, 1.2.1b because nothing was changed in the code, just the build file) - which have the source/code target to 1.5 and it should work.

SiL

Quote from: viulian on July 17, 2008, 12:51:20 AM
Yep, you were right. Can you please download again the _linux.zip version from http://hex.ro/wb/pages/projects/java-smf-backup-2.php [nofollow] ?

I forgot to add the ant javac target to java 1.5 and as I was using the 1.6 version, it produced a .jar file which was only understood by JDK 1.6.
Thank you for letting me know. I created two new files (version is the same, 1.2.1b because nothing was changed in the code, just the build file) - which have the source/code target to 1.5 and it should work.

confirmed - worked by click on the .jar file and the gui opened.  Just have to get the mem settings changed on the host server now (sql server "goes away" even with no compression)

thanks

[SiNaN]

Does anybody have any idea about what happened to this tool? Seems like links are dead.
Former SMF Core Developer | My Mods | SimplePortal

viulian

Nothing happened to the tool :)
I just checked both the Tools section of SMF, as well as the latest links on my web page were I distribute the versions working with 2.0 beta; all are working.

How did you test ?

Sudhakar Arjunan

Quote from: [SiNaN] on August 21, 2008, 05:02:21 PM
Does anybody have any idea about what happened to this tool? Seems like links are dead.

Am Using this Tool only. ITs working good.
Not aware of 2.0 beta version.
Am Using 1.1.5 and its taking backup perfectly.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Advertisement: