new script for easy archiving and compression and reversal of both
This commit is contained in:
parent
d79688f50f
commit
91d3d1d98d
3
scripts/archive_and_compress.sh
Executable file
3
scripts/archive_and_compress.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source=${1%/}; # cut off trailing "/"
|
||||||
|
tar cfv $source.tar $source && xz $source.tar;
|
4
scripts/decompress_and_unarchive.sh
Executable file
4
scripts/decompress_and_unarchive.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source=$1;
|
||||||
|
archive=${source%.xz}; # cut off trailing ".xz"
|
||||||
|
unxz $source && tar xfv $archive
|
Loading…
Reference in New Issue
Block a user