#135984 - 2005-03-2512:37 PMRe: SNAPSHOT - System information backup
NTDOCNTDOC Administrator
Registered: 2000-07-28
Posts: 11628
Loc: CA
Well after someone wrote and complained that the script did not work (turned out they had not installed the WinZip Command Line app as told to), and speaking with Lonkero about the archiving program I rewrote this script to take advantage of the archiving program 7-Zip.
You can download the full GUI version here. Welcome to the 7-Zip Home! another good change in this script is that 7-Zip reduces the overall size of the archive by almost 50% compared to using WinZip and it's FREE to use.
7-Zip is free software distributed under the GNU LGPL
This updated script now does the following:
Checks if user has Admin rights and quits if not
Checks if there is at least 125MB of free space and quits if not
Automatically creates the C:\7ZA\ folder and downloads the 7z command line program 7za415b.exe
Extracts the file 7za415b.exe to the C:\7ZA\ folder
Automatically creates the C:\BACKUP_SYSTEM\ folder
List all files on the system via DIR C:\ /S
Exports the entire Registry to a text file
Copies BOOT.INI, WIN.INI, SYSTEM.INI to the archive
List all running services
net statistics workstation
net statistics server
netstat -a Active Connections
netstat -r Routing Table
nbtstat -S Sessions
net config workstation
proxycfg WinHTTP Default Proxy
Uses 7z command line app with maximum compression and archives all files above into the archive
Alerts the user when there are more then 7 archive files in the folder.
You can use the GUI version of 7z to review the files within the archive. WinRAR can also open this file format.
NOTE: This script has only been tested with KiX32 v4.22 and Windows XP English w/SP2 It has not been tested on Windows 2000 yet, but it should work on 2000 as well.
Sample 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. You must decide how many versions to save and when to delete them yourself.
Backup script start time: 03:21:54
Please wait while we record a listing of all files on the system... Completed recording files and saved to: C:\BACKUP_SYSTEM\2005-03-25_03.21.54_FileListing.txt Please wait while we export the registry to: C:\BACKUP_SYSTEM\2005-03-25_03.21.54_RegistryBackup.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\
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: 03:23:27 Time to complete backup was: 93 seconds Size of backup archive file is: 3,187,429 bytes