SSH Help Needed

Discussion in 'Site & Server Administration' started by nikolaalx, Feb 22, 2007.

  1. #1
    Hey guys,
    I have this dedicated server which has plesk installed.

    I have 2 domains registered with plesk and it has created different ftp accounts for the 2 domains.

    I need to copy the files from the first site to the other. I know this should be done through ssh, but can someone give me a little hint on how to do so?

    Thanks guys.
    Nik
     
    nikolaalx, Feb 22, 2007 IP
  2. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #2
    #man cp

    
    http://unixhelp.ed.ac.uk/CGI/man-cgi?cp
    
    Code (markup):
    you should use -R and -f but dont forget to chown (man chown http://www.hmug.org/man/8/chown.php ) the files to the new owner ;)
     
    rootbinbash, Feb 22, 2007 IP
  3. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    cp -R /directoryyouliketocopyFROM /directoryyouliketocopyTO
    Code (markup):
    then change the correct permission for the folder

    chown owneruser:owneruser /directoryyouliketocopyTO
    Code (markup):
     
    tanfwc, Feb 22, 2007 IP