Librem 5 Backup and Restore – Purism

well that’s the beauty of linux that you don’t need each software to be MFU and bring alll the dependecies with it (although it’s coming to that point with flatpak)
So if you need to encrypt tar archive you can just pass it further via the pipe to openssl.

ruff@ubox:~$ tar -cz . | openssl aes256 | cat > home.tar.gz.aes
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
ruff@ubox:~$ ls -la home.tar.gz.aes
-rw-rw-r-- 1 ruff ruff 121872 Feb  5 13:06 home.tar.gz.aes
ruff@ubox:~$ openssl aes256 -d < home.tar.gz.aes | tar tzv
enter aes-256-cbc decryption password:
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
drwxr-xr-x ruff/ruff         0 2020-02-05 13:05 ./
-rw------- ruff/ruff     10891 2020-01-28 16:56 ./.viminfo
-rw-r--r-- ruff/ruff       220 2019-05-05 04:06 ./.bash_logout
drwxrwxr-x ruff/ruff         0 2020-01-28 16:22 ./.ansible/
drwx------ ruff/ruff         0 2020-01-28 17:02 ./.ansible/tmp/
-rw-r--r-- ruff/ruff         0 2020-01-24 01:19 ./.sudo_as_admin_successful
-rw-r--r-- ruff/ruff      3771 2019-05-05 04:06 ./.bashrc

Or you can use convenience wrapper from gnupg like gpgtar

3 Likes