skripte vereinfacht mit etwas weniger fp verbrauch

This commit is contained in:
fszimnau 2025-04-14 16:53:23 +02:00
parent 0306ebc04c
commit 7270a2c858
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source=${1%/}; # cut off trailing "/" source=$1
tar cfv $source.tar $source && xz $source.tar; destinationPart=${1%/}; # cut off trailing "/"
# tar cfv $destinationPart.tar $source && xz $destinationPart.tar;
tar c -I"xz -v" -vf $destinationPart.tar.xz $source

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source=$1; source=$1;
archive=${source%.xz}; # cut off trailing ".xz" # archive=${source%.xz}; # cut off trailing ".xz"
unxz $source && tar xfv $archive # unxz $source && tar xfv $archive
tar x -I"unxz -v" -vf $source