Unable to decrypt/copy (restore) files that were originally uploaded on a different computer (WARNING: Newbie here)

ISSUE: I am unable to decrypt/copy (restore) files that were originally uploaded via my Mac using an encrypted rclone sync command back to my Raspberry Pi.

I assume/hope I am just doing this wrong and is a simple tweak on my end.
WARNING: I am a newbie so hoping I am making a newbie mistake.

From the rclone config below are my names used.

Name Type
==== ====
remote b2
secret crypt

#1 My initial encrypted “sync” command from Mac to BackBlaze B2. The resulting directory on BackBlaze shows up as “lujrq3elam1qinop8j6fbmnmc4” under my “bbbackup” bucket.

rclone sync /Users/me/Desktop/BU_TEST secret:test

#2 My copy command from BackBlaze B2 back to my Mac in a different directory. This worked fine.

rclone -vv copy secret:test /Users/me/Desktop/BU_TEST-copy

2017/12/02 08:08:18 DEBUG : Using config file from “/Users/me/.config/rclone/rclone.conf”
2017/12/02 08:08:18 DEBUG : rclone: Version “v1.38” starting with parameters [“rclone” “-vv” “copy” “secret:test” “/Users/me/Desktop/BU_TEST-copy”]
2017/12/02 08:08:29 INFO : Local file system at /Users/me/Desktop/BU_TEST-copy: Modify window is 1s
[OMITTING LIST OF 28 FILES, ALL LOOKED GOOD SIMILAR TO “2017/12/02 08:08:48 INFO : ******.JPG: Copied (new)”
Transferred: 117.225 MBytes (2.161 MBytes/s)
Errors: 0
Checks: 0
Transferred: 28
Elapsed time: 54.2s

2017/12/02 08:09:12 DEBUG : Go routines at exit 12
2017/12/02 08:09:12 DEBUG : rclone: Version “v1.38” finishing with parameters [“rclone” “-vv” “copy” “secret:test” “/Users/me/Desktop/BU_TEST-COPY”]

#3 My copy command from BackBlaze B2 back to my Raspberry. I tried the below commands, all no luck and all the same results.

rclone -vv copy secret:bbbackup/lujrq3elam1qinop8j6fbmnmc4 /media/pi/bu/test/BU_TEST-copy
rclone -vv copy secret:bbbackup/test /media/pi/bu/test/BU_TEST-copy
rclone -vv copy secret:test /media/pi/bu/test/BU_TEST-copy
rclone -vv copy secret:lujrq3elam1qinop8j6fbmnmc4 /media/pi/bu/test/BU_TEST-copy
rclone -vv copy secret:remote/bbbackup/lujrq3elam1qinop8j6fbmnmc4 /media/pi/bu/test/BU_TEST-copy

2017/12/02 08:10:25 DEBUG : Using config file from “/home/pi/.config/rclone/rclone.conf”
2017/12/02 08:10:25 DEBUG : rclone: Version “v1.38” starting with parameters [“rclone” “-vv” “copy” “secret:test” “/media/pi/bu/test/BU_TEST-copy”]
2017/12/02 08:10:27 INFO : Local file system at /media/pi/bu/test/BU_TEST-copy: Modify window is 1ms
2017/12/02 08:10:27 INFO : Local file system at /media/pi/bu/test/BU_TEST-copy: Waiting for checks to finish
2017/12/02 08:10:27 INFO : Local file system at /media/pi/bu/test/BU_TEST-copy: Waiting for transfers to finish
2017/12/02 08:10:27 INFO :
Transferred: 0 Bytes (0 Bytes/s)
Errors: 0
Checks: 0
Transferred: 0
Elapsed time: 2s

2017/12/02 08:10:27 DEBUG : Go routines at exit 7
2017/12/02 08:10:27 DEBUG : rclone: Version “v1.38” finishing with parameters [“rclone” “-vv” “copy” “secret:test” “/media/pi/bu/test/BU_TEST-copy”]

#4 Side note, the below command worked but as expected it restored the encrypted files.
rclone -vv copy remote:bbbackup/lujrq3elam1qinop8j6fbmnmc4 /media/pi/bu/test/BU_TEST-copy

What do the config files look like on the mac, vs the raspberry PI? You want them to be identical, so I would copy the config file from the mac to the rpi. rclone config file on the mac will tell you where the config file is. Copy it to wherever rclone config file says on the rpi.

After that you should be able to use the same commands on both, no problem.

That did it!!!

Sorry when I input the same passwords (password and salt) I did not know the results would be different. So once I copied the config file password (password & password2) it worked as expected.

Also I saw the encryted config option. So I did that also because I did not want to leave this backup computer with my exposed config. Man you covered all our bases.

Keep up the great work!!! Now I don’t need to buy CloudBerry (Win/Mac/Linux non-ARM only). I want my Raspberry Pi to do all my uploads to BackBlaze from the command line.

1 Like