#135983 - 2005-03-2009:27 AMSNAPSHOT - System information backup
NTDOCNTDOC Administrator
Registered: 2000-07-28
Posts: 11628
Loc: CA
NOTE:!!! Please see the last script posting for the most up to date version of the script.
SNAPSHOT.KIX
I was contacted to help someone repair their system that had run an automated CHKDSK when they had rebooted their system. Apparently the system had a corrupted system file but the entry in the Event viewer did not tell you which file and there was no data in the .CHK file that was helpful enough to tell you what happened. Yes there are tools out there that do this already, but thought I'd whip this up in KiXtart and WinZip to create backups that can later be used with a difference tool to quickly locate and correct the problem.
This script will backup important files on your system in order to help you determine what might have changed from one point to another in order to help you more quickly repair your system in the event something were to go wrong at some point in time. It is sort of a before and after SNAPSHOT of your system. You must have Administrative rights to fully use properly. In order to be the most helpful it is advisable to run this daily and then burn a copy of the archive files to CD/DVD at least once per month and then delete all the old backups except the main one and start the process all over again.
This script requires the following software in order to function properly
KiXtart 4.23 Download KiXtart and extract KIX32.EXE and WKIX32.EXE to your C:\WINDOWS\SYSTEM32 folder so they are available via the path at all times.
WinZip Command Line NOTES: -ee = extra (enhanced deflate - smallest file) -r = Recurse into subfolders (include subfolders). This option requires the -p or -P option. -p|P= Store folder names. A lower case p stores only the names of folders recursed (subfolders included) via the -r option, while an upper case P stores all folder information specified on the command line
Example: wzzip.exe -rp Would only contain the child folder names wzzip.exe -rP Would contain the FULL path and child folder names
Example output
Warning! Each run of this backup will temporarily consume up to 100MB of diskspace or more. Once completed the final size will be between 5 to 10MB of diskspace per run. After 7 days the main archive will be renamed and a new one started. You must decide how many versions to save and when to delete them yourself. Press CTRL-C now to abort, otherwise press any other key to continue...
Backup script start time: 01:28:39
Please wait while we record a listing of all files on the system... Completed recording files and saved to: C:\BACKUP_SYSTEM\2005-03-20_01.28.38_FileListing.txt Please wait while we export the registry to: C:\BACKUP_SYSTEM\2005-03-20_01.28.38_RegBackup.txt Completed export of the registry Please wait while we copy other important files to: C:\BACKUP_SYSTEM\
Completed copying files to C:\BACKUP_SYSTEM\ Please wait while we archive all the backup files in C:\BACKUP_SYSTEM\
WinZip(R) Command Line Support Add-On Version 1.1 SR-1 (Build 6224) Copyright (c) WinZip Computing, Inc. 1991-2004 - All Rights Reserved
The backup file will be renamed once it reaches over 7 days old. Age of backup file 0
Completed all backup routines. Backup script end time: 01:29:15 Time to complete backup was: 37 seconds Size of backup archive file is: 6,216,712 bytes Press a key to continue...