Results 1 to 10 of 10
  1. #1

    * move server files

    What is the best way to move server Folder from my previous host to the new one??? I can use ssh.

  2. #2
    Join Date
    Sep 2005
    Location
    In the office
    Posts
    857
    Are you just attempting to move ONE specific folder?

  3. #3
    Join Date
    Feb 2003
    Location
    Dallas, TX
    Posts
    1,498
    tar zcvf filename.tgz FOLDER

    sftp USER@NEW_SERVER
    password: ******
    sftp> put filename.tgz
    sftp> quit

    ---- On the other server

    tar zxvf filename.tgz

    That should do the trick. Replace filename.tgz with whatever you want to call the file and FOLDER with the name of the directory you want to tranfer.

    Also replace USER with the username at the new server and NEW_SERVER with the IP address of the new server. =)

    JoseQ
    TailorMadeServers.Com - Dallas Dedicated Servers since 2003
    joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers

  4. #4

    Unhappy

    Cant really do the .tgz of the folder because the folder is too large (> 30GB) and being used by at least 70 people /minute. Any other way I can do it? yes it's only one folder with 100 sub folders in it.

  5. #5
    Join Date
    Apr 2003
    Location
    Los Angeles, CA
    Posts
    820
    You can also go:

    rsync -avz -e ssh /path/to/folder user@newserver:/path/to/destination/folder/

    (watch the trailing slashes!)

    You can repeat it as needed, it will only transfer changed files on subsequent runs.
    Pings <1 ms, Unlimited Transfer, Lowest Price: http://localhost/

  6. #6
    Quote Originally Posted by luki
    You can also go:

    rsync -avz -e ssh /path/to/folder user@newserver:/path/to/destination/folder/

    (watch the trailing slashes!)

    You can repeat it as needed, it will only transfer changed files on subsequent runs.
    And would this just copy the files or move them?

  7. #7
    Join Date
    Feb 2003
    Location
    Dallas, TX
    Posts
    1,498
    You can't really "move" them from one server to another (without a remote file system partition perhaps). You can copy and then delete.

    If you can compress the 100 folders, then you can script the lines I wrote above with a foreach statement and compress/transfer each compressed folder file individually).

    JoseQ
    TailorMadeServers.Com - Dallas Dedicated Servers since 2003
    joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers

  8. #8
    Join Date
    Feb 2004
    Location
    Atlanta, GA
    Posts
    5,662
    Quote Originally Posted by TMS - JoseQ
    You can't really "move" them from one server to another (without a remote file system partition perhaps). You can copy and then delete.

    If you can compress the 100 folders, then you can script the lines I wrote above with a foreach statement and compress/transfer each compressed folder file individually).

    JoseQ


    the above referenced rsync command will do gzip compression on the fly.

  9. #9
    Join Date
    Feb 2003
    Location
    Dallas, TX
    Posts
    1,498
    I would go with the rsync command. =)
    TailorMadeServers.Com - Dallas Dedicated Servers since 2003
    joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers

  10. #10
    Join Date
    Aug 2006
    Location
    Ireland
    Posts
    814
    use sftp (see above)

    but just send a file at a time


    sftp USER@NEW_SERVER
    password: ******
    sftp > put /path/to/files/*
    sftp > bye


    that will move all the files one by one in that path, 30GB might take a while tho epending on your connection

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •