-   Linux - Virtualization and Cloud (
-   -   Backup VM using rsnapshot (

cccc 02-04-2010 07:33 AM

Backup VM using rsnapshot

We have ESX 3.5 Update2.
Howto backup running VM using rsnapshot?

dev_dks 02-05-2010 07:00 AM


1. Setup Key Based Authentication and then

copy the pub id named as authorization keys on remote host.


[root@local-host]# ssh-keygen

[root@local-host]# ssh -i ~/.ssh/ remote-host

2. Verify the password less login between servers.

[root@local-host]# ssh remote-host
Last login: Sun Mar 15 16:45:40 2009 from local-host


3. Configure rsnapshot and specify Remote Host Backup Directories

Define your remote-host destination backup directories in /etc/rsnapshot.conf as shown below. In this example,

* root@remote-host:/etc Source directory on the remote-host that should be backed-up. i.e remote backup destination directory.

* remote-host-backup/ destination directory where the backup of the remote-host will be stored. Please note that this directory will be created under local-host /.snapshots/{internal.n}/ directory as shown in the last step.


# vi /etc/rsnapshot.conf

backup  root@remote-host:/etc/  remote-host-backup/  exclude=mtab,exclude=core

4.) Test rsnapshot Configuration

Perform configuration test to make sure rsnapshot is setup properly and ready to perform Linux rsync backup.

May be this would be helpful.

Enjoy ;)

BY Dev

cccc 02-05-2010 07:46 AM

Thx a lot, I'll try.

BTW has anyone already tried to backup a running VM using rsnapshot?

Chuck56 02-05-2010 08:35 AM


Originally Posted by cccc (Post 3853773)
Thx a lot, I'll try.

BTW has anyone already tried to backup a running VM using rsnapshot?

Yes but I'm running KVM, not VMWare ESX. I used to run VMWare Server 1.x and installed rsnapshot on a host to backup directories/files on the guests. The password-less logins described by dev_dks were part of my solution also.

All times are GMT -5. The time now is 03:55 AM.