Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 28th February 2009, 19:59
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default Scripting LVM Snapshot Backups

I have a pretty simple, but tested and validated (unfortunately) backup script that I wrote. I am currenlty running the same script on each physical machine. Each machine backing up to a different external HD.

However, now that the new server I built is using Xen with LVM, I am rebuilding most of my physical machines as Xen virtual machines. So I believe I can simplify my backups by just taking snapshots of each LV for the virtual machines on the Dom0. I can then use my existing script to TAR that LV snapshot.

So I found this tutorial which is exactly what I want to do. I followed the tutorial and it works great for my situation. I would now like to automate it through a bash script so that I can create a cron job that runs in the middle of the night to perform the backups.

My question becomes, when I delete a LV (i.e. the snapshot volume was I am done with it), the user must enter y or n at the command line to confirm. How would I write my script to handle this extra confirmation step?
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 8.04 LTS - RAID 1 + LVM + XEN atjensen11 HOWTO-Related Questions 1 20th January 2009 20:35
Unable to repair/re-install ubunt svr ubuntu 8.04/8.10 on RAID 5 LVM lucy_t Installation/Configuration 5 19th December 2008 20:59
debian, lvm, raid, grub, custom kernel koi Installation/Configuration 4 3rd November 2007 10:39
rsync incremental snapshot backups gabrix HOWTO-Related Questions 13 11th December 2006 22:29
Xen: Smp & Lvm zokahn HOWTO-Related Questions 5 27th January 2006 10:28


All times are GMT +2. The time now is 10:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.