LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-06-2003, 01:59 PM   #1
system
Member
 
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104

Rep: Reputation: 15
I'm developing an Advanced Backup Script. Any interest?


I've been slowly improving a shell script I wrote to make backups because I have never found anything that fits my situation..

My situation:
I have a RAID array with 6 top level directories that I want to be able to back up indepentantly of each other. That counts dump out right there..

I need multiple volumes of a given size. Tar does multi-volumes, but is terrible in implementation as it is still tape oriented.. My original script simply numbered multi-volume output of tar.

I need the archive prog to avoid duplicate files.. EG: incremental backups. I originally did this by using the mod time, but this is not a cure all.

I have a second machine that may copy files onto the RAID array. It's unix based, so the mod time may be before the last backup date. Thus, if I relied on modtime, the file wouldn't get backed up.

My solution:

I have a shell script that currently parses the command line, and uses tar to generate numbered multivolume archives of arbitrary length. It generates two "find ./" of the directory to be backed up, one for directories and one for files and includes that in the backup. Currently it uses modtime to detect which files to backup, however I'm going to change that.

I am changing it so that a text file listing mod time, file size, and name is maintained. It indicates the contents of each backup file created as well as the current file system contents.

The idea of this file is that, if the file system is to be restored, the current status can be used to delete files that were backed up but no longer present. Also, it can be used to quickly locate any backed up file. One advantage here is that if I download a file, back it up, and later delete it, I will be able to easily check to see if I accidently dled it again so that I can avoid duplication. Also, by comparing exact file sizes, I can easily generate lists of possible duplicate files with differing names.

All of this is done using bash scripting. Might there be any public desire for such a tool if I polished it abit for general useage? If so, I could list it on freshmeat or something.
 
  


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
backup script nitaish Linux - General 1 04-22-2005 11:31 AM
Script Backup Buto Linux - General 2 10-18-2004 05:56 PM
Need help in developing a script ostech Linux - General 2 04-22-2004 09:24 AM
Backup Script imsajjadali Linux - General 7 01-28-2004 03:30 PM
backup script ixion Linux - Software 2 01-09-2003 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:42 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