LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2008, 07:43 PM   #1
callagga
Member
 
Registered: Jan 2008
Posts: 36

Rep: Reputation: 15
Question what's your recommendation re backup scripts (shell or ruby) for linux backups???


Hi,

I want to put in place a periodic backup routine for my linux box to cover potential disk failure. What command line shell script / ruby scripts exists/would you recommend for this? The features I'm looking for:

* free/open source
* command line based (noting my redhat server has no monitor/keyboard)
* ruby script (ideally as I understand this), or else shell script if there are more mature scripts
* full backup (i.e. so can use for RESTORE if HDD failure occurs)
* keeps some level of multiple backups (e.g. last nights, 1 week ago, 1 month ago)
* backup to another of my computers (Mac/Windows not sure yet) - hopefully this will just imply a pre-requisite re file sharing via samba
* automated (e.g. via cron or otherwise)

So this may be just some simple linux copy commands kicked off by cron, however the value add would be the backup routine management (e.g. last nights, 1 week ago, 1 month ago etc0.

thanks
 
Old 07-09-2008, 07:55 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well the basic would be to use 'rsync' from 'cron'.
For a more sophisticated approach try amanda.
 
Old 07-09-2008, 08:31 PM   #3
callagga
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
thanks - I guess I was hoping for something in between do-it-yourself with rsynch, and a full blown backup system such as Amanda?

You don't happen to know whether I could just install Amanda on my linux box in order to back itself up?
 
Old 07-10-2008, 01:02 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You could investigate Dar for backups. I've used it for several years without any problems. The tutorial in the package guides you step-by-step in writing the shell script to make the backup, how to make incremental backups, how to list a backup to make sure it's good, and how to restore individual files, directories, or entire backups.
 
Old 07-10-2008, 07:03 AM   #5
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Quote:
Originally Posted by callagga View Post
You don't happen to know whether I could just install Amanda on my linux box in order to back itself up?
Of course.

There is a quick start guide on their wiki in the User Documentation http://wiki.zmanda.com/index.php/User_documentation.

While it is most often used in a network situation with multiple servers and a tape drive or library, it can also be use a disk drive as a "virtual tape drive" and it can send encrypted backups out into the "cloud" using Amazon S3: http://wiki.zmanda.com/index.php/How...p_to_Amazon_S3 and http://www.amazon.com/b?ie=UTF8&node...A36L942TSJ2AJA
 
Old 07-10-2008, 08:44 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by callagga View Post
You don't happen to know whether I could just install Amanda on my linux box in order to back itself up?
I hope the backups will still reside on another server or media right? Really no point in backing up a system only to leave the backed up files on the same system.
 
Old 07-10-2008, 04:31 PM   #7
callagga
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
I basically have:
* linux box (need to back this up)
* MacBook with external HDD

I wanted to backup my linux box to my Mac's external HDD. I was guessing running the backup software on the linux box & pointing it to the Mac might be the way to go?

I was reading up on rsynch. Perhaps rsynch scripts running on the linux box using ssh to get the backup across to the mac would be a good way?

thanks
 
Old 07-10-2008, 08:40 PM   #8
callagga
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
how does rsynch compare to Dar? Is rsynch better/more recent?
 
Old 07-13-2008, 02:04 AM   #9
callagga
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
Hi,

I'm down to two scripts below. If you know of any more well known & tested backup scripts than these can you let me know?

* http://rsnapshot.org/

* HOWTO: Backup nightly via rsync

Thanks
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any automated scripts to run DVD Backups? bweiss Linux - Newbie 3 04-28-2005 09:52 AM
Linux commands in shell scripts james_cwy Linux - Newbie 4 11-10-2003 01:14 AM
shell scripts in linux dopper Linux - Software 3 10-05-2003 05:12 PM
using shell scripts with modem under linux gkrumins Programming 2 06-06-2002 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration