Re: Your backup is unsafe!

Jochen Friedrich (jochen@scram.de)
Tue, 3 Aug 1999 15:35:57 +0200 (CEST)


Hi,

> > You have:
> >
> > "This is a long filename.txt" "THISIS~1.TXT"
> > You make
> > "This is also a long filename.txt" "THISIS~2.TXT"
> >
> > You back up both, deletes both and restore
> > "This is also a long filename.txt"
> >
> > If you don't save the short name with the backup, it will now be called
> > "THISIS~1.TXT", clearly not what you wanted.
>
> Ok, now I get it. But A) you *generally* aren't going to be restoring just
> one and B) if you're using windows and can use the long filename, then the
> short filename probably isn't really going to matter.

This kind of problem happens with all filesystems which are not a simple
UFS-like filesystems but have addtional data which are not saved using
traditional backup programs (i.e. tar, cpio, etc).

One solution is to really add one general ioctl to access these additional
properties on a per-file basis independent of the underlying file system.
Such properties might be the short name for VFAT or lsattr attributes for
EXT2 or even ACLs and attributes for NTFS.

This way, a backup program can ask for additional data for each file
without knowing the detail on the filesystem, the only real problem is
that the properties are not portable across different filesystems.
However, there should always be the option to ignore these properties
during a restore...

Jochen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/