hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Linux Backup Utility
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Linux Backup Utility

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-13-2004, 12:48 PM
2webhost 2webhost is offline
Disabled
 
Join Date: Nov 2003
Posts: 82

Linux Backup Utility


Anyone can recommend Linux server back up utility which can backup and restore home directory, email, mysql etc... more or less like Cpanel WHM Transfer Multiple Accounts from other servers?

Reply With Quote


Sponsored Links
  #2  
Old 03-13-2004, 12:56 PM
apollo apollo is offline
Web Hosting Master
 
Join Date: Feb 2002
Posts: 2,102
the best way of course is to backup with your own scripts (tar).... or if you prefer to save some bandwidth then rsync... for mysql use mysqldump command

as always -> KISS


ps. use pgp utilities to encrypt the files for security

__________________
LinuxAdmin.org - server management and tuning

Reply With Quote
  #3  
Old 03-13-2004, 01:36 PM
2webhost 2webhost is offline
Disabled
 
Join Date: Nov 2003
Posts: 82
You got the script for both tar backp up and mysqldump ?

Reply With Quote
Sponsored Links
  #4  
Old 03-13-2004, 03:28 PM
apollo apollo is offline
Web Hosting Master
 
Join Date: Feb 2002
Posts: 2,102
ok there you go....



#!/bin/bash

cd /home
tar -cvfz /backupdir/home.tgz .

cd /backupdir
/path/to/mysqldump -u root -pPASSWORDHERE databaseName > ./databaseName.sql
gzip -9 ./databaseName.sql


Where PASSWORDHERE is your root Mysql password, databaseName the data base name (it can also be --all-databases).



ps. the only problem could be large files, for example over 4GB.. then you will need to implement 'split' or tar with the "size" option..

__________________
LinuxAdmin.org - server management and tuning

Reply With Quote
  #5  
Old 03-13-2004, 04:47 PM
2webhost 2webhost is offline
Disabled
 
Join Date: Nov 2003
Posts: 82
let say back dir is home2, please check the script below:

#!/bin/bash

cd /home
tar -cvfz /home2/home.tgz

cd /home2 -u root -p web123 databaseName > ./databaseName.sql gzip -9 ./databaseName.sql

***how to change it to all databases? Can you edit the scripts?

Reply With Quote
  #6  
Old 03-13-2004, 05:04 PM
apollo apollo is offline
Web Hosting Master
 
Join Date: Feb 2002
Posts: 2,102
cd /home2

/usr/bin/mysqldump -u root -p web123 --all-databases > ./all_db.sql

gzip -9 ./all_db.sql



-----------------
hope this helps..

__________________
LinuxAdmin.org - server management and tuning

Reply With Quote
  #7  
Old 03-13-2004, 05:57 PM
2webhost 2webhost is offline
Disabled
 
Join Date: Nov 2003
Posts: 82
apollo, thanks for your help. How to make a restore then?

Reply With Quote
  #8  
Old 03-14-2004, 02:03 AM
noc32 noc32 is offline
Junior Guru Wannabe
 
Join Date: Nov 2003
Posts: 33
Why don't you use sysbackup? SySBackup
It includes backup for:
- DNS backup
- MySQL backup
- ensim virtual host backup
- cpanel 6 compliant backup

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Sterling Data Storage Launches Three Cloud Backup Services Web Hosting News 2013-01-14 13:39:31
HostPapa Offers Backup and Disaster Recovery Services through Vembu Partnership Web Hosting News 2012-11-21 16:42:51
Cloud City Hosting Integrates Backup with Cloud Hosting Plans Web Hosting News 2012-05-11 16:21:19
R1Soft Launches Cloud Backup Software for Web Hosting Companies Web Hosting News 2012-04-24 11:45:03
R1Soft Launches Continous Data Protection Data Center Console Management Platform Web Hosting News 2011-12-19 20:04:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?