public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cloning a directory hierarchy, but not the content
@ 2011-01-29 13:58 Alex Schuster
  2011-01-29 13:54 ` Etaoin Shrdlu
  2011-01-29 14:39 ` Florian Philipp
  0 siblings, 2 replies; 10+ messages in thread
From: Alex Schuster @ 2011-01-29 13:58 UTC (permalink / raw
  To: gentoo-user

Hi there!

I am currently putting extra backups to old hard drives I do no longer need 
for other purposes. After that I send the putput out ls -lR and du -m to my 
log directory so I can check what files are on which drive without having to 
attach the drive.

Works, though a better method would be to clone the drive's root directory, 
but with all file sizes being zero. This way I can easily navigate the 
directory structure, instead of browsing through the ls-lR file. Is there a 
utility that does this? It would be even better if the files would be 
created as sparse files, faking the original size.  

I just wrote a little script that does this, but it does not do the sparse 
file thing yet, and would have problems with newline in file names. And I 
guess someone already wrote such a utility?

	Wonko



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-01-30  0:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-29 13:58 [gentoo-user] Cloning a directory hierarchy, but not the content Alex Schuster
2011-01-29 13:54 ` Etaoin Shrdlu
2011-01-29 14:27   ` Alex Schuster
2011-01-29 14:36     ` Etaoin Shrdlu
2011-01-29 16:45       ` Alex Schuster
2011-01-29 18:59         ` Etaoin Shrdlu
2011-01-29 23:51           ` Alex Schuster
2011-01-29 14:39 ` Florian Philipp
2011-01-29 19:31   ` Alex Schuster
2011-01-29 21:14     ` Florian Philipp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox