M
M
MasterCopipaster2020-11-26 05:44:40
Data archiving
MasterCopipaster, 2020-11-26 05:44:40

How to archive files with certain conditions on UBUNTU?

Good day to all, please tell me, I have the following task:
I need to archive a large amount of files on Ubuntu > 100GB, but I have the conditions for the archive.

  1. The archive must be split into 25GB volumes
  2. Identical files must be added as links (optional but recommended)
  3. The archive must contain 9% of the information from the original size for recovery in case of damage.
  4. The archive must be password protected.

In general, all these tasks are perfectly solved using WinRar5, but the trouble is that it does not work correctly from under wine (it just crashes). Are there any Linux archivers that solve the task? the first, third and fourth paragraphs are required.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2020-11-26
@MasterCopipaster

install the rar package from the repository. a full-fledged console rar is packed in it, taken from the official site https://www.rarlab.com/download.htm or download from rarlab the latest release will be newer.

[email protected]:~$ lsb_release -d
Description:    Ubuntu 20.04
[email protected]:~$ rar

RAR 5.50   Copyright (c) 1993-2017 Alexander Roshal   14 Jun 2017
Trial version             Type 'rar -?' for help

Well point 2 of course will be implicit. although I don’t know which of the archivers does the deduplication of input files using conventional means, because it’s expensive.
well, you'll have to live without a guy, but you'll get used to it :)
in the 5th format, rar can record Linux rights and file owners, and also understands symlinks and hardlinks. special files are not yet able, which is a pity

R
rPman, 2020-11-26
@rPman

At the same time, I don’t know what archiver can do this, but separately you can collect them from different utilities. The most difficult points are 2 and 3.
For example, parchive has point 3 , which is actually a separate utility for partitioning into volumes and adding information for recovery.
There are utilities (for example, rdfind) that create symbolic or hard links for identical files, and after that you can.
Those. pack the file with tar (it can link but does not pack), compress it with bzip, then split it into parchive volumes and all this through pipes at the same time, bypassing the intermediate storage of files on disk.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question