This script requires the program CMDer.
Then go to your CMDer installation path (where the CMDer.exe
is located) and create there the batch script:
backup.bat
REM Enter here the local path where the script should copy the backup to
SET backuplocation = "E:\Dateien\Raspberry Pi Backup"
SET current=%cd%
SET folder=%time:~0,2%-%time:~3,2%-%time:~6,2%_%date%
E:
cd %backuplocation%
mkdir %folder%
REM Change here the network name or the location of your pi you want to backup
scp -r pi@raspberrypi:/home/pi/ %folder%
%current:~0,2%
cd %current%