verati
1
What is the problem you are having with rclone?
Trying to set up .bat file for automatically backing up/syncing
- 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
-->Yes
Which cloud storage system are you using? (eg Google Drive)
Google Drive and backing up to inhouse storage using SFTP
asdffdsa
(jojothehumanmonkey)
2
hello and welcome tothe forum,
- create+test remotes for gdrive and sftp.
- create+test the
rclone sync
command
- create a .bat file containing that command.
verati
3
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?
asdffdsa
(jojothehumanmonkey)
4
yes, but with a few caveats
- first, i would test using a very simple command, get that working with task scheduler.
- hard code all paths
- use a log file.
for example,
c:\path\to\rclone.exe listremotes --log-level=DEBUG --log-file=c:\path\to\log.txt
verati
5
Thank you! I'll try this out and respond back if I have any other doubts.
Appreciate the help!
system
(system)
Closed
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.