News for hackers. Stuff that matters.
Re:Backblaze: “Why does the private key still need to be sen... by kangaroozach on Sunday August 29, 2021 @03:31PM (#28349722)
What’s best way to do this on Mac?
Re:Backblaze: “Why does the private key still need to be sen... by kayodelycaon on Sunday August 29, 2021 @03:46PM (#28349836)
Personally, I use encrypted sparse disk images. (You can make them with Disk Utility.) It makes a disk image using many small files in a folder. Might leak some information related about size or number of the contents, but the contents and metadata of the filesystem are encrypted.

This method can result in corruption of the disk image if you’re not careful.

Edit: This is probably the most seamless way to handle encryption. It’s built in to the OS and you can save the password in Keychain if you like. Used it with Dropbox for years. Just make sure to unmount and let it sync before opening the disk on another system.

Re:Backblaze: “Why does the private key still need to be sen... by jsjohnst on Sunday August 29, 2021 @04:00PM (#28349970)
I use this same route pretty heavily across several cloud backup providers and never had corruption issues, but yes, it’s technically possible corruption could occur.
Re:Backblaze: “Why does the private key still need to be sen... by kayodelycaon on Sunday August 29, 2021 @04:10PM (#28350041)
Cloud backup is unlikely to corrupt a disk image. Syncing one through Dropbox and having it open on two computers at the same time is living dangerously. :)
Re:Backblaze: “Why does the private key still need to be sen... by jsjohnst on Sunday August 29, 2021 @04:20PM (#28350128)
Having two independent writers to a file is generally living dangerously, even without the extra complexity of unpredictable async file syncing.
Re:Backblaze: “Why does the private key still need to be sen... by cpach on Sunday August 29, 2021 @03:44PM (#28349820)
Restic is one option https://restic.net/
Re:Backblaze: “Why does the private key still need to be sen... by eric__cartman on Sunday August 29, 2021 @03:37PM (#28349774)
Personally I split everything into equally sized tar.gz files, encrypt everything with gpg and upload it using rclone. It should be easily doable and scriptable in any Unix-like machine. It's not the fastest way of doing this, and very inconvenient if you need to access the data often. I only use this for off-site archiving that I will never use unless something catastrophic happens.
Re:Backblaze: “Why does the private key still need to be sen... by spinax on Sunday August 29, 2021 @04:04PM (#28349993)
You've basically just described duplicity with rclone as the backend (their term). I personally add duply in front for usability (it handles your includes, excludes, "profile", etc.). Restoring is easy with these 3 working in tandem, and you can manually extract the data as needed for SHTF - just gpg encrypted tarballs. duply runs duplicity who runs rclone in a soundbite.
Re:Backblaze: “Why does the private key still need to be sen... by 1630269196 on Sunday August 29, 2021 @04:35PM (#28350227)
I used to do something similar, but these days I either just use rclone's crypt backend (folder hierarchy is kept intact, files encrypted and filenames obfuscated), or a Restic repository hosted on an rclone backend.
Re:Backblaze: “Why does the private key still need to be sen... by danuker on Sunday August 29, 2021 @03:58PM (#28349942)
> I will never use unless something catastrophic happens

Have you ever tried to restore from one such archive?

Re:Backblaze: “Why does the private key still need to be sen... by eric__cartman on Sunday August 29, 2021 @04:16PM (#28350093)
Yes, it's quite easy. Once all the gpg files are decrypted, the tar archives can be uncompressed with any piece of software that supports tar archives.
Re:Backblaze: “Why does the private key still need to be sen... by aborsy on Sunday August 29, 2021 @04:31PM (#28350195)
I am curious, why don’t you use rclone crypt?

(And as someone said, duplicity).

Re:Backblaze: “Why does the private key still need to be sen... by xmodem on Sunday August 29, 2021 @03:45PM (#28349826)
There are tools that will provide a virtual drive backed by files that are encrypted on disk. I use Cryptomator [1], which is cross-platform and is designed with cloud syncing in mind, but on mac you can just use Disk Utility to create an encrypted DMG.

[1]: https://cryptomator.org/

Re:Backblaze: “Why does the private key still need to be sen... by Rd6n6 on Sunday August 29, 2021 @03:49PM (#28349859)
I’ve been trying duplicati recently and it seems fairly simple and is cross platform with a GUI
Re:Backblaze: “Why does the private key still need to be sen... by olalonde on Sunday August 29, 2021 @03:53PM (#28349906)
I use rclone crypt for that (https://rclone.org/crypt/).