1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

SSH command to move directory?

Discussion in 'Site & Server Administration' started by Gatorade, Mar 2, 2009.

  1. #1
    I have a dedicated server and I need to move some sites and their mysql databases from one account to another on the same server.

    What are the commands to move a site/directory/database from one location to another?
     
    Gatorade, Mar 2, 2009 IP
  2. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #2
    To move a directory, enter:

    This command moves all files and directories under book to the directory named manual, if manual exists. Otherwise, the directory book is renamed manual

    As for the database, you can dump the sql and reimport it in a newly created db.
     
    Camay123, Mar 2, 2009 IP
    Gatorade likes this.
  3. playactn

    playactn Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should probably enlist someone to help you based on your question. SSH refers to the protocol used to connect to your server. Once you are on there, you need someone relatively tech-savvy to help you. Moving directories is trivial, assuming none of the files have hardcoded paths. For the db, you will likely need to export and reimport to a new location.
     
    playactn, Mar 3, 2009 IP