LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-10-2007, 02:30 PM   #1
szim90
Member
 
Registered: Nov 2006
Distribution: Debian Testing
Posts: 39

Rep: Reputation: 15
Compare files in specific directory to files on CD


Hi. For a while, I have been creating simple backups by copying important folders in my home directory to CDs. However, I now have accumulated about 15 CDs and I am starting to find it difficult to track which specific files have been backed up (although the individual files backed up have not been edited, there have been new files and folders added). Is it possible to insert a CD, write a list of the files on the CD to a file, switch CDs, append the names of those files to the list, and once finished, generate a list of files in my home directory and use some program to show the files that are missing on the backups.

Thank you for any help,
Sean
 
Old 02-10-2007, 06:46 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Hopefully you have been using CD-RW disks so that you can start to reuse them.

You may want to start using some kind of backup software. Kdar might be a good application for making your backups. It seems to bridge the gap between the very primitive backup utilities and the enterprise level application suites.

Backup software will generally put all of your files into one compressed archive file so you wouldn't be able to directly read your files from your CDs.

Last edited by stress_junkie; 02-10-2007 at 06:49 PM.
 
Old 02-10-2007, 08:00 PM   #3
szim90
Member
 
Registered: Nov 2006
Distribution: Debian Testing
Posts: 39

Original Poster
Rep: Reputation: 15
I have been using DVD-R disks (not rewritable) to backup the data. Would you recommend just making new backups?

The reason I backed up individual files instead of using a backup program was because I need the disks to be accessible on my mac and my linux system. I agree, though, that using backup software would probably make this much easier. I heard that tar can make multi-part archives, can make incremental backups, and comes with mac. Would tar be a good choice of backup software? Is it easy to use?
 
Old 02-10-2007, 08:39 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You can use md5sums to generate a list of filenames and md5sums.

Backup programs usually use the timestamp to determine if a file is altered. A program like kdar would allow you to make an incremental backup. This will use the kdar catalog and timestamps to determine whether a file is altered and needs to be backed up.

Using md5sums is a method of verifying that a file hasn't been altered. For example, you could produce a file containing the md5sums of system files in /bin and /sbin, and then when offline verify that the files have not been modified.

At work, I backup mpeg2 commercial files. I backup the files after encoding to a DVD. I created a small script that reads the directory of a DVD and creates a tab separated list of files and dates. Then I run a second script that merges all of the catalog files, sorts them by filename and uses enscript and ps2pdf to produce a pdf catalog of all of the spots that have been backed up. Then if someone wants to look at a spot that was backed up, they just need to open the catalog in acroread to find out which disk the file was backed up to.

The encoder runs on windows, so I installed cygwin to be able to run bash scripts to do this sort of thing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to install all software files to a specific directory? sepehre Linux - Software 4 08-01-2006 09:38 PM
copy specific files with directory stucture rincewind Linux - Software 1 06-22-2006 07:58 AM
Remove ALL files from specific Directory bianchi Programming 9 11-23-2005 11:27 PM
How do I compare 2 files? linuxhippy Slackware 6 03-26-2005 01:54 AM
How to do recursive file copy of directory for specific files? Arodef Linux - Newbie 4 06-29-2004 05:35 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration