Page Index Toggle Pages: 1 [2] 3 4 ... 10 Send TopicPrint
Very Hot Topic (More than 25 Replies) YaBB 2 Backup Beta 3.1 for YaBB 2.0/2.1 (Read 78482 times)
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #15 - Dec 16th, 2005 at 11:21pm
Print Post  
Mick, you don't need to change anything inside the .cgi file.  This is how you can run it:

Login to your ftp server for your web site.  Create a folder called "test" in your root directory and drop this .cgi file into that folder.  Say your site URL is http://www.micksplace.com, the URL to that file would be: http://www.micksplace.com/test/advanced-test.cgi

Hopefully you understand by that example.  Again, there's no need to edit anything inside the .cgi file.  Just place it anywhere you can access via a web browser, and point your browser to that file.
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #16 - Dec 17th, 2005 at 4:58pm
Print Post  
Okay - I've installed the mod, and I'm having a little trouble getting it working.

When I look at the backupsettings page, I am able to choose which folders to back up, and I am able to choose to which directory to save the backup file, but in the area where I should be able to choose the backup method, all I get is:
Quote:
Use /bin/tar (with compression from /bin/gzip or /bin/bzip2) or /usr/bin/zip when possible. Bzip2 makes the smallest backups but takes the longest. Use the Archive::* and Compress::* methods as a last resort.


There is nothing to choose in that section.  When I click on "Save", I get an error.  It simply says:
Quote:
The command is not available
.

Any thoughts on how to get this working for me?
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #17 - Dec 17th, 2005 at 8:14pm
Print Post  
You are likely using a Windows server with very few Perl modules, or a *nix server with few Perl modules and weird paths.

In Beta 2, I plan to do the following to help with this:
- Include all the pure-Perl modules (Archive::Tar is the only one at the moment) so you can use these.
- Check the path ENV variable and look for the binary compression methods.
- Provide support for Windows compression methods. (Hopefully Windows comes with a command line compression tool that I could use)

(untested) As for now, you'll want to grab Archive::Tar from CPAN. Make a Modules/Archive directory and add the file there. Then you'll need to put something like
Code
Select All
push(@INC, './Modules/Archive'); 

in the Backup pl file.

Of course, if this is your own server, you could add whatever module/program you want to do the compression. Just check what's supported in my first post if this is the case.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #18 - Dec 17th, 2005 at 9:24pm
Print Post  
I'm using a *nix server on Netfirms, and I guess it only has a few Perl modules installed.  I'll grab that module and get it working.

Thanks for the help.
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #19 - Dec 17th, 2005 at 9:27pm
Print Post  
Yep. From my experience, Netfirms has nearly no modules. It also seems they removed tar. Undecided Oh well, at least there's Archive::Tar which is pure-Perl code.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #20 - Dec 17th, 2005 at 10:24pm
Print Post  
OK.  I basically got this working now.  My first attempts resulted in a 500 error, and I am still working on trying to figure out what caused that (I had all of my folders selected at that point).

I believe I've successfully backed up my Messages, Members and Variables folders.  However, I'm not 100% sure.  How do I know when the back-up is complete?  Right now, it says:
Quote:
Backing up Messages
Backing up Members
Backing up Variables

I think it is done with the back-up, but I'm not certain.

Also, I never saw the Maintenance Mode message (I was checking in another browser where I was logged out).  I don't know if that's because the back-up was so quick, or if that's because that part of it's not working.

I'll keep testing to see what might have caused the 500 error.  Very nice work, AK.  Thank you.  Grin
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #21 - Dec 17th, 2005 at 10:31pm
Print Post  
When the page stops loading, the backup is done. Sometimes the new page won't load at all, but if you check via FTP you'll find the file there.

I'm glad it worked well the second time. I'll add a more specific notice that it's finished in Beta 2.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #22 - Dec 17th, 2005 at 10:33pm
Print Post  
Cool.  Thanks for the quick replies.

One more thing - any chance you might be able to add LZW support in the future?  That's a pure-Perl compression module that may work for those of us on rented servers.

EDIT - Also, it seems that the following items are causing the 500 Error for me:
Templates/ and stylesheets (contains all the template files except for images)
Admin/ and Sources/ and other source code (contains the YaBB source code)
yabbfiles (contains the images and stylesheets for your forum)

But, they only seem to cause that error when checked in combination with other items, as I was successfully able to back-up those items without checking other items.
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #23 - Dec 17th, 2005 at 10:41pm
Print Post  
Yes, I can add any module that's wanted Wink. I wrote it in a way that allows more methods to be added.

However, I would advise people to avoid compression for the time being. The reason being is that some servers kill scripts that run too long, and compression takes more time then the tar.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: YaBB 2 Backup Beta 1 for YaBB 2.0/2.1
Reply #24 - Dec 17th, 2005 at 11:34pm
Print Post  
Beta 2 is in the first post Smiley

What's New
- Searching of PATH for binary methods
- Corrected the bug with the link to the backup area.
- Clarified the result screen for backups.
- Included Archive::Tar in the zip
- Made the regex for modifying the maintaince mode message safe
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: YaBB 2 Backup Beta 2 for YaBB 2.0/2.1
Reply #25 - Dec 19th, 2005 at 6:35pm
Print Post  
Quote:
Hopefully you understand by that example.


Sure Wink That was easy enough for me.
But it didn't run. I got the message:
Quote:
Forbidden
You don't have permission to access /test/advanced-test.cgi on this server.

Apache/1.3.27 Server at www.hirnkun.de Port 80


In the cgi is written, that I have to chmod it to 755
and rename it to "servercheck.cgi". I do this also, but
got the same message.  Undecided

(path to perl is ok, server use cgi-extension)
  
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: YaBB 2 Backup Beta 2 for YaBB 2.0/2.1
Reply #26 - Dec 19th, 2005 at 8:30pm
Print Post  
If you have a CGI-BIN directory, put that there.

But my mod will detect what methods are available anyway, so that shouldn't be a problem.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: YaBB 2 Backup Beta 2 for YaBB 2.0/2.1
Reply #27 - Dec 19th, 2005 at 10:43pm
Print Post  
AK108 wrote on Dec 19th, 2005 at 8:30pm:
If you have a CGI-BIN directory, put that there.

Than I got this message:
Quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@hirnkun.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Quote:
But my mod will detect what methods are available anyway, so that shouldn't be a problem.


I want to run the tool, because the mod runs only with ZIP-Compression. But: Forget it and Thx Wink

Best regards
Mick


Edit:
Now I forgot to change chmod
It runs, after copy to cgi-bin and chmod to 755!


Roll Eyes
  
Back to top
WWW  
IP Logged
 
DIDI
Full Member
***
Offline


Only dead fish swim with
the river!

Posts: 129
Location: World metropolis Opladen
Joined: Jun 4th, 2003
Gender: Male
Re: YaBB 2 Backup Beta 2 for YaBB 2.0/2.1
Reply #28 - Dec 22nd, 2005 at 3:54pm
Print Post  
Shocked Quote:
Couldn't use zip: Permission denied. Error code: 16777215

Quote:
Couldn't use tar: Permission denied. Error code: 16777215


A Bug ??? or have i not zip Cry


OK the Option one run perfekt!
  


Envy must earn oneself one - one gets compassion in vain!
Back to top
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: YaBB 2 Backup Beta 2 for YaBB 2.0/2.1
Reply #29 - Dec 22nd, 2005 at 10:47pm
Print Post  
That means that your server won't let you use tar or zip, but they are out there.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 ... 10
Send TopicPrint