UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Website Development & Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 5th January 2008, 11:34 PM   #1 (permalink)
Charles
Registered User
 
Join Date: Sep 2007
Location: 17°59′N 76°48′W
Posts: 150
Exclamation Backup Scripts

I have created a shell script that will backup your Sites, MySQL DB, and other folders.
You can choose to Encrypt, Compress, CompressionType(gzip or bzip2)
for one or all of them.

A log gets created every time you do a backup so that you can see what is being done. Each one has its own settings. You can then SCP, SFTP, or FTP your backups to a remote server. You even have the option to either leave the backups on your local server or have them removed.

There is also an option to have the log emailed to you
every time the backup is ran. It will email you the latest
backup part of the log.

This script work in junction with a backup Perl script that I found here:
Dienhart > software > PERL Scripts > documentation > daboobak - Free Software, perl script, Daboo Backup, mount remote drives, Log Files
I have taken that version and have modified it to accept Encryption and Compression
Info. I have permission from the developer to redistribute this modified version and I have emailed him the modified version as well so he can update his site and knows what changes I have made to the script.
You will have to set the settings for both of the files. I can help with this script if
it is installed on United Hosting Servers only as I wouldn't know the setup of others.

I am attaching both my shell script that I created and the modified version of the Daboobak Backup Perl Script. These scripts are as is and without any warranty of any kind. I will not be held accountable for its use or misuse.
Attached Files
File Type: zip BUScripts.zip (8.4 KB, 35 views)

Last edited by Charles : 6th January 2008 at 12:36 AM.
Charles is offline   Reply With Quote
Old 14th April 2008, 06:32 AM   #2 (permalink)
Charles
Registered User
 
Join Date: Sep 2007
Location: 17°59′N 76°48′W
Posts: 150
Exclamation Updated Version

I have just updated my Backup Script to version 0.02

Fixed how the date was being set for the Database backup.
Added a new feature to set the date format
Added an option to choose which type of Report is Created.
1. Simple Layout
2. Nice Layout

If you have any questions or run into any problems you can reply to the thread or PM me.

These scripts are as is and without any warranty of any kind. I will not be held accountable for its use or misuse.

Charles
Attached Files
File Type: zip BU_0.02.zip (10.5 KB, 11 views)
Charles is offline   Reply With Quote
Old 2nd July 2008, 08:53 PM   #3 (permalink)
dusty
Registered User
 
Join Date: Aug 2007
Posts: 7
Any chance of a idiot-friendly tutorial on how we go about using this on United Hosting? I'm looking for a way to automate backups on behalf of a client, but haven't got a clue where to start with MySQL.
dusty is offline   Reply With Quote
Old 2nd July 2008, 10:12 PM   #4 (permalink)
VEAdas
Registered User
 
Join Date: Feb 2008
Posts: 7
Quote:
Originally Posted by dusty View Post
Any chance of a idiot-friendly tutorial on how we go about using this on United Hosting? I'm looking for a way to automate backups on behalf of a client, but haven't got a clue where to start with MySQL.
a php backup script is available at Idut - Idut Backup - Website Backup - A free and open source file and database website backup system and it does files and mysql. it can be setup as a cron job.

united hosting have a built in backup system built into the control panel too
VEAdas is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 06:48 AM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309