Skip to content

Instantly share code, notes, and snippets.

@cbmeeks
Created October 19, 2016 14:19
Show Gist options
  • Save cbmeeks/bd6dcbaba62061c5c2d55a1c0d3a7a48 to your computer and use it in GitHub Desktop.
Save cbmeeks/bd6dcbaba62061c5c2d55a1c0d3a7a48 to your computer and use it in GitHub Desktop.
Backup GitHub public repos into folders: YYYY_MM_DD_HHmm
@echo off
rem Create folder that is to the minute in YYYY_MM_DD_HHMM format
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a
set now=%dt:~0,4%_%dt:~4,2%_%dt:~6,2%_%dt:~8,2%%dt:~10,2%
mkdir %now%
chdir %now%
rem Pull down repos
svn export https://github.com/jacgoudsmit/L-Star.git
svn export https://github.com/kencogroup/River-Raid.git
chdir ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment