What is the problem you are having with rclone?
I am running rclone in a container with docker compose. My command
is
rcd --rc-web-gui --rc-addr 0.0.0.0:5572 --rc-web-fetch-url=https://api.github.com/repos/rclone/rclone-webui-react/releases/latest --rc-web-gui-update --rc-user=redacted --rc-pass=redacted -vv --checksum --transfers=4 --checkers=4 --contimeout=60s --timeout=300s --retries=3 --low-level-retries=10 --stats=1s --stats-file-name-length=0
I have a google drive remote that is encrypted and a volume mounted into the container at /data
. If I exec
into the container run
rclone sync --progress /data googleDrive-encrypted-restic:/ --transfers=10 --checkers=10
I can see all the directories and files contained in /data
in google drive.
I would like to trigger this command remotely. The command I've come up with to do this is.
rclone rc sync/copy --progress srcFs="/data" dstFs="googleDrive-encrypted-restic:/" --transfers="10" --checkers="10" --rc-user="redacted" --rc-pass="redacted" --rc-addr="http://10.10.10.71:5572" -vv _async=true
I have tried a number of iterations of this command, and when run it produces an output which makes me believe that all the directories and files are being transferred, however the only file that gets transferred is the sole file at the root of /data
/data
is a restic snapshot repository. So the data structure looks like this.
drwxr-xr-x 7 nobody nobody 8 Feb 19 05:07 .
drwxr-xr-x 1 root root 4096 Feb 19 07:41 ..
-r-------- 1 nobody nobody 155 Feb 19 05:07 config
drwx------ 258 nobody nobody 258 Feb 19 05:07 data
drwx------ 2 nobody nobody 6 Feb 20 17:00 index
drwx------ 2 nobody nobody 3 Feb 19 05:07 keys
drwx------ 2 nobody nobody 2 Feb 20 17:00 locks
drwx------ 2 nobody nobody 6 Feb 20 17:00 snapshots
Note config is the sole file at the root of /data
. None of the directories or their contents get moved.
Run the command 'rclone version' and share the full output of the command.
/data # rclone version
rclone v1.65.2
- os/version: alpine 3.19.0 (64 bit)
- os/kernel: 6.5.0-17-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none
At the time of this post, rclone is the latest linux version available.
Which cloud storage system are you using? (eg Google Drive)
Google Drive and Local File System
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone rc sync/copy --progress srcFs="/data" dstFs="googleDrive-encrypted-restic:/" --transfers="10" --checkers="10" --rc-user="redacted" --rc-pass="redacted" --rc-addr="http://10.10.10.71:5572" -vv _async=true
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
/data # rclone config redacted
[gdrive-work]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
[googleDrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
[googleDrive-encrypted]
type = crypt
remote = googleDrive:/rclone
password = XXX
password2 = XXX
[googleDrive-encrypted-restic]
type = crypt
remote = googleDrive:/rclone/restic
password = XXX
password2 = XXX
[local-container]
type = local
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv
flag
2024/02/20 17:27:39 DEBUG : rclone: Version "v1.65.2" starting with parameters ["rclone" "rc" "sync/copy" "--prog
ress" "srcFs=/data" "dstFs=googleDrive-encrypted-restic:/" "--transfers=10" "--checkers=10" "--rc-user=redacted
" "--rc-pass=redacted" "--rc-addr=http://10.10.10.71:5572" "-vv"]
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 15.4s
2024/02/20 17:27:54 DEBUG : 7 go routines active
Also of note, that the two commands take roughly the same amount of time. In the remote command the first file is added to google drive nearly instantly, then continues to run for about 14-15 seconds, finishes without error, and exits. This is consistent with running the command locally, for what that's worth.