Page Index Toggle Pages: [1] 2 
Topic Tools
Hot Topic (More than 10 Replies) Backing Up and Restoring Your Boards (Read 25,797 times)
Bushido
YaBB Newcomer
*
Offline



Posts: 48
Re: Backing Up and Restoring Your Boards
Reply #21 - Mar 16th, 2006 at 4:29am
Post Tools
Thank you for the info, Monsen. I'll try it and see how it goes.
  
Back to top
 
IP Logged
 
Monsen
YaBB Legends (Active)
*
Offline



Posts: 10,103
Location: Bergen, Norway

YaBB 2.2
Re: Backing Up and Restoring Your Boards
Reply #20 - Mar 15th, 2006 at 7:12pm
Post Tools
Upload it to your cgi-bin directory or equivalent, chmod it 755, then call it from your browser. Make sure to edit the path to your forum in the script if you don't use the default one (i.e. a directory called yabb2 inside your cgi-bin dir).
Note that that script will only work as long as your server allows you to run the tar command.
  
Back to top
 
IP Logged
 
Bushido
YaBB Newcomer
*
Offline



Posts: 48
Re: Backing Up and Restoring Your Boards
Reply #19 - Mar 15th, 2006 at 10:52am
Post Tools
Monsen, your backup script sounds like exactly what I need. I'm very new to this, however, so could you please tell me which folder I would upload the script to, and how I would execute it.

Thanks in advance.
« Last Edit: Mar 15th, 2006 at 10:53am by Bushido »  
Back to top
 
IP Logged
 
Xonder
Senior Member
Beta Testers
****
Offline



Posts: 717
Location: @ustria

YaBB 2.6.0
Re: Backing Up and Restoring Your Boards
Reply #18 - Feb 25th, 2006 at 7:29am
Post Tools
Hello

Quote:
Hm, just thinking.
Why not put this little skript into the yabbpackage and make it executable via admincenter?
Would be of great help, don't you think so?

You can also use this backup mod by AK108

>> YaBB 2 Backup Beta 3 for YaBB 2.0/2.1

lg XTC
  

Back to top
WWW  
IP Logged
 
Xena
Junior Member
**
Offline



Posts: 56
Re: Backing Up and Restoring Your Boards
Reply #17 - Jan 24th, 2006 at 7:29pm
Post Tools
That was excellent, Thanks!

  
Back to top
 
IP Logged
 
Monsen
YaBB Legends (Active)
*
Offline



Posts: 10,103
Location: Bergen, Norway

YaBB 2.2
Re: Backing Up and Restoring Your Boards
Reply #16 - Oct 12th, 2005 at 7:16pm
Post Tools
The way the script is now, you shouldn't store it online (Or at list CHMOD it 644 so that it is non-executable, just change it back when you need it). A password check would be good, but I am not going to implement that.

And yes, as long as you want your entire forum restored from backup, there is no problem. But sometimes you might want only some of the files..... The clue is just to be carefull of course, and knowing what the script does when activated.
  
Back to top
 
IP Logged
 
CasRas
Full Member
***
Offline



Posts: 131
Location: Terra, the blue planet
Re: Backing Up and Restoring Your Boards
Reply #15 - Oct 12th, 2005 at 3:59pm
Post Tools
Thanks,
but why is it more dangerous?

Remember forums broke, and i want it to be restored.
Ok i miss everything since last backup but that should be no real problem.

Perhaps a pw check would be a good idea if the restore skript is stored online.
  

See ya  - CasRas
Back to top
 
IP Logged
 
Monsen
YaBB Legends (Active)
*
Offline



Posts: 10,103
Location: Bergen, Norway

YaBB 2.2
Re: Backing Up and Restoring Your Boards
Reply #14 - Oct 11th, 2005 at 7:54pm
Post Tools
Restore is much more dangerous, as it would overwrite things, but here is the script. If $dir and $file is set to the same values as in the backup script, it will restore the same file that was created.

Code
Select All
#!/usr/bin/perl --

$dir = "./yabb2";
$file = "$dir.tar.gz";
$file =~ s/.*\///;
$cmd = "tar -xzf $file";

print "content-type: text/plain\n\n";
print "Restoring $dir directory with tar from $file\n";
system ($cmd);
print "Restore Complete"; 

  
Back to top
 
IP Logged
 
CasRas
Full Member
***
Offline



Posts: 131
Location: Terra, the blue planet
Re: Backing Up and Restoring Your Boards
Reply #13 - Oct 11th, 2005 at 6:35am
Post Tools
Ok,

than i'll stay at  the manual call of the skript. Wink
Can you please write one, which restores the forum the same way?
Sorry but i am not familiar with using tar, so i cannot do it  myself.

With these two files one can backup the forum make changes, if they fail call restore.cgi and the forums is running again.
  

See ya  - CasRas
Back to top
 
IP Logged
 
Curtiss Grymala
Past Team Members
Offline



Posts: 1,903
Re: Backing Up and Restoring Your Boards
Reply #12 - Oct 11th, 2005 at 12:39am
Post Tools
CasRas wrote on Oct 10th, 2005 at 12:13pm:
Hm, just thinking.
Why not put this little skript into the yabbpackage and make it executable via admincenter?
Would be of great help, don't you think so?


Because it would only work on certain servers, and then we'd have a whole lot more "I can't get this to work" posts, I'm guessing.   Wink
  

You should always perform a complete back-up before making any changes or modifications to your forums.
Back to top
 
IP Logged
 
CasRas
Full Member
***
Offline



Posts: 131
Location: Terra, the blue planet
Re: Backing Up and Restoring Your Boards
Reply #11 - Oct 10th, 2005 at 12:13pm
Post Tools
Hm, just thinking.
Why not put this little skript into the yabbpackage and make it executable via admincenter?
Would be of great help, don't you think so?
  

See ya  - CasRas
Back to top
 
IP Logged
 
Monsen
YaBB Legends (Active)
*
Offline



Posts: 10,103
Location: Bergen, Norway

YaBB 2.2
Re: Backing Up and Restoring Your Boards
Reply #10 - Oct 5th, 2005 at 6:23pm
Post Tools
Yes. The .tar.gz file gets stored in the scripts current directory.... That is easy to change, but I made it just to be able to grab some directories quickly, not to be an advanced tool.....
  
Back to top
 
IP Logged
 
goldengate2
Full Member
***
Offline



Posts: 214
Re: Backing Up and Restoring Your Boards
Reply #9 - Oct 5th, 2005 at 1:17am
Post Tools
Thanks for the script  Smiley

Where does the tar file get stored in the directory the script is in?
  
Back to top
 
IP Logged
 
Monsen
YaBB Legends (Active)
*
Offline



Posts: 10,103
Location: Bergen, Norway

YaBB 2.2
Re: Backing Up and Restoring Your Boards
Reply #8 - Oct 3rd, 2005 at 6:29am
Post Tools
If your host is a unix server, you can just upload a small perl script that creates a tar file for you, which you can easily download. This is the script I use myself (Extremely simple, no error handling or the stuff, just something I threw together real quick when I needed it):

Code
Select All
#!/usr/bin/perl --

$dir = "./yabb2";
$file = "$dir.tar.gz";
$file =~ s/.*\///;
$cmd = "tar -czf $file $dir";

print "content-type: text/plain\n\n";
print "Archiving $dir directory with tar to $file\n";
system ($cmd);
print "Archiving Complete"; 

  
Back to top
 
IP Logged
 
goldengate2
Full Member
***
Offline



Posts: 214
Re: Backing Up and Restoring Your Boards
Reply #7 - Oct 3rd, 2005 at 4:36am
Post Tools
Does anyone have a good way of backing up the boards? My forum was to large to just FTP the files over as it eventually frooze up my FTP program part way through a backup. YaBB 1 was nice since I had the backup mod installed.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools
 
  « Board Index ‹ Board  ^Top