Tel Winrar -
@echo off set DATE=%date:~-4,4%%date:~-10,2%%date:~-7,2% rar a -r -m5 -agYYYYMMDD "D:\Backups\server_backup_.rar" "C:\ImportantData" echo Backup completed on %DATE% pause
On Linux, you can run the Windows rar.exe via Wine: tel winrar
curl -L -o winrar-x64.exe "https://www.win-rar.com/fileadmin/winrar-versions/winrar/winrar-x64-621.exe" @echo off set DATE=%date:~-4