Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

The institution I work for wants me to backup the entire filesystem of a server and store it on another server. Both servers are running the latest release of Ubuntu. I'm having a little bit of trouble trying to figure out not only how to do this, but how to do this remotely, so I'm hoping the brilliant minds here can give me some guidance.

My train of thought for how I should accomplish this goes like this :

First, I need to tar up the entire filesystem of Server 1. I know I'll need to exclude the /proc directory when I do this (and of course I'll need sudo). I'm having a bit of trouble figuring out what the tar command could be used to accomplish this.

After I have an archive of the filesystem I need to send the archive from Server 1 to Server 2. What command would I do this with?

Finally, I'm going to be doing all of this remotely so how do I launch my commands so that they continue running if the connection on my end were to time out? Should I use screen commands? Should I use nohup?

Thanks in advance for your time, I truly appreciate it.

share|improve this question
up vote 2 down vote accepted

There is a nice page here that should get you started.

Ubuntu Server Guide Backups - Shell Scripts

It includes a script to make the backup. The script backs up the archive to a NFS mounted directory, but you can transfer the archive with ssh (scp) or rsync or just about any network protocol.

share|improve this answer
useful link, thanks – ao789 May 4 '13 at 8:39

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.