.bat file for backup

welcome to the forum,

set RCLONE_CONFIG_PASS=mypass


rclone is not really a backup program, but a fancy file copier.
i think the closet you will get for backups with rclone and dos batch files is:

@for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do set datetime=%%I
@set datetime=%datetime:~0,4%%datetime:~4,2%%datetime:~6,2%.%datetime:~8,2%%datetime:~10,2%%datetime:~12,2%

rclone sync c:\data gdrive:DOCUMENTOS\OFFICE\current --backup-dir=gdrive:DOCUMENTOS\OFFICE\archive\%datetime%

backup programs on windows creates a vss snapshot and uses that as the source.
rclone cannot create vss snapshots and as a result, cannot copy open, in-use files.

i have a how-to guide, using dos batch file, to enable vss snapshots and use that as the source for rclone
https://forum.rclone.org/t/how-to-enable-vss-for-rclone-on-windows/11675