PC-NFS Backups

Jon Elion jle at cfm.brown.edu
Tue Jul 17 06:48:05 AEST 1990


In v9n248, the question was asked:

> Anybody out there tried using a DOS backup command to backup a local hard
> disk to a PC-NFS disk?  DOS Backup gives you a  warning message about "All
> files in the root directory will be erased".  I'd use XCOPY but I have
> seen it crash when done to a PC-NFS disk.

Here are the batch files I have been using to backup a local PC's hard
disk to a Sun.  The usefulness of this procedure is that the PC files
copied in this fashion are included on the nightly Sun system backups
(multiple Suns backed up onto a single Exabyte tape).

    REM Do a full backup of C: and D: to host HEART-THROB
    del \backup.log
    echo Full back-up of C: > backup.log
    net use k: \\heart-throb\files\applic\backups\c
    attrib -r k:backup\*.*
    rm -r k:backup
    backup c:\*.* k: /s /L:\backup.log
    c:\nfs\chmod 0777 k:*.*
    net use k: /d
    net use k: \\heart-throb\files\applic\backups\d
    attrib -r k:backup\*.*
    rm -r k:backup
    echo Full back-up of D: >> backup.log
    backup d:\*.* k: /s /L:\backup.log
    c:\nfs\chmod 0777 k:*.*
    net use k: /d

    REM Do an incremental backup of C: and D: to host HEART-THROB
    echo Incremental back-up of C: >> backup.log
    net use k: \\heart-throb\files\applic\backups\c
    backup c:\*.* k: /s/a/m /L:\backup.log
    c:\nfs\chmod 0777 k:*.*
    net use k: /d
    net use k: \\heart-throb\files\applic\backups\d
    echo Incremental back-up of D: >> backup.log
    backup d:\*.* k: /s/m/a /L:\backup.log
    c:\nfs\chmod 0777 k:*.*
    net use k: /d

The above batch files result in the following files and directories on
host HEART-THROB (listing produced using ls -lR /files/applic/backups):

    total 1
    drwxrwsrwx  3 root          512 Jul 16 08:28 c/
    drwxrwsrwx  3 root          512 Jul 16 08:51 d/

    /files/applic/backups/c:
    total 1
    drwxrwxrwx  2 jle           512 Jul 16 08:28 backup/

    /files/applic/backups/c/backup:
    total 28596
    -r-xr-xr-x  1 jle      29169510 Jul 16 16:03 backup.001*
    -r-xr-xr-x  1 jle         73465 Jul 16 16:03 control.001*

    /files/applic/backups/d:
    total 1
    drwxrwxrwx  2 jle           512 Jul 16 08:51 backup/

    /files/applic/backups/d/backup:
    total 37370
    -r-xr-xr-x  1 jle      38184300 Jul 16 16:04 backup.001*
    -r-xr-xr-x  1 jle         34459 Jul 16 16:04 control.001*

Jon Elion
jle at cfm.brown.edu



More information about the Comp.sys.sun mailing list