Skip to content

Instantly share code, notes, and snippets.

@sam452
Forked from anonymous/gist:5207d4c2e7af186a759a
Last active August 29, 2015 14:06
Show Gist options
  • Save sam452/39b406683f6ce158104d to your computer and use it in GitHub Desktop.
Save sam452/39b406683f6ce158104d to your computer and use it in GitHub Desktop.
@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