|
|||
|
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 |
|
|||
|
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
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |