From: James Britt Date: 2005-06-17T08:55:56+09:00 Subject: Re: Backing up files and database better in Ant or Ruby? Ryan Leavengood wrote: > vike84 said: > >>I am looking to write some basic scripts to back-up various files and >>databases as well as restore them. Do you think this would be easier >>and better to do using Ant or Ruby? > > > I'm about to give myself a web presence as well as do some Rails > development, and I'm curious about this as well. I personally wouldn't use > Ant, but I'd like to hear what the overall consensus is on doing backups, > i.e. what software to use, where to backup to, what schedule etc. I'll do > some searching online as well, but it would be nice if there was a > standard "Ruby" way of doing this, particularly when dealing with Rails > projects. Rule #1 is to keep anything remotely important in CVS (or SVN, etc.) Rule #2 is to backup CVSROOT, if nothing else. I tend to use rsync and xxcopy. > > Maybe an elegant, super easy to use Ruby backup library/system would be a > nice project for someone. There are numerous articles on the Web about doing this, and they are all fairly simple. It might be handy, though, to have a Ruby wrapper around certain tools (cpio or tar or rsync) so that they take blocks using parameters that look more like plain English (or whatever one speaks besides Ruby). But generally one need only understand enough to get a proper script, then run it. James -- http://www.ruby-doc.org - The Ruby Documentation Site http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys