7z backup script with time stamp

7z backup script with a timestamp





@ECHO OFF
SET hr=%time:~0,2%
IF %hr% lss 10 SET hr=0%hr:~1,1%



Set TODAY=%date:~-7,2%-%date:~-10,2%-%date:~-4,4%-%hr%%time:~3,2%%time:~6,2%



ECHO.

ECHO Compressing files or folders in SourceFolder and backup to BackupFolder with timestamp
ECHO.

7za.exe a -tzip "C:\BackupFolder\Backup-%TODAY%.zip" "C:\SourceFolder\*.*" -mx5


ECHO.

Comments

Popular posts from this blog

Extracting and using a modified VMWare Player BIOS or UEFI firmware

Activate Synology Active Backup for Business for DSM 6

Windows 11 internet/account bypass