Mailinglist Archive: opensuse (4570 mails)

< Previous Next >
Re: [SLE] Script for locating illegal file names?
  • From: John Summerfield <suse@xxxxxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 28 Nov 2005 21:32:36 +0000 (UTC)
  • Message-id: <Pine.LNX.4.62.0511290520390.562@xxxxxxxxxxx>
On Mon, 28 Nov 2005, david rankin wrote:

> Mates,
>
> I manage my own server with 10 clients. The 'not so intelligent' folks I
> work with have saved file names that cannot be backed up with growisofs,
> etc.., because the file names are too long and violate the Joliet and
> Rock-Ridge conventions. This usually happens when they save web pages and the
> html title gets used as the filename. I need a way to search the sever and
> identify the files that are too long so I can change them without having to
> search manually.
>
> Does anybody know of a tool that will do this?
>
> I have used "growisofs -dry-run ..." to find them one by one, but this is
> quite cumbersome.

growisofs uses mkisofs; you could use mkisofs and not need to insert a DVD.

You could use mkisofs on each user's ~ and maybe find several in one pass.

If these files occur in web browsers' cache directories, you could exclude
those directly: nobody's going to want those restored.

A little more painfully, you could use tar or cpio to create an archive and
burn that to DVD. You can actually burn a tarball to CD or DVD, just as you
would an ISO image. You can't mount it, you read the device node directly to
retrieve its contents.

I personally would look at making a tarball for each user, and an ISO image
containing those. Retrieving individual files is a little more complicated that
just popping the disk into the drive and reading it, but it has advantages
including overcoming your filename problem, (maybe) employing compression.

You could also contemplate a backup server, where you copy users' date
regularly with rsync. Check the rsync home page for Handy Hints.



>
> --
> David C. Rankin, J.D., P.E.
> RANKIN LAW FIRM, PLLC
> 510 Ochiltree Street
> Nacogdoches, Texas 75961
> (936) 715-9333
> (936) 715-9339 fax
> www.rankinlawfirm.com
>

< Previous Next >
References