![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |