What is the problem you are having with rclone?
I've been running bisync via a cronjob @ 1/min to keep a local drive (glusterfs backing for a docker swarm) and a google drive in sync. It's worked fine for the most part, within the confines of the known limitations. Today I discovered however that there's been a file that has not been synced for 4 days, even though other files were synced during that time. I was tweaking my filter lists so needing to run with --resync, and that's how I found it. There was no error
Run the command 'rclone version' and share the full output of the command.
docker run --entrypoint "/usr/local/bin/rclone" -it --rm vtcifer/bisyncd:latest version
rclone v1.63.1
- os/version: alpine 3.18.2 (64 bit)
- os/kernel: 6.1.21-v8+ (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.20.6
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Googld Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
bisync gdrive:lichswarm /data/lichswarm
--workdir /cache
--verbose
--filter-from /filter-from-list.txt
--log-file /logs/bisyncd/bisyncd.log
The rclone config contents with secrets removed.
[gdrive]
type = drive
client_id = [redacted]
client_secret = [redacted]
scope = drive
token = {"access_token":"[redacted]","token_type":"Bearer","refresh_token":"[redacted]","expiry":"2023-08-22T11:59:49.148858517-04:00"}
team_drive =
A log from the command with the -vv
flag
I don't have a -vv I usually just run with -v. I've taken down the docker container that was running my sync process unfortunately so I'm a bit limited on what I can grab at this point.
This is my filter list:
# ignore all git repos files
- .git/**
# ignore all github specific files
- .github/**
# don't sync lich logs or debug logs
- logs/**
- temp/**
# don't sync samples
- scripts/profiles/Samples/**
# don't sync sqlite3 db or journal files, can cause issues
- data/*.db3
- data/*.db3-journal
# ignore dot files
- .*
Here's a screenshot of the file version history from my google drive:
Last modified / file details from the local system:
$ ll delay-script.lic
-rw-r--r-- 1 pi pi 873 Aug 18 11:56 delay-script.lic
Last modified / file details from a windows box (syncing using official google drive software) via WSL:
┌──(user㉿host)-[/mnt/g/My Drive/lichswarm/scripts/custom]
└─$ ll delay-script.lic
-rwxrwxrwx 0 user user 872 Aug 18 12:53 delay-script.lic
log of last successful sync:
2023/08/18 11:57:01 NOTICE: bisync is EXPERIMENTAL. Don't use in production!
2023/08/18 11:57:03 INFO : Synching Path1 "gdrive:lichswarm/" with Path2 "/data/lichswarm/"
2023/08/18 11:57:03 INFO : Path1 checking for diffs
2023/08/18 11:57:25 INFO : - Path1 File is newer - scripts/custom/delay-script.lic
2023/08/18 11:57:25 INFO : Path1: 1 changes: 0 new, 1 newer, 0 older, 0 deleted
2023/08/18 11:57:25 INFO : Path2 checking for diffs
2023/08/18 11:57:51 INFO : Applying changes
2023/08/18 11:57:51 INFO : - Path1 Queue copy to Path2 - /data/lichswarm/scripts/custom/delay-script.lic
2023/08/18 11:57:51 INFO : - Path1 Do queued copies to - Path2
2023/08/18 11:57:52 INFO : scripts/custom/delay-script.lic: Copied (replaced existing)
2023/08/18 11:57:52 INFO : Updating listings
2023/08/18 11:58:02 INFO :
Transferred: 873 B / 873 B, 100%, 96 B/s, ETA 0s
Checks: 1 / 1, 100%
Transferred: 1 / 1, 100%
Elapsed time: 1m1.6s
2023/08/18 11:58:24 INFO : Validating listings for Path1 "gdrive:lichswarm/" vs Path2 "/data/lichswarm/"
2023/08/18 11:58:25 INFO : Bisync successful
2023/08/18 11:58:25 INFO :
Transferred: 873 B / 873 B, 100%, 19 B/s, ETA 0s
Checks: 1 / 1, 100%
Transferred: 1 / 1, 100%
Elapsed time: 1m24.7s
next couple calls to bisync not picking up on that file changing, but picking up others
2023/08/18 12:53:01 NOTICE: bisync is EXPERIMENTAL. Don't use in production!
2023/08/18 12:53:01 INFO : Synching Path1 "gdrive:lichswarm/" with Path2 "/data/lichswarm/"
2023/08/18 12:53:01 INFO : Path1 checking for diffs
2023/08/18 12:53:23 INFO : - Path1 File is newer - scripts/custom/watchdog.lic
2023/08/18 12:53:23 INFO : Path1: 1 changes: 0 new, 1 newer, 0 older, 0 deleted
2023/08/18 12:53:23 INFO : Path2 checking for diffs
2023/08/18 12:53:58 INFO : - Path2 File is newer - echo_log_room.txt
2023/08/18 12:53:58 INFO : Path2: 1 changes: 0 new, 1 newer, 0 older, 0 deleted
2023/08/18 12:53:58 INFO : Applying changes
2023/08/18 12:53:58 INFO : - Path1 Queue copy to Path2 - /data/lichswarm/scripts/custom/watchdog.lic
2023/08/18 12:53:58 INFO : - Path2 Queue copy to Path1 - gdrive:lichswarm/echo_log_room.txt
2023/08/18 12:53:58 INFO : - Path2 Do queued copies to - Path1
2023/08/18 12:53:59 INFO : echo_log_room.txt: Copied (replaced existing)
2023/08/18 12:53:59 INFO : - Path1 Do queued copies to - Path2
2023/08/18 12:54:01 INFO :
Transferred: 2.691 KiB / 4.931 KiB, 55%, 1.345 KiB/s, ETA 1s
Checks: 2 / 2, 100%
Transferred: 1 / 2, 50%
Elapsed time: 1m0.6s
Transferring:
* scripts/custom/watchdog.lic: 0% /2.239Ki, 0/s, -
2023/08/18 12:54:01 INFO : scripts/custom/watchdog.lic: Copied (replaced existing)
2023/08/18 12:54:01 INFO : Updating listings
2023/08/18 12:55:01 INFO :
Transferred: 4.931 KiB / 4.931 KiB, 100%, 17 B/s, ETA 0s
Checks: 2 / 2, 100%
Transferred: 2 / 2, 100%
Elapsed time: 2m0.6s
2023/08/18 12:56:01 INFO :
Transferred: 4.931 KiB / 4.931 KiB, 100%, 17 B/s, ETA 0s
Checks: 2 / 2, 100%
Transferred: 2 / 2, 100%
Elapsed time: 3m0.6s
2023/08/18 12:56:14 INFO : Validating listings for Path1 "gdrive:lichswarm/" vs Path2 "/data/lichswarm/"
2023/08/18 12:56:14 INFO : Bisync successful
2023/08/18 12:56:15 INFO :
Transferred: 4.931 KiB / 4.931 KiB, 100%, 17 B/s, ETA 0s
Checks: 2 / 2, 100%
Transferred: 2 / 2, 100%
Elapsed time: 3m14.1s
2023/08/18 12:57:00 NOTICE: bisync is EXPERIMENTAL. Don't use in production!
2023/08/18 12:57:01 INFO : Synching Path1 "gdrive:lichswarm/" with Path2 "/data/lichswarm/"
2023/08/18 12:57:01 INFO : Path1 checking for diffs
2023/08/18 12:57:22 INFO : Path2 checking for diffs
2023/08/18 12:57:54 INFO : - Path2 File is newer - echo_log_room.txt
2023/08/18 12:57:54 INFO : Path2: 1 changes: 0 new, 1 newer, 0 older, 0 deleted
2023/08/18 12:57:54 INFO : Applying changes
2023/08/18 12:57:54 INFO : - Path2 Queue copy to Path1 - gdrive:lichswarm/echo_log_room.txt
2023/08/18 12:57:54 INFO : - Path2 Do queued copies to - Path1
2023/08/18 12:57:56 INFO : echo_log_room.txt: Copied (replaced existing)
2023/08/18 12:57:56 INFO : Updating listings
2023/08/18 12:58:00 INFO :
Transferred: 5.711 KiB / 5.711 KiB, 100%, 1.142 KiB/s, ETA 0s
Checks: 1 / 1, 100%
Transferred: 1 / 1, 100%
Elapsed time: 1m0.6s
2023/08/18 12:58:18 INFO : Validating listings for Path1 "gdrive:lichswarm/" vs Path2 "/data/lichswarm/"
2023/08/18 12:58:18 INFO : Bisync successful
2023/08/18 12:58:18 INFO :
Transferred: 5.711 KiB / 5.711 KiB, 100%, 232 B/s, ETA 0s
Checks: 1 / 1, 100%
Transferred: 1 / 1, 100%
Elapsed time: 1m18.1s
Output of trying to resync, where I caught the fact that this file wasn't synced.
$ docker run \
--rm \
--name bisyncd \
--init \
--volume /mnt/gfs/lich/.config/rclone:/config/rclone \
--volume /mnt/gfs/lich/.cache:/cache \
--volume /mnt/gfs/lich/data:/data \
--volume /mnt/gfs/lich/swarm/drs/utils/hooks/bisyncd/filter-from-list.txt:/filter-from-list.txt \
--volume /mnt/gfs/lich/swarm/drs/utils/hooks/bisyncd/crontabs:/crontabs \
--volume /mnt/gfs/lich/logs/bisyncd:/logs \
--user $(id -u):$(id -g) \
--env-file /mnt/gfs/lich/swarm/drs/utils/hooks/bisyncd/env.list \
--stop-timeout 90 \
rclone/rclone bisync gdrive:lichswarm /data/lichswarm \
--workdir /cache \
--verbose \
--filter-from /filter-from-list.txt \
--resync \
--dry-run
2023/08/22 14:06:43 NOTICE: bisync is EXPERIMENTAL. Don't use in production!
2023/08/22 14:06:43 INFO : Synching Path1 "gdrive:lichswarm/" with Path2 "/data/lichswarm/"
2023/08/22 14:06:43 INFO : Copying unique Path2 files to Path1
2023/08/22 14:07:43 NOTICE:
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 1m1.4s
2023/08/22 14:08:01 INFO : Resynching Path1 to Path2
2023/08/22 14:08:03 NOTICE: scripts/custom/delay-script.lic: Skipped copy as --dry-run is set (size 872)
2023/08/22 14:08:03 NOTICE: data/DRF/Vivid: Skipped remove directory as --dry-run is set
2023/08/22 14:08:03 NOTICE: data/DRF/Viscous: Skipped remove directory as --dry-run is set
2023/08/22 14:08:03 NOTICE: data/DRF/Vengeful: Skipped remove directory as --dry-run is set
2023/08/22 14:08:03 INFO : Resync updating listings
2023/08/22 14:08:43 NOTICE:
Transferred: 872 B / 872 B, 100%, 11 B/s, ETA 0s
Checks: 748 / 748, 100%
Deleted: 0 (files), 3 (dirs)
Transferred: 1 / 1, 100%
Elapsed time: 2m1.4s
2023/08/22 14:09:00 INFO : Bisync successful
2023/08/22 14:09:00 NOTICE:
Transferred: 872 B / 872 B, 100%, 3 B/s, ETA 0s
Checks: 748 / 748, 100%
Deleted: 0 (files), 3 (dirs)
Transferred: 1 / 1, 100%
Elapsed time: 2m18.4s
grep of logs from 18th-21st + today
$ grep -Fie "delay" bisyncd.log.20230818 bisyncd.log.20230819 bisyncd.log.20230820 bisyncd.log.20230821 bisyncd.log
bisyncd.log.20230818:2023/08/18 11:42:23 INFO : - Path1 File is new - scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:42:55 INFO : - Path1 Queue copy to Path2 - /data/lichswarm/scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:42:56 INFO : scripts/custom/delay-script.lic: Copied (new)
bisyncd.log.20230818:2023/08/18 11:46:23 INFO : - Path1 File is newer - scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:46:58 INFO : - Path1 Queue copy to Path2 - /data/lichswarm/scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:47:00 INFO : scripts/custom/delay-script.lic: Copied (replaced existing)
bisyncd.log.20230818:2023/08/18 11:48:22 INFO : - Path1 File is newer - scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:48:54 INFO : - Path1 Queue copy to Path2 - /data/lichswarm/scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:48:56 INFO : scripts/custom/delay-script.lic: Copied (replaced existing)
bisyncd.log.20230818:2023/08/18 11:52:34 INFO : - Path1 File is newer - scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:53:06 INFO : - Path1 Queue copy to Path2 - /data/lichswarm/scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:53:08 INFO : scripts/custom/delay-script.lic: Copied (replaced existing)
bisyncd.log.20230818:2023/08/18 11:57:25 INFO : - Path1 File is newer - scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:57:51 INFO : - Path1 Queue copy to Path2 - /data/lichswarm/scripts/custom/delay-script.lic
bisyncd.log.20230818:2023/08/18 11:57:52 INFO : scripts/custom/delay-script.lic: Copied (replaced existing)