[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: directories->files



Paul Clark <prclark@callnet0800.com> wrote:
>I have just discovered after an extraction from a back up tar.gz
>archive that some of my directories have turned into files.
>
>They look the right size for the old directories but I can't cd into
>them. Is there a way to tell the system these files are in fact
>directories?
>
>Oh yes. They all appear to be directories that had other links to
>them.

You had hard links to directories?

All the files should still be in the .tar.gz (check what 'tar tzvf
backup.tar.gz' says), so maybe you can create the directories manually
and use some appropriate set of --exclude options if necessary.

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: