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

I am searching for a tool to assist me in making backup images of remotely running VPS servers. Thanks!

share|improve this question

To create full, working images nothing works better then dd.

mount your root system read-only; a bit tricky, you need to make sure nothing writes to the fs and then issue

mount -o ro -n /

(-n makes sure that the mount itself doesn't write to the filesystem)

and copy the contents using dd:

dd if=/dev/sda1 of=/otherfilesystem/imagefile.img

You can also create an empty filesystem:

dd if=/dev/zero of=/otherfilesystem/file.img bc=size

and format the file using mkfs.ext3 (or whatever your root is using).

after that you can mount the file and create /proc or /dev folders; you can also run grub on that file to make sure it boots the way you want. After you are done, pack all that in a script...

share|improve this answer
You can do this with a running system as well. Turn off all the services you can. In this case you will want to run fsck for the filesystem image after it is made. You may run into some files that were were being written while the image is being made. If these are text or log messages it may not be a big deal. Since dd copies all o the blocks, with or without data, I'd suggest that you compress the image while creating it, especially if you are going to copy it across a network. You may also want to look at dump or xfsdump if you are using ext2/3 or xfs. – Rik Schneider Aug 7 '09 at 1:51

You may use rsync, duplicity (I'd suggest with ftplicity) or dar.

Or, as already said, LVM or filesystem snapshots (some filesystems like XFS support snapshots), but these snapshots tend to be more space wasting than explicit file backups.

EDIT: You said server**s**. If you have many servers, thinking about an enterprise backup solution like Bacula might be the right choice.

share|improve this answer

if data you want to backup [ whole system or just some part of it ] resides on lvm volume - use lvm snapshots.

on the other hand i think file-based backup should be fine [ except some databases, but for those you can use dedicated tools - mysqldump / pg_dump etc ].

[ probably it's not... ]

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.