#1 (permalink)  
Old 07-07-2009, 05:18 PM
Registered User
 
Join Date: Sep 2006
Posts: 45
GoWilkes is on a distinguished road
Manually backing up an account

I'm always nervous about plugging code directly in to SSH, just because I know that one day I'll accidentally do something stupid and delete everything! LOL

Would someone please glance at this and make sure that it's correct? I'm planning to copy everything in the /www/ directory (and all subdirectories) from account "domain1" to "domain2" (on the same server).

cp /home/domain1/www/* /home/domain2/www/

The account has about 200MB worth of storage.

TIA,

Jason
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-10-2009, 10:44 PM
Registered User
 
Join Date: Jul 2009
Posts: 5
stan01 is on a distinguished road
Hi Jason,

As most Linux programs, cp also needs an argument in order to copy everything.

Ty it this way:

cp -r /home/domain1/www/* /home/domain2/www/

bith this will omit dotfiles. It will be much easier to:

cd /home/domain1/ ; cp -r www/ /home/domain2/

assuming, there isn't www/ in /home/domain2/

and don't forget to chown once the copy is over
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-13-2009, 01:59 PM
Registered User
 
Join Date: Dec 2003
Location: Philadelphia, USA
Posts: 2
tushit
It is good to do it manually, but cPanel has such a wonderful backup tool and I would recommend using that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup - only 1 account backing up? rwyatt cPanel and WHM Discussions 0 09-09-2008 09:47 AM
How to restore account an account manually without cpbackup? bartdc cPanel and WHM Discussions 4 02-27-2007 11:25 AM
Backing up User's Mail Account codegirl42 cPanel and WHM Discussions 8 11-12-2006 09:07 AM
Backing Up and account tmhosting cPanel Newbies 0 12-21-2004 01:01 AM
Backing up a account wipl_piyush cPanel and WHM Discussions 0 04-30-2004 08:49 AM


All times are GMT -5. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc