Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-20-2009, 01:24 AM   #1
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,479
Backing up website serverside, how-to?

Could anybody please give me the command line to use if we want to make a backup copy of our entire installation on the server (because we're upgrading software, we need to be able to roll-back).

Cheers, downloading through FTP is taking days;)
__________________
seks.ai for sale - ping me
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-20-2009, 01:26 AM   #2
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,479
cp -rp /path/to/site /path/to/backup_dir

Is this correct?
__________________
seks.ai for sale - ping me
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-20-2009, 04:55 AM   #3
zagi
Confirmed User
 
Join Date: Jan 2004
Posts: 1,238
Yes, cp -rp /path/to/site /path/to/backup_dir will work, but its better to use:


cp -Rp, it is a safer version of the command.

Also, VERY IMPORTANT, this will only backup your files -- most likely you have a database associated with the site which will need to be backed up as well:

mysqldump -Q -q -e --add-drop-table --database DATABASE_NAME > DATABASE_NAME.sql

Replace DATABASE_NAME with your db and this will make a file with all of your SQL data, best thing would be to run this command in /path/to/backup_dir so you have all of your restore files in 1 place.
__________________
Managed US/NL Hosting [ [Reality Check Network ]
Dell XEON Servers + 1/2/3 TB Packages ICQ: 4-930-562
zagi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.