Comment Re:Onsite/Offsite Backup of Data Using Hard Drives (Score 1) 414
I forgot I also use PKZIP and run command level to copy a zip backup directory on a 2nd drive in a Windows machine. I put a datatime on the zip file so I can go back on backup versions. The code that I use with PKZIP is below if you are interested is below.
*********
This command is scheduled with Windows scheduler and changes directory to "c:\data" where the data is..
** backup starts next.... :: Batch program to compress daily backup for storage on CD-R
@echo off
cls :: Create environment variables with today's date values.
setlocal
for /f "tokens=1-4 delims=/ " %%i in ('date /t') do (
set Day=%%i
set MM=%%j
set DD=%%k
set YYYY=%%l
) :: This batch program assumes that your scheduled backup file is saved :: as D:\Backup\Backup.bkf. If you use a different folder or file :: name, replace the values in the following lines.
cd C:\data :: Use PkZIPC nZip Command Line Support to backup
"pkzipc" -add -recurse -path D:/Backup/zip/data/B%YYYY%-%MM%-%DD%.zip *.* :: cls
echo The backup has been compressed and saved as B%YYYY%-%MM%-%DD%.zip.
echo.
goto end :end :: xcopy "c:\Backup\zip\data\*.*" d:\backup\zip\data\*.* /d/e/c/S :: pause
endlocal