Re: Backing Up Entire PC
Posted: Sun Dec 28, 2025 4:29 pm
Thanks to all of the sage advice I have received here to write the scripts that will automate my specific backup needs, I have been successful in backing up my complete PC system with Terabyte. Still on the trial package, I plan to purchase this software just after the first of the year! Since I struggled a bit to get where I am today, I would like to post my scripts here with the hope that it will be able to help others to help getting their backups going quicker and without fail.
I have three scripts (one for each hard drive I am backing up) that are triggered by a fourth script. The destination drive is my S: DRIVE, a conventional internal SATA drive mounted in an external USB 3 caddy.
The first script backs up a USB 3 flash drive permanently attached to my PC, entitled BBACKUPTOS:
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /wait /b /d:w9 /f:"S:\Backup-w9-B DRIVE-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /v /comp:22 /ckfs
The second script backs up a conventional internal SATA data drive, entitled DBACKUPTOS.cmd:
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /wait /b /d:w1 /f:"S:\Backup-w1-D DRIVE-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /v /comp:22 /ckfs
The third script backs up an SSD internal SATA data drive (my boot drive), entitled CBACKUPTOS.cmd:
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /wait /b /d:w2 /f:"S:\Backup-w2-C DRIVE-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /v /comp:22 /ckfs /rb:8
Please note that CBACKUPTOS.cmd ends with /rb:8, which tells the PC to shut down after this script completes.
The script that commands the order that my hard drives are backed up is entitled BACKUPTOS.cmd:
CD /d %~dp0
call "BBACKUPTOS.cmd"
CD /d %~dp0
call "DBACKUPTOS.cmd"
CD /d %~dp0
call "CBACKUPTOS.cmd"
So if I run BACKUPTOS.cmd, my PC backs up B, D and C drives that order and then shuts down the PC. These are full image backups that use the ZSTD-Fast compression algorithm, are validated, and send me an email after each script completes (letting me know success or failure).
***CAVEAT*** I first tried backing up B, C and D, in that order, but for some reason my PC wanted to back up B, D and C, which caused the PC to shut down after the second backup! I don't know what caused the PC to disobey the command in the BACKUPTOS.cmd file, but when I changed the file back to where it is now it ran just fine.
Comments? Questions?
THANKS AGAIN TO EVERYOJNE THAT HELPED ME AUTOMATE MY BACKUPS USING TERABYTE!!
I have three scripts (one for each hard drive I am backing up) that are triggered by a fourth script. The destination drive is my S: DRIVE, a conventional internal SATA drive mounted in an external USB 3 caddy.
The first script backs up a USB 3 flash drive permanently attached to my PC, entitled BBACKUPTOS:
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /wait /b /d:w9 /f:"S:\Backup-w9-B DRIVE-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /v /comp:22 /ckfs
The second script backs up a conventional internal SATA data drive, entitled DBACKUPTOS.cmd:
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /wait /b /d:w1 /f:"S:\Backup-w1-D DRIVE-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /v /comp:22 /ckfs
The third script backs up an SSD internal SATA data drive (my boot drive), entitled CBACKUPTOS.cmd:
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /wait /b /d:w2 /f:"S:\Backup-w2-C DRIVE-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /v /comp:22 /ckfs /rb:8
Please note that CBACKUPTOS.cmd ends with /rb:8, which tells the PC to shut down after this script completes.
The script that commands the order that my hard drives are backed up is entitled BACKUPTOS.cmd:
CD /d %~dp0
call "BBACKUPTOS.cmd"
CD /d %~dp0
call "DBACKUPTOS.cmd"
CD /d %~dp0
call "CBACKUPTOS.cmd"
So if I run BACKUPTOS.cmd, my PC backs up B, D and C drives that order and then shuts down the PC. These are full image backups that use the ZSTD-Fast compression algorithm, are validated, and send me an email after each script completes (letting me know success or failure).
***CAVEAT*** I first tried backing up B, C and D, in that order, but for some reason my PC wanted to back up B, D and C, which caused the PC to shut down after the second backup! I don't know what caused the PC to disobey the command in the BACKUPTOS.cmd file, but when I changed the file back to where it is now it ran just fine.
Comments? Questions?
THANKS AGAIN TO EVERYOJNE THAT HELPED ME AUTOMATE MY BACKUPS USING TERABYTE!!