On my server this settings has been optimal to use, but now i run raspbery pi 4 8GB with sata to ssd and ssd disk (Samsung evo 840).
How can i optmize the settings so i got maximum upload to google drive?
I use this code now as mount:
/usr/bin/rclone --config "/root/.config/rclone/rclone.conf" mount --allow-other --umask=000 --vfs-cache-mode writes --vfs-cache-max-size 90G --drive-chunk-size=64M --cache-dir=/root/cache/rclone --dir-cache-time=1h --tpslimit 7 --allow-non-empty annica_encrypt:backup /mnt/backup &
My connection is 500/500 and the backup of whole Raspberry is going to be run one a week at night when i have no visitiors on my webpage. So rclone can use up to 90 cache and 6GB ram without any problem.
The code that runs:
sudo dd if=/dev/sda conv=sync,noerror bs=4M of=/mnt/backup/raspberryn/backup_date -I-KL$(date +%H).img status=progress (progress is only for testing now, that removes when upload works perfect)
Can i use copy or sync when the file is 250GB and i only have 90GB storage left.
This code sudo dd if=/dev/sda conv=sync,noerror bs=4M of=/mnt/backup/raspberryn/backup_date -I-KL$(date +%H).img status=progress thats backup of the whole harddrive. I have no sdcard installed.
Rclone will do its best to check checksums while using rclone rcat - it calculates the checksum of the data as it runs through rclone then checks the checksum on the remote when it is uploaded. You can't do a post copy rclone check but it's a pretty good check.
these two commands are the same, except for --checksum
--- in both cases, rclone check works.
--- only when using --checksum does rclone compare checksums after transfer
type d:\files\file.ext | C:\data\rclone\rclone.exe rcat gdrive:zork/file.ext -vv
DEBUG : Setting --config "C:\\data\\rclone\\rclone.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\rclone.conf"
DEBUG : rclone: Version "v1.58.1" starting with parameters ["C:\\data\\rclone\\rclone.exe" "rcat" "gdrive:zork/file.ext" "-vv"]
DEBUG : Creating backend with remote "gdrive:zork/"
DEBUG : Using config file from "C:\\data\\rclone\\rclone.conf"
DEBUG : Google drive root 'zork': 'root_folder_id = 0AIYnsu88uXytUk9PVA' - save this in the config to speed up startup
DEBUG : fs cache: renaming cache item "gdrive:zork/" to be canonical "gdrive:zork"
DEBUG : file.ext: Sending chunk 0 length 1448900
DEBUG : file.ext: Size and modification time the same (differ by -532.5µs, within tolerance 1ms)
DEBUG : 6 go routines active
rclone.exe lsf gdrive:zork --format="ph"
file.ext;c7f5af9b93f5aa17934c84ad53fd2cea
rclone.exe check d:\files\file.ext gdrive:zork -vv
DEBUG : Setting --config "C:\\data\\rclone\\rclone.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\rclone.conf"
DEBUG : rclone: Version "v1.58.1" starting with parameters ["C:\\data\\rclone\\rclone.exe" "check" "d:\\files\\file.ext" "gdrive:zork" "-vv"]
DEBUG : Creating backend with remote "d:\\files\\file.ext"
DEBUG : Using config file from "C:\\data\\rclone\\rclone.conf"
DEBUG : fs cache: adding new entry for parent of "d:\\files\\file.ext", "//?/d:/files"
DEBUG : Creating backend with remote "gdrive:zork"
DEBUG : Google drive root 'zork': 'root_folder_id = 0AIYnsu88uXytUk9PVA' - save this in the config to speed up startup
INFO : Using md5 for hash comparisons
DEBUG : Google drive root 'zork': Waiting for checks to finish
DEBUG : file.ext: md5 = c7f5af9b93f5aa17934c84ad53fd2cea OK
DEBUG : file.ext: OK
NOTICE: Google drive root 'zork': 0 differences found
NOTICE: Google drive root 'zork': 1 matching files
INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%
Elapsed time: 0.9s
rclone.exe delete gdrive:zork -v
INFO : file.ext: Deleted
type d:\files\file.ext | C:\data\rclone\rclone.exe rcat gdrive:zork/file.ext -vv --checksum
DEBUG : Setting --config "C:\\data\\rclone\\rclone.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\rclone.conf"
DEBUG : rclone: Version "v1.58.1" starting with parameters ["C:\\data\\rclone\\rclone.exe" "rcat" "gdrive:zork/file.ext" "-vv" "--checksum"]
DEBUG : Creating backend with remote "gdrive:zork/"
DEBUG : Using config file from "C:\\data\\rclone\\rclone.conf"
DEBUG : Google drive root 'zork': 'root_folder_id = 0AIYnsu88uXytUk9PVA' - save this in the config to speed up startup
DEBUG : fs cache: renaming cache item "gdrive:zork/" to be canonical "gdrive:zork"
DEBUG : file.ext: Sending chunk 0 length 1448900
DEBUG : file.ext: md5 = c7f5af9b93f5aa17934c84ad53fd2cea OK
DEBUG : file.ext: Size and md5 of src and dst objects identical
DEBUG : 6 go routines active
rclone.exe lsf gdrive:zork --format="ph"
file.ext;c7f5af9b93f5aa17934c84ad53fd2cea
rclone.exe check d:\files\file.ext gdrive:zork -vv
DEBUG : Setting --config "C:\\data\\rclone\\rclone.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\rclone.conf"
DEBUG : rclone: Version "v1.58.1" starting with parameters ["C:\\data\\rclone\\rclone.exe" "check" "d:\\files\\file.ext" "gdrive:zork" "-vv"]
DEBUG : Creating backend with remote "d:\\files\\file.ext"
DEBUG : Using config file from "C:\\data\\rclone\\rclone.conf"
DEBUG : fs cache: adding new entry for parent of "d:\\files\\file.ext", "//?/d:/files"
DEBUG : Creating backend with remote "gdrive:zork"
DEBUG : Google drive root 'zork': 'root_folder_id = 0AIYnsu88uXytUk9PVA' - save this in the config to speed up startup
INFO : Using md5 for hash comparisons
DEBUG : Google drive root 'zork': Waiting for checks to finish
DEBUG : file.ext: md5 = c7f5af9b93f5aa17934c84ad53fd2cea OK
DEBUG : file.ext: OK
NOTICE: Google drive root 'zork': 0 differences found
NOTICE: Google drive root 'zork': 1 matching files
INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%
Elapsed time: 0.9s
The fix to rclone rcat --size is harder though and I'll probably delay that until after the v1.59 release as it is a much less used function - its used here and in rclone restic serve and restic has its own corruption detection.
type d:\files\file.ext | C:\data\rclone\rclone-v1.59.0-beta.6314.4fc174705.fix-rcat-checksum-windows-amd64.exe rcat gdrive:zork/file.ext -vv
DEBUG : Setting --config "C:\\data\\rclone\\rclone.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\rclone.conf"
DEBUG : rclone: Version "v1.59.0-beta.6314.4fc174705.fix-rcat-checksum" starting with parameters ["C:\\data\\rclone\\rclone-v1.59.0-beta.6314.4fc174705.fix-rcat-checksum-windows-amd64.exe" "rcat" "gdrive:zork/file.ext" "-vv"]
DEBUG : Creating backend with remote "gdrive:zork/"
DEBUG : Using config file from "C:\\data\\rclone\\rclone.conf"
DEBUG : Google drive root 'zork': 'root_folder_id = 0AIYnsu88uXytUk9PVA' - save this in the config to speed up startup
DEBUG : fs cache: renaming cache item "gdrive:zork/" to be canonical "gdrive:zork"
DEBUG : file.ext: Sending chunk 0 length 1448900
DEBUG : file.ext: md5 = c7f5af9b93f5aa17934c84ad53fd2cea OK
DEBUG : file.ext: Size and md5 of src and dst objects identical
Is this something that is included in the original release now?
I have try alot of settings and got 25MB/s only, on my windows i got full speed.
Raspberrys image (ubuntu 20.04) has the 5.4.x kernel thats why im asking <3