What is the problem you are having with rclone?
I'm using a PowerShell script to do versioned backups of my local drives to OneDrive and want to see the total no. of files and the total MB copied each time I run the sync. Something like:
Files copied: 35, deleted: 4
Total Size: 453MB
I have read numerous previous posts on this and have tried --stats-one-line
which does not print anything as well as --stats-one-line -v
which prints too much info. I also tried just --stats
but that fails.
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
- os/kernel: 10.0.19045.2546 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
OneDrive Personal
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
.\rclone.exe sync C:\rclone od:testing --stats-one-line
The above is a test command that copies just the single rclone folder on C:\
The rclone config contents with secrets removed.
[od]
type = onedrive
token =
drive_id =
drive_type = personal
A log from the command with the -vv
flag
.\rclone.exe : 2023/01/22 22:11:50 DEBUG : rclone: Version "v1.61.1" starting with parameters ["C:\\rclone\\rclone.exe" "sync" "C:\\rclone" "od:testing"
"--stats-one-line" "-vv"]
At line:1 char:1
+ .\rclone.exe sync C:\rclone od:testing --stats-one-line -vv
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (2023/01/22 22:1...ne-line" "-vv"]:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
2023/01/22 22:11:50 DEBUG : Creating backend with remote "C:\\rclone"
2023/01/22 22:11:50 DEBUG : Using config file from "C:\\Users\\Ashim Jain\\AppData\\Roaming\\rclone\\rclone.conf"
2023/01/22 22:11:50 DEBUG : fs cache: renaming cache item "C:\\rclone" to be canonical "//?/C:/rclone"
2023/01/22 22:11:50 DEBUG : Creating backend with remote "od:testing"
2023/01/22 22:11:50 DEBUG : logfile.txt: Size and modification time the same (differ by -330.2417ms, within tolerance 1s)
2023/01/22 22:11:50 DEBUG : logfile.txt: Unchanged skipping
2023/01/22 22:11:50 DEBUG : global-exclude.txt: Size and modification time the same (differ by -469.1374ms, within tolerance 1s)
2023/01/22 22:11:50 DEBUG : OneDrive root 'testing': Waiting for checks to finish
2023/01/22 22:11:50 DEBUG : global-exclude.txt: Unchanged skipping
2023/01/22 22:11:50 DEBUG : BackDate, 2023-01-21.txt: Size and modification time the same (differ by -815.5394ms, within tolerance 1s)
2023/01/22 22:11:50 DEBUG : BackDate, 2023-01-21.txt: Unchanged skipping
2023/01/22 22:11:50 DEBUG : rclone.exe: Size and modification time the same (differ by 0s, within tolerance 1s)
2023/01/22 22:11:50 DEBUG : rclone.exe: Unchanged skipping
2023/01/22 22:11:50 DEBUG : OneDrive root 'testing': Waiting for transfers to finish
2023/01/22 22:11:50 DEBUG : Backup_to_OD.ps1: Starting multipart upload
2023/01/22 22:11:50 DEBUG : exclude-file.txt: Starting multipart upload
2023/01/22 22:11:51 DEBUG : exclude-file.txt: Uploading segment 0/75 size 75
2023/01/22 22:11:51 DEBUG : Backup_to_OD.ps1: Uploading segment 0/9208 size 9208
2023/01/22 22:11:51 DEBUG : exclude-file.txt: sha1 = cc7b4ec0af360c7dc55537b014ca66ba4c6ed551 OK
2023/01/22 22:11:51 INFO : exclude-file.txt: Copied (new)
2023/01/22 22:11:51 DEBUG : Backup_to_OD.ps1: sha1 = 33e7365a9736674538690d17c547208e417ecf18 OK
2023/01/22 22:11:51 INFO : Backup_to_OD.ps1: Copied (new)
2023/01/22 22:11:51 DEBUG : Waiting for deletions to finish
2023/01/22 22:11:51 INFO : 9.065 KiB / 9.065 KiB, 100%, 0 B/s, ETA -
2023/01/22 22:11:51 DEBUG : 8 go routines active