Help - Search - Members - Calendar
Full Version: An example of how to backup restore (commands)
The Planet Forums > System Administration > Backups, Restores and Transfers
gar
Hello

i don't have an experience in linux and it commands..

can someone show me an easy direct example of what to type as root admin some commands to backup my large website and large couple of databases?

my websites's files are located in:
/home/httpd/vhosts/mydomain.com/httpdocs
my databases located in:
/var/lib/mysql/
databases: mydb1 , mydb2

and i want to put them all in 1 directory /home/admin/backupfiles

then compress that folder of the 3 files i backedup so i can move it by ftp as 1 file to another server or ftp site ..

with a good and a clear answer you can help so many others like me icon_smile.gif
mmyers
Greetings Gar,

There are really numerous ways in which this can be accomplished. The most common is with tar and mysqldump utilities.

You can find info on these utilities here:

http://lantech.geekvenue.net/chucktips/jas...6279/index_html
http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html

Tar will basically make compressed packages of your files in the httpdocs directory, or the directory itself. Mysqldump will generate plaintext dump files of your databases which can then be compressed and stored as backups.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.