Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Create an index of backup disks' filenames System 10.4
I've found this quick tip to be useful when creating backup optical discs, or moving data for projects off of my hard drive: Save a text file containing the paths of all the files on the disk with the name of the disc. This is easily done using the find command from the command line.

For example, with a disk named backup-cd-2006-10-19, the Terminal command would look like this:
$ cd /Volumes/backup-cd-2006-10-19/
$ find . > ~/Documents/Backup-Indexes/backup-cd-2006-10-19.txt
Now, any time you do a Spotlight search for the name of a file that happens to be on the disc, your backup index file appears in the results, letting you know to look there, also.
    •    
  • Currently 3.50 / 5
  You rated: 4 / 5 (4 votes cast)
 
[13,144 views]  

10.4: Create an index of backup disks' filenames | 5 comments | Create New Account
Click here to return to the '10.4: Create an index of backup disks' filenames' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Create an index of backup disks' filenames
Authored by: ofermod on Oct 24, '06 07:56:55AM
Using find . -ls gives you the traditional 'long' listing including permissions, filenames, mdate, etc. along with the full path to the filename. Adding a little awk, you can also modify what columns you want to see.

[ Reply to This | # ]
"tree" gives much nicer output.
Authored by: lionel77 on Oct 24, '06 12:36:57PM

I use the command line tool "tree" for this purpose. It produces very nicely formatted output and it is highly customizable.

You can get it through DarwinPorts or fink.



[ Reply to This | # ]
10.4: Create an index of backup disks' filenames
Authored by: rafa espada on Oct 24, '06 08:49:10PM
Is a really cool tip :-D Several weeks tind a free catalog metode!!! I do this applescript to do this
on open x
	repeat with artxibo in x
		set thisInfo to info for artxibo		
		set command to " find /Volumes/" & name of thisInfo & "/ > ~/Documents/CDskatalogs/" & name of thisInfo & ".txt"
	end repeat
	my aldatu(command)
end open

on aldatu(kat)
	tell application "Terminal"
		activate
		do script kata
		quit
	end tell
end aldatu

---
rafa espada

[ Reply to This | # ]

10.4: Create an index of backup disks' filenames
Authored by: rafa espada on Oct 24, '06 11:16:53PM
Sorry... this part was wrong :-(

on aldatu(kata)
	tell application "Terminal"
		activate
		do script kata
		quit
	end tell
end aldatu

---
rafa espada
rafa@espada.info
http://www.rafaespada.com
http://www.caborian.com

[ Reply to This | # ]

What does this script do exactly?
Authored by: alexmathew on Oct 25, '06 10:20:15AM

For some of us that dont use Applescript too often - pray tell us how this script is supposed to work ? Are all the lines in one script?
AM



[ Reply to This | # ]