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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-10-2007, 02:30 PM
|
#1
|
Member
Registered: Nov 2006
Distribution: Debian Testing
Posts: 39
Rep:
|
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
|
|
|
02-10-2007, 06:46 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873
|
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.
|
|
|
02-10-2007, 08:00 PM
|
#3
|
Member
Registered: Nov 2006
Distribution: Debian Testing
Posts: 39
Original Poster
Rep:
|
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?
|
|
|
02-10-2007, 08:39 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
All times are GMT -5. The time now is 10:17 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|