Help with setting up .bat file for automatically backing up/syncing gdrive on sftp using win10

What is the problem you are having with rclone?

Trying to set up .bat file for automatically backing up/syncing

  1. remote: gdrive to remote:sftp
    on Windows 10 using task schedular.

Can anyone guide me with this? and if there is a better way to set this up? I want to set up a monthly sync.

Any and all help is really appreciated.

Run the command 'rclone version' and share the full output of the command.

rclone v1.59.2

  • os/version: Microsoft Windows 10 Pro 21H2 (64 bit)
  • os/kernel: 10.0.19044.2006 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.18.6
  • go/linking: static
  • go/tags: cmount

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads

Which cloud storage system are you using? (eg Google Drive)

Google Drive and backing up to inhouse storage using SFTP

hello and welcome tothe forum,

  1. create+test remotes for gdrive and sftp.
  2. create+test the rclone sync command
  3. create a .bat file containing that command.

for .bat file-just

"@echo off
rclone sync source:path dest:path --backup-dir dest:path/Archive/"


save in rclone folder and run it in task schedular?

Should that do it?

yes, but with a few caveats

  1. first, i would test using a very simple command, get that working with task scheduler.
  2. hard code all paths
  3. use a log file.

for example,
c:\path\to\rclone.exe listremotes --log-level=DEBUG --log-file=c:\path\to\log.txt

Thank you! I'll try this out and respond back if I have any other doubts.

Appreciate the help!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.