Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    203
    cPanel/Enkompass Access Level

    Root Administrator

    Default 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

  2. #2
    Member
    Join Date
    Jul 2009
    Posts
    5

    Default

    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

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Philadelphia, USA
    Posts
    8

    Default

    It is good to do it manually, but cPanel has such a wonderful backup tool and I would recommend using that.

Similar Threads & Tags
Similar threads

  1. Backing up account with process killer
    By MrL22 in forum Data Protection
    Replies: 0
    Last Post: 11-14-2010, 10:07 AM
  2. Backing up account with process killer
    By MrL22 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-14-2010, 10:07 AM
  3. Backup - only 1 account backing up?
    By rwyatt in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-09-2008, 09:47 AM
  4. Backing Up and account
    By tmhosting in forum Data Protection
    Replies: 0
    Last Post: 12-21-2004, 01:01 AM
  5. Backing up a account
    By wipl_piyush in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-30-2004, 08:49 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube