What is the problem you are having with rclone?
backup-dir not working for some commands
What is your rclone version (output from rclone version
)
rclone v1.53.3
- os/arch: linux/amd64
- go version: go1.15.5
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Debian Buster
Linux myserver 5.4.78-2-pve #1 SMP PVE 5.4.78-2 (Thu, 03 Dec 2020 14:26:17 +0100) x86_64 GNU/Linux
Which cloud storage system are you using? (eg Google Drive)
crypt on gdrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
--backup-dir works here
rclone copy --drive-chunk-size=512M --max-age=25h --no-traverse --backup-dir=encrypted_daily:rlcone_trash/`date +"%Y-%m-%d-%T"` /mnt/volume2/nextcloud/ encrypted_daily:/nextcloud/ -vv
--backup-dir does not work here
rclone copy --drive-chunk-size=512M --max-age=25h --no-traverse --backup-dir=encrypted_daily:rlcone_trash/`date +"%Y-%m-%d-%T"` /mnt/volume2/vm_backups/ encrypted_daily:/vm_backups/ -vv
The rclone config contents with secrets removed.
[gdrive]
type = drive
client_id = myclientid.apps.googleusercontent.com
client_secret = myclientsecret
scope = drive
token = {"access_token":"mytoken","token_type":"Bearer","refresh_token":"myrefreshtoken","expiry":"expirydate"}
[encrypted_daily]
type = crypt
remote = gdrive:encrypted_daily
filename_encryption = standard
directory_name_encryption = true
password = mypassword
password2 = mypassword2
A log from the command with the -vv
flag
2021/01/17 16:31:04 DEBUG : --max-age 1.0416666666666667d to 2021-01-16 15:31:04.082749981 -0700 MST m=-89999.972029374
2021/01/17 16:31:04 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "copy" "--drive-chunk-size=512M" "--max-age=25h" "--no-traverse" "--backup-dir=encrypted_daily:rlcone_trash/2021-01-17-16:31:04" "/mnt/volume2/vm_backups/" "encrypted_daily:/vm_backups/" "-vv"]
2021/01/17 16:31:04 DEBUG : Creating backend with remote "/mnt/volume2/vm_backups/"
2021/01/17 16:31:04 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/01/17 16:31:04 DEBUG : Creating backend with remote "encrypted_daily:/vm_backups/"
2021/01/17 16:31:04 DEBUG : Creating backend with remote "gdrive:encrypted_daily/redacted"
2021/01/17 16:31:04 DEBUG : Google drive root 'encrypted_daily/redacted': root_folder_id = "redacted" - save this in the config to speed up startup
2021/01/17 16:31:05 DEBUG : Creating backend with remote "encrypted_daily:rlcone_trash/2021-01-17-16:31:04"
2021/01/17 16:31:05 DEBUG : Creating backend with remote "gdrive:encrypted_daily/redacted/redacted"
2021/01/17 16:31:05 DEBUG : Google drive root 'encrypted_daily/redacted/redacted': root_folder_id = "redacted" - save this in the config to speed up startup
2021/01/17 16:31:06 DEBUG : daily/._.DS_Store: Excluded
2021/01/17 16:31:06 DEBUG : test/._.DS_Store: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2020_12_04-04_22_53.log: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_14-00_00_02.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_13-00_00_03.log: Excluded
2021/01/17 16:31:06 DEBUG : test/dump/vzdump-qemu-240-2020_03_08-10_25_09.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-140-2021_01_02-22_07_57.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-130-2021_01_02-20_03_00.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-125-2021_01_02-20_00_03.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-130-2021_01_02-20_03_00.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-140-2021_01_09-22_06_08.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-132-2021_01_02-20_41_08.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-134-2021_01_02-21_11_44.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-130-2021_01_09-20_02_55.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-125-2021_01_02-20_00_03.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-134-2021_01_02-21_11_44.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-134-2021_01_09-21_10_37.log: Excluded
2021/01/17 16:31:06 DEBUG : test/dump/vzdump-qemu-149-2020_07_10-11_08_43.log: Excluded
2021/01/17 16:31:06 DEBUG : test/dump/pfsense-vzdump-qemu-100-2019_10_24-00_00_01.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_16-00_00_02.log: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_15-00_00_02.log: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_16-00_00_02.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_14-00_00_02.log: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_12-00_00_02.log: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_13-00_00_03.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_12-00_00_02.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : daily/dump/vzdump-qemu-145-2021_01_15-00_00_02.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-141-2021_01_02-22_14_18.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-131-2021_01_09-20_11_07.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-125-2021_01_09-20_00_02.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-132-2021_01_09-20_39_58.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-131-2021_01_02-20_11_21.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-125-2020_12_30-10_16_47.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-141-2021_01_09-22_12_29.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-141-2021_01_02-22_14_18.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-134-2021_01_09-21_10_37.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-131-2021_01_02-20_11_21.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-131-2021_01_09-20_11_07.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-130-2021_01_09-20_02_55.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-141-2021_01_09-22_12_29.log: Excluded
2021/01/17 16:31:06 DEBUG : test/dump/vzdump-qemu-134-2019_11_20-17_14_10.log: Excluded
2021/01/17 16:31:06 DEBUG : test/dump/vzdump-qemu-182-2019_12_07-13_44_39.log: Excluded
2021/01/17 16:31:06 DEBUG : test/dump/vzdump-qemu-175-2019_10_25-08_29_12.log: Excluded
2021/01/17 16:31:06 DEBUG : test/dump/prowl-vzdump-qemu-140-2020_10_03-20_00_02.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-132-2021_01_02-20_41_08.log: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-125-2021_01_09-20_00_02.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-140-2021_01_02-22_07_57.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-140-2021_01_09-22_06_08.vma.gz: Excluded
2021/01/17 16:31:06 DEBUG : weekly/dump/vzdump-qemu-132-2021_01_09-20_39_58.vma.gz: Excluded
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-144-2021_01_17-10_34_07.log: Size and modification time the same (differ by -41.172µs, within tolerance 1ms)
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-144-2021_01_17-10_34_07.log: Unchanged skipping
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-144-2021_01_17-10_34_48.log: Size and modification time the same (differ by -479.828µs, within tolerance 1ms)
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-145-2021_01_17-00_00_02.log: Size and modification time the same (differ by -101.537µs, within tolerance 1ms)
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-145-2021_01_17-00_00_02.log: Unchanged skipping
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-145-2021_01_17-10_43_29.log: Size and modification time the same (differ by -264.835µs, within tolerance 1ms)
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-145-2021_01_17-00_00_02.vma.gz: Size and modification time the same (differ by -109.8µs, within tolerance 1ms)
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-145-2021_01_17-00_00_02.vma.gz: Unchanged skipping
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-145-2021_01_17-10_43_29.log: Unchanged skipping
2021/01/17 16:31:09 DEBUG : daily/dump/vzdump-qemu-144-2021_01_17-10_34_48.log: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-125-2021_01_16-20_00_02.vma.gz: Size and modification time the same (differ by -973.414µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-125-2021_01_16-20_00_02.vma.gz: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-131-2021_01_16-20_11_02.log: Size and modification time the same (differ by -591.484µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-131-2021_01_16-20_11_02.log: Unchanged skipping
2021/01/17 16:31:11 DEBUG : Encrypted drive 'encrypted_daily:/vm_backups/': Waiting for checks to finish
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-131-2021_01_16-20_11_02.vma.gz: Size and modification time the same (differ by -618.143µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-134-2021_01_16-21_09_46.log: Size and modification time the same (differ by -884.8µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-134-2021_01_16-21_09_46.log: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-140-2021_01_16-22_05_19.log: Size and modification time the same (differ by -865.881µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-140-2021_01_16-22_05_19.log: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-140-2021_01_16-22_05_19.vma.gz: Size and modification time the same (differ by -871.688µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-140-2021_01_16-22_05_19.vma.gz: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-134-2021_01_16-21_09_46.vma.gz: Size and modification time the same (differ by -916.898µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-141-2021_01_16-22_11_37.log: Size and modification time the same (differ by -891.134µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-141-2021_01_16-22_11_37.log: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-141-2021_01_16-22_11_37.vma.gz: Size and modification time the same (differ by -894.169µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-141-2021_01_16-22_11_37.vma.gz: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-134-2021_01_16-21_09_46.vma.gz: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-125-2021_01_16-20_00_02.log: Size and modification time the same (differ by -968.928µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-125-2021_01_16-20_00_02.log: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-130-2021_01_16-20_02_59.vma.gz: Size and modification time the same (differ by -153.08µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-130-2021_01_16-20_02_59.vma.gz: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-132-2021_01_16-20_39_42.vma.gz: Size and modification time the same (differ by -892.06µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-132-2021_01_16-20_39_42.vma.gz: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-132-2021_01_16-20_39_42.log: Size and modification time the same (differ by -870.059µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-132-2021_01_16-20_39_42.log: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-131-2021_01_16-20_11_02.vma.gz: Unchanged skipping
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-130-2021_01_16-20_02_59.log: Size and modification time the same (differ by -151.788µs, within tolerance 1ms)
2021/01/17 16:31:11 DEBUG : weekly/dump/vzdump-qemu-130-2021_01_16-20_02_59.log: Unchanged skipping
My thinking is it might have something to do with:
Size and modification time the same (differ by -41.172µs, within tolerance 1ms)
Is it possible to prevent this?