LFN alias script available

From: Andrew Aronoff (ntbugtraq.sub_at_AARONOFF.COM)
Date: 04/27/04

  • Next message: Kim, Cameron: "MS04-11, SSL, and ISA Server"
    Date:         Tue, 27 Apr 2004 22:10:44 +0200
    To: NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM
    
    

    Hello,

    The DAT drive on our LAN performs routine backups. In case of hardware
    failure, any O/S installed under FAT16/32 can be readily restored.
    However, my incredulity has never ceased regarding the inability of a
    backup drive to restore short file names (SFNs), a.k.a. 8.3 file names
    or "aliases". Aliases are frequently stored in the registry and
    restoration of a file system component with the wrong alias can be
    fatal to program function.

    I wrote a script that, at least, records all potentially conflicting
    *folder* aliases to a file which is made part of the backup set. If
    the system is restored, the file can be used to reset the aliases
    manually once Windows is started up on the client.

    I also wanted to script the renaming of the aliases, but that proved
    to be too daunting a task. The normal restore procedure would be to
    restore the folders & files first to a network drive, change the
    folder aliases to correspond to what existed on the client when it was
    backed up, save the LFNs to a file, copy the folders & files via their
    SFNs to the client over a DOS LAN connection, and restore the LFNs on
    the client. However, SFN-naming rules are not identical for all MS
    O/S's, so that aliases created under W98/NT4 cannot be reliably
    recreated under W2K/WXP.

    I'm amazed by all of the following:

    1. MS allows SFN's to be used in the registry. There is no obvious
       reason for this. Windows could restrict data stored in keys and
       values to LFNs but return only SFNs when they were queried.

    2. MS doesn't have any way to assign an alias to an LFN when
       restoring a system.

    3. AFAIK, no backup software vendor has ever addressed this
       problem. At *least* they could compare restored aliases to the
       values present when the backup took place and signal discrepancies.

    4. AFAIK, no third party tool is available to address this problem.

    I'd be happy to make available a copy of the alias script ("CYA" =
    "Confound Your Alias") to anyone that asks. It was written in VBScript
    5.6 and tested under W2K SP4 & W98.

    regards, Andy

    -----
    Earn up to 10 credit course hours toward the TruSecure ICSA Practitioner (TICSA) Credential and receive a TICSA exam coupon by attending the Infosecurity Canada 2004 conference. Featured speaker, Marcus J. Ranum, TruSecure inventor of the proxy firewall will present on June 3 at 11:30 AM. Visit <https://ticsa.trusecure.com> for certification details and <http://www.infosecuritycanada.com> for conference information. Become TICSA certified and see what happens!
    -----


  • Next message: Kim, Cameron: "MS04-11, SSL, and ISA Server"

    Relevant Pages

    • Backup and Restore Files
      ... What is the best way to backup and restore a runtime database file? ... pszDisplayName As String ...
      (microsoft.public.access.gettingstarted)
    • Re: [opensuse] About Backing Up
      ... there is a data failure we can restore. ... the restoration is to get the backup file that we first complete as it ... failure, physical destruction, or it has been half inched. ... Other data should be archived to media. ...
      (SuSE)
    • Re: Exchange in Recovery Mode
      ... On the backup SBS server, did you restore Mailbox Store from backup ... After Mailbox Store was restored, ... Create a Recovery Storage Group. ... Restore the backup to Recovery Storage Group with NTbackup. ...
      (microsoft.public.windows.server.sbs)
    • Re: BACKUP weirdness
      ... This is really not good with a system disk (where aliases are heavily used). ... then BACKUP just dumps all the files in the Master File Directory. ... Can someone tell me how to restore these files into their correct ... $ RENAME SYSCOMMON.DIR SYSCOMMON_OLD.DIR ...
      (comp.os.vms)
    • Re: RAID, SCHMAID.......
      ... And risky to change it later without a full image backup. ... partition, & then restore only the OS, but still verydoable. ... partition before an install of something you havent installed before, ... but so many ppl make a mess of things esp with today's big drives. ...
      (comp.sys.ibm.pc.hardware.storage)