Created
September 25, 2014 19:31
-
-
Save anonymous/5207d4c2e7af186a759a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd f:\ | |
ECHO "moved" | |
ECHO "think I got the capture" | |
for /f "tokens=2-8 delims=.:/ " %%a in ("%date% %time%") do set Timestamp=%%c-%%a-%%b_%%d-%%e-%%f | |
ECHO %Timestamp% | |
for /f "tokens=1-8 delims=&" %%a in ('heroku pgbackups:url --app gw-inspector') do @set this_url=%%a | |
for /f "tokens=2 delims=&" %%b in ('heroku pgbackups:url --app gw-inspector') do @set b_url=%%b | |
for /f "tokens=3 delims=&" %%c in ('heroku pgbackups:url --app gw-inspector') do @set c_url=%%c | |
ECHO "%this_url%" | |
ECHO "%b_url%" | |
REM tim="EXPIRES" | |
ECHO "%c_url%" | |
set alpha="%this_url%&%c_url%&%b_url%" | |
ECHO %alpha% | |
set bbeta="%alpha%&%tim%" | |
REM %bbeta% | |
REM "%this_url%" & "%b_url%" & "%c_url%" | |
REM ECHO "%this_url%&%b_url%&%c_url%" | |
set targetdir="\\GWMS009SQL08R2\SourceControl\bakups_PostgresSql\%Timestamp%" | |
REM echo %targetdir% | |
REM curl -v --insecure -o %targetdir% -L %this_url% | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment