What is the problem you are having with rclone?
I would like to use rclone bisync to sync Google docs only to my local drive. I'm exporting Google docs as .link.html files. The first run is fine, but when I move locally the .link.html files, the next bisync run delete the google doc file from the original google drive location, and create a .link.html file on google drive in the destination location.
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.0
- os/version: arch (64 bit)
- os/kernel: 6.6.7-zen1-1-zen (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.4
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone bisync /home/user/ google_drive: --filter-from filter.txt --verbose --progress
the filter file looks like this:
# exclude hidden folders and files from home dir
- /.**
# sync only google docs
+ *.link.html
# exclude everything else
- *
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[google_drive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
export_formats = link.html
skip_gdocs = false
A log from the command that you were trying to run with the -vv
flag
2023/12/16 19:34:56 NOTICE: bisync is EXPERIMENTAL. Don't use in production!
2023/12/16 19:34:56 INFO : Synching Path1 "/home/user/" with Path2 "google_drive:/"
2023/12/16 19:34:56 INFO : Path1 checking for diffs
2023/12/16 19:34:56 INFO : - Path1 File was deleted - file.link.html
2023/12/16 19:34:56 INFO : - Path1 File is new - destination/file.link.html
2023/12/16 19:34:56 INFO : Path1: 2 changes: 1 new, 0 newer, 0 older, 1 deleted
2023/12/16 19:34:56 INFO : Path2 checking for diffs
2023/12/16 19:35:27 INFO : Applying changes
2023/12/16 19:35:27 INFO : - Path2 Queue delete - google_drive:/file.link.html
2023/12/16 19:35:27 INFO : - Path1 Queue copy to Path2 - google_drive:/destination/file.link.html
2023/12/16 19:35:27 INFO : - Path1 Do queued copies to - Path2
2023/12/16 19:35:30 INFO : destination/file.link.html: Copied (new)
2023/12/16 19:35:30 INFO : - Do queued deletes on - Path2
2023/12/16 19:35:32 INFO : file.link.html: Deleted
2023/12/16 19:35:32 INFO : Updating listings
2023/12/16 19:36:07 INFO : Validating listings for Path1 "/home/user/" vs Path2 "google_drive:/"
2023/12/16 19:36:07 INFO : Bisync successful
Transferred: 397 B / 397 B, 100%, 5 B/s, ETA 0s
Checks: 1 / 1, 100%
Deleted: 1 (files), 0 (dirs)
Transferred: 1 / 1, 100%
Elapsed time: 1m11.8s
2023/12/16 19:36:07 INFO :
Transferred: 397 B / 397 B, 100%, 5 B/s, ETA 0s
Checks: 1 / 1, 100%
Deleted: 1 (files), 0 (dirs)
Transferred: 1 / 1, 100%
Elapsed time: 1m11.8s