New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
man sftp
get put, what else is there?
Check out rsync man page.
rsync -avP /sourcePath remoteUser@remoteHost:/remotePath
Use a bit bucket
i want tutorial link dears
lmgtfy.com/?q=sftp+tutorial.
Sorry, had to...
First result: https://digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server
You can either use SCP or rsync:
rsync -avP /sourcePath remoteUser@remoteHost:/remotePath
scp file your_username@remotehost:/some/remote/directory
If i m having old server ip 1.2.3.4 and in that xyz.com is a website and usernme = [email protected] and path is /home/data/xyz.com
Now
i have to transfer (xyz.com) to new server having ip 5.6.7.8 and usernme = [email protected] and path is /home/new/xyz.com
Now what i can put a commnd in old servers putty and new servers putty?? please tell me...
I am new in server handling and wanted to learn this thing so please help me...
As @andreamada said, you can use either rsync / scp.
@knopix80 i dont know how to use that dear.. please expain me using my example please
E.g.
You're in old server : scp /home/data/xyz.com [email protected]:/home/new/xyz.com
Archive all data into a tarball (using tar command ) then move the tarball to the other server using sftp.
There are many other ways to do that actually.
@knopix80 replies as permission denied... [ http://imgur.com/WJxMAJu ]
@farsighter tell me easy method dear
Pls check:
1. Did u put the right password ?
2. Are u have any permission to do remote via port 22/ssh?
@knopix80 yes password is correct and tell me permissions should be 777 or what?? Currently permission of domain is 755 [domain which is to be shifted 755]
755 is fine. Do u have any permission for doing ssh with the user in new server ?
@knopix80 i dont know how to check that ?? tell me command to enable permissions on new server
@zong11, I'm unsure how urgent this data migration is to you but, considering that you're battling to learn+use tools like scp/sftp/rsync, I highly suggest that you simply get (pay?) someone technical to perform the move for you.
While you could simply get someone off fiver, I wouldn't advise it.
@BeardyUnixGuy i want to learn this thing... scp/sftp/rsync, which is easy method for newbee??
For the usage scenario (one time transfer) you are heading to in combination with your level of knowledge I would say: There is pretty much no difference (for the others: sure there is one!), even the syntax is almost identical for that task.
If the permissions are 755/777 on .ssh there is your possible problem ~userdir/.ssh should be 700 ~userdir/.ssh/authorized_keys should be 600
If you are able to access with the password via ssh, do that and check the permissions on your .ssh folder
On the new server, the command line is basically,
The following is just an example, change according to your own situation.
Make sure on the new server your user account has the write permission in the new place.
And if you really really can't handle it, pay some dollars and find someone to handle it for you are much easier and safer.