RabbieBurns Posted January 8, 2009 Posted January 8, 2009 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.
RabbieBurns Posted November 20, 2009 Author Posted November 20, 2009 Im glad i posted this here.. Saves me rewriting from scratch
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now