this post was submitted on 05 Feb 2025
1 points (100.0% liked)

It's A Digital Disease!

23 readers
1 users here now

This is a sub that aims at bringing data hoarders together to share their passion with like minded people.

founded 2 years ago
MODERATORS
 
The original post: /r/datahoarder by /u/Tilandaka on 2025-02-05 17:38:49.

I am looking for advice regarding compressing and encrypting files on a Linux system. At the moment I'm using 7-Zip (the 7z package) using the following parameters:

sudo 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -mhe=on -p"passw0rd" "file.7z" "folder/"

This will compress and encrypt a folder named folder into a file called file.7z. It will be password protected with the password passw0rd. Is this sufficient? I want something that's secure when I make data backups. I understand it's only as secure as my password too, but are there better ways of doing this? I also want something that compresses well.

The command above will also hide file names in the archive unless the file has been unlocked using the specified password. It uses LZMA2 and an "ultra" level of compression.

If you have any suggestions, please provide full commands here so that everyone here can learn. Most tools have a lot of different parameters that must be set. Simply saying "use xyz..." leaves room for more questions if you do not provide real examples.

Thanks in advance!

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here