LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Backup VM using rsnapshot (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/backup-vm-using-rsnapshot-786946/)

cccc 02-04-2010 08:33 AM

Backup VM using rsnapshot
 
hi

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

dev_dks 02-05-2010 08:00 AM

Hi,



1. Setup Key Based Authentication and then

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

Code:

[root@local-host]# ssh-keygen

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

2. Verify the password less login between servers.
Code:

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

[root@remote-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.

Code:

# 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 08:46 AM

Thx a lot, I'll try.

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

Chuck56 02-05-2010 09:35 AM

Quote:

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 04:19 AM.