Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Just made this and thought I'd post it in case anyone found any use for it.

 

Backs up a drive to a rar archive, and appends the current date and time to the filename. Requires the rar archiver cli util to be in PATH or with the batch file.

 

@echo off
REM Script to backup the share to a date/time stamped archive
REM By R.R
cls
set year=%date:~6,4%
set yr=%date:~8,2%
set month=%date:~3,2%
set day=%date:~0,2%
set hour=%time:~0,2%
set hour=%hour: =0%
set min=%time:~3,2%
set sec=%time:~6,2%

echo Backing up ...
rar a -r backup[%day%%month%%yr%-%hour%%min%].rar r:\*.*

 

creates a file like : backup[080109-1443].rar

 

Dunno if someones already made something like this but thought I'd just fire it up here anyway.

  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...