SCRIPT DE BACKUP @echo off for /f “tokens=1-4 delims=/ ” %%i in (“%date%”) do ( set dow=%%i set day=%%j set month=%%k set year=%%l ) set datestr=%year%_%month%_%day%_%dow% echo datestr is %datestr% rem Define a variável horario com o valor da hora set horario=%time% set hh=%horario:~0,2% set mm=%horario:~3,2% set ss=%horario:~6,2% set hora=%hh%_%mm%_%ss% set datestr=%datestr%_%hora% set BACKUP_FILE=”C:BKPALLWPS%datestr%.sql” set
Continue reading Exemplo de script de backup POSTGRES com 7ZIP