aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre ROUDIER <contact@pierreroudier.net>2013-06-27 21:36:23 +0200
committerintrigeri <intrigeri@boum.org>2013-06-28 09:08:39 +0200
commit625d1424cac33e022815308f3e256c2f2280f7d3 (patch)
tree3f0688ff4be967181b411ba1d7d1c356cf45f23b
parentb8f717d2245932f6fdd3bb24c588038ebb306031 (diff)
downloadbackupninja-625d1424cac33e022815308f3e256c2f2280f7d3.tar.gz
backupninja-625d1424cac33e022815308f3e256c2f2280f7d3.tar.bz2
xz support for tar handler
-rw-r--r--handlers/tar.helper.in3
-rw-r--r--handlers/tar.in4
2 files changed, 6 insertions, 1 deletions
diff --git a/handlers/tar.helper.in b/handlers/tar.helper.in
index 4a483be..91fec34 100644
--- a/handlers/tar.helper.in
+++ b/handlers/tar.helper.in
@@ -25,7 +25,8 @@ tar_wizard() {
"none" "do not filter trough" off \
"compress" "filter trough compress" off \
"gzip" "filter trough gzip" off \
- "bzip" "filter trough bzip" on
+ "bzip" "filter trough bzip" on \
+ "xz" "filter trough xz" off
[ $? = 1 ] && return;
result="$REPLY"
tar_compress="compress = $REPLY "
diff --git a/handlers/tar.in b/handlers/tar.in
index b4f8c58..eb5942b 100644
--- a/handlers/tar.in
+++ b/handlers/tar.in
@@ -48,6 +48,10 @@ case $compress in
compress_option="-j"
EXTENSION="tar.bz2"
;;
+ "xz")
+ compress_option="-J"
+ EXTENSION="tar.xz"
+ ;;
"none")
compress_option=""
;;