Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Site Backup (easily backup your forum files) Details »
Site Backup (easily backup your forum files)
Mod Version: 1.00, by bairy (Member) bairy is offline
Developer Last Online: Jul 2023 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.0 Rating: (5 votes - 4.60 average) Installs: 59
Released: 09 Oct 2006 Last Update: 09 Oct 2006 Downloads: 343
Not Supported Additional Files Is in Beta Stage  

What is this?
This is a script that will let you easily back up your website files, with some nifty features.

Why?
We all know backups are important, but they're also tricky. If you are on shared hosting with no shell access then you have to backup via FTP which is time consuming and a bit messy. Even if you have shell access you still have to manually type in the command to tar it all up, then download it, then delete the tar. This script does it all for you.


Okay, talk me through it
It's pretty simple really. Once you've uploaded and configured the script (read the install.txt), run it and you'll be presented with a list of folders and files in your forum root. You can choose the ones you want, click Backup! and it will put them into a tarball (which can be optionally gzipped). You can then download that tarball and delete it for security reasons, all from this script.
The advantage of being able to pick and choose the files you grab is that you don't have to keep downloading the files that never change. So say you have the images dir which never changes, and you have an uploads dir which does. It makes no sense wasting bandwidth continually grabbing the images dir.

Simply put: Your site is put into one file which is a lot easier to download than hundreds of seperate ones. It can be optionally gzipped to reduce the download size a bit more, and it's jus all round convenient.

Important
I cannot gaurentee this will work. It requires the tar executable to be in place and I believe that's only present in linux operating systems. It also requires you to be able to execute it. Safe mode may stop you doing so. Please don't ask me for support on this, I don't know the answers. I just know it works on my host so I thought I'd share.
Because I'm no expert I cannot be liable for any theft or problems occuring from this script. Run at your own risk!

Less important, but still important
When you do a backup, make sure you have enough space to actually fit the tar file. So if your admincp is 2mb, you'll need 2mb free on your hosting plan, or slightly less using gzip.


Questions
Is it secure?
Yes. As much as I know how to make it:
- You choose the backup filename. Even though it will be deleted as soon as you've downloaded it, this helps prevent anyone else from guessing the filename and downloading it at the same time
- It's restricted to superadministrators only, as defined in config.php.

What's to stop people browsing to the backup directory and seeing my backup?
There should be no backup except during download, however during download times there is a blank index file in the backup directory. If your web server is set up properly then it's extremely difficult to guess the filename you chose. Even I wouldn't be able to get hold of it without FTP details.

Why not just use cpanel's backup?
The only real advantage over cpanel's backup is you can choose the files you want, whereas cpanel dumps the entire public_html folder, and databases, and .... into it. I don't think cpanel provides a gzip option either.

Is a database backup included?
At this time, no. Maybe in the future if I can figure out how to do it.

Can this script wipe my files?
No. The only single thing it's capable of deleting is the backup file which you create and name.

The title says "forum files", what about CMS?
Truthfully I don't know because I don't have CMS. The way the admincp global works is it seems to put the forum root as the current working directory. I don't know if that means site root in the case of CMS, or just forum root. Best way to find out is run it and see which directories are listed.
If there is no CMS, I may look into including that or full website backup, if the demand is high enough.

Why doesn't it have anything in the vB options?
Security. Read the first few lines of the script itself for more details.

Can this be put on cronjob/scheduled task?
Nope. It's not designed as that at the moment although it wouldn't be too unsafe to do so. Maybe in the future when I know the commands and directory bits work properly.

What about sending the backup to another server, via ftp?
In future possibly, depends on demand.

Restoration option?
Not at present, depends on demand.

What is a tarball (.tar) anyway?
I'm not sure of the origins or if it's a *nix "standard" but it seems to be. Basically it's just a form of archiving files, sort of like zip or rar. You can also gzip the files on top, making a zipped tarball (.tgz) WinRar will handle the file. If you want a free alternative try www.nonags.com (freeware - no nags)

Can you help me with...
As I said in the important part, this isn't an area of expertise to me. If you have a feature suggestion or have found a bug I'll do my best to fix it, but if it just plain doesn't work then I might be able to help, I might not.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	whattobackup.png
Views:	1188
Size:	33.4 KB
ID:	54446   Click image for larger version

Name:	backedup.png
Views:	1065
Size:	6.1 KB
ID:	54447  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Administrative and Maintenance Tools Cron job for Files Backup (attachments, avatars, etc.) Lynne vBulletin 3.7 Add-ons 30 09 Nov 2009 01:16

Comments
  #2  
Old 09 Oct 2006, 17:08
AMG021 AMG021 is offline
 
Join Date: Sep 2006
1st so say THANKS!!!
Reply With Quote
  #3  
Old 09 Oct 2006, 17:23
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
This sounds great! I am installing now!

Edit - OK, I have it installed but it looks like this will not do a full site backup or at least mine does not look like it is working.

Edit - I am uninstalling this as she is not working for me... I'll watch the thread but this is to dangerous of a script to haev on a site if it is not going to work...

Last edited by Quarterbore; 09 Oct 2006 at 18:12.
Reply With Quote
  #4  
Old 09 Oct 2006, 17:37
DPSR's Avatar
DPSR DPSR is offline
 
Join Date: Aug 2006
WAH, bro it looks like you have just solved my biiiiggg problem but i have only one question:

My uploads folder size is about 2 gb will this script pack it also?? or there is certain limit to which this script work??

Thanks a lot once again
Reply With Quote
  #5  
Old 09 Oct 2006, 17:49
maxicep maxicep is offline
 
Join Date: Oct 2006
thanx for hack
Reply With Quote
  #6  
Old 09 Oct 2006, 17:54
bairy bairy is offline
 
Join Date: Oct 2005
Real name: Chris
Originally Posted by DPSR
My uploads folder size is about 2 gb will this script pack it also?? or there is certain limit to which this script work??
You can exclude that directory, however if you include it the script will keep working until one of three things happen:
1. You run out of disk space and it stops.
2. It times out. php won't time out but the web server (apache, lighttpd) might. I believe apache is set to 300 seconds (5 mins) by default so I hope it's a fast disk in that server.
3. Some other problem such as the host rebooting the server.
Reply With Quote
  #7  
Old 09 Oct 2006, 17:59
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
Can it be incremental?
Reply With Quote
  #8  
Old 09 Oct 2006, 18:03
DPSR's Avatar
DPSR DPSR is offline
 
Join Date: Aug 2006
Originally Posted by bairy
You can exclude that directory, however if you include it the script will keep working until one of three things happen:
1. You run out of disk space and it stops.
2. It times out. php won't time out but the web server (apache, lighttpd) might. I believe apache is set to 300 seconds (5 mins) by default so I hope it's a fast disk in that server.
3. Some other problem such as the host rebooting the server.
I have about 8gigs of free webspace left and i am on shared hosting account... will it work?? i just need to move this folder to another.. rest i can do
Reply With Quote
  #9  
Old 09 Oct 2006, 18:06
bairy bairy is offline
 
Join Date: Oct 2005
Real name: Chris
Lionel - not as such. You can tick some directories one time then some more directories next time, but it'll overwrite the tar so you need to download it in between.

DPSR - Assuming you can have one single file that kind of size, yes. (Some hosts have a maximum size per single file - I'm not certain if there are filesystem limitations too). Best suggestion would be just try it.
Reply With Quote
  #10  
Old 09 Oct 2006, 18:12
DPSR's Avatar
DPSR DPSR is offline
 
Join Date: Aug 2006
Originally Posted by bairy
DPSR - Assuming you can have one single file that kind of size, yes. (Some hosts have a maximum size per single file - I'm not certain if there are filesystem limitations too). Best suggestion would be just try it.
Its a folder where i store attachments......... np i will this out
Reply With Quote
  #11  
Old 09 Oct 2006, 18:34
bairy bairy is offline
 
Join Date: Oct 2005
Real name: Chris
I understand what you mean.
What I mean is that a tarball is a single file containing everything put into it. So if you have 1000 attachments at 2mb each then it'll go into one big file of around the 2gb mark.
Some hosts don't allow any one file at that kind of size, and the linux filesystem may also have restrictions on it.

So in terms of the script, there's no reason it won't work, but there might be technical limitations that will stop it.
Reply With Quote
  #12  
Old 09 Oct 2006, 18:41
transitbus's Avatar
transitbus transitbus is offline
 
Join Date: Aug 2006
Just installed it. Works perfectly. Thanks for making this.
Reply With Quote
  #13  
Old 09 Oct 2006, 19:01
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Nice.

A suggestion: You mention 'those directories that dont change' in the first post, but I can't see anything about 'last modified date' in the screenshots.

Perhaps something like that, to give people an idea of what needs backing up?

Maybe a 'has changed since last backup?' flag?
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #14  
Old 09 Oct 2006, 19:38
bairy bairy is offline
 
Join Date: Oct 2005
Real name: Chris
I did think about putting some info in the listings, like size. Last modified is a good idea too.
I wrote the whole thing in about 6 hours today and wanted to see if:
a) it would work on other servers
b) many people would be interested

Early impressions seem to indicate that it could be relatively popular, especially if I make it more functional.
Reply With Quote
  #15  
Old 09 Oct 2006, 19:54
da420 da420 is offline
 
Join Date: Nov 2005
Very nice. I am very interested as it is kind of a mental thing in keeping back ups. The more current the back up the more at ease I am. I try and take a file structure back up at least once a week, but sometimes I cannot get around to it, and it gets done once a month, if that. This will help as all I will need to do is login to FTP and upload the single file.

This along with Paul M's auto database back up will be very helpful in the occurance something should happen so that we have the most up to date backup of the files, and getting the site back up in working order ASAP.

I will probably be installing this tonight.

Thanks!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:58.

Layout Options | Width: Wide Color: