LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what's your recommendation re backup scripts (shell or ruby) for linux backups??? (https://www.linuxquestions.org/questions/linux-newbie-8/whats-your-recommendation-re-backup-scripts-shell-or-ruby-for-linux-backups-654721/)

callagga 07-09-2008 07:43 PM

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

chrism01 07-09-2008 07:55 PM

Well the basic would be to use 'rsync' from 'cron'.
For a more sophisticated approach try amanda.

callagga 07-09-2008 08:31 PM

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?

bigrigdriver 07-10-2008 01:02 AM

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.

choogendyk 07-10-2008 07:03 AM

Quote:

Originally Posted by callagga (Post 3209450)
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

trickykid 07-10-2008 08:44 AM

Quote:

Originally Posted by callagga (Post 3209450)
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.

callagga 07-10-2008 04:31 PM

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

callagga 07-10-2008 08:40 PM

how does rsynch compare to Dar? Is rsynch better/more recent?

callagga 07-13-2008 02:04 AM

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


All times are GMT -5. The time now is 06:10 AM.