LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 02-04-2010, 07:33 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Rep: Reputation: 45
Backup VM using rsnapshot


hi

We have ESX 3.5 Update2.
Howto backup running VM using rsnapshot?
 
Old 02-05-2010, 07:00 AM   #2
dev_dks
LQ Newbie
 
Registered: Jul 2006
Location: INDIA
Distribution: RHEL/SOLARIS 10/UBUNTU/CENTOS
Posts: 13

Rep: Reputation: 1
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
 
Old 02-05-2010, 07:46 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Original Poster
Rep: Reputation: 45
Thx a lot, I'll try.

BTW has anyone already tried to backup a running VM using rsnapshot?
 
Old 02-05-2010, 08:35 AM   #4
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
Quote:
Originally Posted by cccc View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using rsnapshot with sshfs to backup lpallard Linux - Software 3 08-29-2012 10:41 AM
Backup running server using rsnapshot cccc Debian 2 02-02-2010 03:01 PM
Rsnapshot backup of Windows client - name resolution problem pentode Linux - Server 5 12-05-2008 04:07 PM
Rsnapshot and Backup Strategy Woodsman Slackware 2 04-28-2008 10:48 PM
Using rsnapshot to make a system backup Transition Slackware 1 03-21-2005 09:23 PM


All times are GMT -5. The time now is 11:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration