Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My hosting provider does not offer a free backup and I'm not going to pay for it.

I have 2 centos 5 64 bit vps, I'm working on 1 of them, I'm not using the 2nd one. I don't have a cpanel nor ftp.

I would like to know how to backup everything on the 2nd vps that I don't use

share|improve this question
up vote 3 down vote accepted

SCP or SFTP are your friends in this scenario.

The scp command works similarly to cp, but it copies files over an ssh connection.

eli@oldserver:~$ scp -r /folder/with/important/stuff/ eli@

For more information and flags I refer you to the man page of scp.

Your other option, SFTP is a protocol that is implemented in many file browsers. This approach will allow you to use a graphical interface.

  • File browsers like Nautilus and Dolphin on desktop Linux distributions have this built in. Just use sftp://eli@ in the address bar.
  • On Windows there is WinSCP.
  • For OSX there is Fugu.

These SFTP tools will allow you to just drag and drop files on or off servers running ssh.

share|improve this answer
hey I ALWAYS use sftp, so i can use sftp to backup my files!!! thanks you!!! – user Sep 11 '11 at 17:13
hi sir I'm using winscp, would you tell me how to connect between 2 vps rather than a vps and a localhost? – user Sep 12 '11 at 8:48
This is not possible at the moment, as discussed in this WinSCP forum thread from 2004. – Kenny Rasschaert Sep 12 '11 at 10:39

Just copy all the data and config to the second server. Testing whether your backup actually works is optional, but highly recommended.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.