Added explanation to archive.7z
This commit is contained in:
parent
9515d2c952
commit
bb075ed369
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# This script packs a file or directory into a 7z archive with the given password.
|
||||||
|
# It can (optionally) split the archives into volumes of a fixed size in megabytes.
|
||||||
|
|
||||||
archive_dir="$(dirname "$0")/../archives"
|
archive_dir="$(dirname "$0")/../archives"
|
||||||
|
|
||||||
|
|
@ -47,7 +49,6 @@ set_volumes() {
|
||||||
|
|
||||||
generate_name() {
|
generate_name() {
|
||||||
archive="$archive_dir/$(base64 /dev/urandom | tr -dc [:alnum:] | head -c 20).7z"
|
archive="$archive_dir/$(base64 /dev/urandom | tr -dc [:alnum:] | head -c 20).7z"
|
||||||
|
|
||||||
echo "Generated archive name $archive" >&2
|
echo "Generated archive name $archive" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue