From cb66502c2ccef9087009960245f48056e34b722f Mon Sep 17 00:00:00 2001
From: Henning Bopp
Date: Sun, 25 Nov 2018 21:28:30 +0100
Subject: [PATCH] Fixing tar command order

Fixes Error

    tar: The following options were used after any non-optional arguments in archive create or update mode.  These options are positional and affect only arguments that follow them.  Please, rearrange them properly.
    tar: --no-recursion has no effect
    tar: Exiting with failure status due to previous errors
---
 backup2l | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/backup2l b/backup2l
index 76e11b3..982fe2f 100755
--- a/backup2l
+++ b/backup2l
@@ -173,7 +173,7 @@ DRIVER_TAR ()
             echo "tar"
             ;;
         -create)        # Arguments: $2 = BID, $3 = archive file name, $4 = file list file
-            tar cf $3 -T $4 --numeric-owner --no-recursion 2>&1 \
+            tar cf $3 --no-recursion -T $4 --numeric-owner 2>&1 \
                 | grep -v 'tar: Removing leading .* from .* names'
             ;;
         -toc)           # Arguments: $2 = BID, $3 = archive file name
@@ -197,7 +197,7 @@ DRIVER_TAR_GZ ()
             echo "tar.gz"
             ;;
         -create)        # Arguments: $2 = BID, $3 = archive file name, $4 = file list file
-            tar czf $3 -T $4 --no-recursion 2>&1 \
+            tar czf $3 --no-recursion -T $4 2>&1 \
                 | grep -v 'tar: Removing leading .* from .* names'
             ;;
         -toc)           # Arguments: $2 = BID, $3 = archive file name
@@ -221,7 +221,7 @@ DRIVER_TAR_BZ2 ()
             echo "tar.bz2"
             ;;
         -create)        # Arguments: $2 = BID, $3 = archive file name, $4 = file list file
-            tar cjf $3 -T $4 --no-recursion 2>&1 \
+            tar cjf $3 --no-recursion -T $4 2>&1 \
                 | grep -v 'tar: Removing leading .* from .* names'
             ;;
         -toc)           # Arguments: $2 = BID, $3 = archive file name
