No worries, the path it sends from matches the snapshots directory configured in dslstats. I have save in daily folders ticked. dslstats generates first snapshot at 5 past midnight and every 24 hours after.
This batch script runs daily in task scheduler 10 minutes past midnight.
You will need to edit paths to winscp, paths to your data, as well as login details for server, also depends how your server is configured, mine supports sftp which it uses as its incredibly fast vs normal ftp.
@echo off
set datefix=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%
xcopy /E /I /C /F /Y D:\BACKUP\dslstats\Snapshots\%DATEFIX% D:\BACKUP\dslstats\snaptemp\%DATEFIX%
"D:\BACKUP\WinSCP\WinSCP.com" ^
/log="D:\BACKUP\WinSCP2.log" /ini=D:\BACKUP\WinSCP\WinSCP.ini ^
/command ^
"open sftp://<USERNAME>:<PASSWORD>@<HOSTNAME>:<PORT>/ -hostkey=<CERTIFICATE HASH> -rawsettings FollowDirectorySymlinks=1 FtpPingType=0 Ftps=3 MinTlsVersion=12" ^
"lcd D:\BACKUP\dslstats\snaptemp" ^
"cd /DSLStatsWeb/Graphs/" ^
"put -transfer=automatic %DATEFIX%" ^
"exit"
rmdir /S /Q D:\BACKUP\dslstats\snaptemp\%DATEFIX%
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)
exit /b %WINSCP_RESULT%