Merge pull request #6 from sylvchev/exclude-opts

Changing tar command
This commit is contained in:
Horea Christian 2017-01-02 02:45:15 +01:00 committed by GitHub
commit 9a96781235

View file

@ -145,7 +145,7 @@ then
echo "example: \$ `basename $0` -s /my-backup --exclude=/etc/ssh/ssh_host*"
echo ""
echo "COMMAND LINE PREVIEW:"
echo "cd $TARGET && tar $TAR_OPTIONS $STAGE4_FILENAME * $EXCLUDES $OPTIONS"
echo "cd $TARGET && tar $TAR_OPTIONS $EXCLUDES $OPTIONS $STAGE4_FILENAME *"
echo ""
echo -n "Type \"yes\" to continue or anything else to quit: "
read AGREE
@ -154,7 +154,7 @@ fi
# start stage4 creation:
if [ "$AGREE" == "yes" ]
then
cd $TARGET && tar $TAR_OPTIONS $STAGE4_FILENAME * $EXCLUDES $OPTIONS
cd $TARGET && tar $TAR_OPTIONS $EXCLUDES $OPTIONS $STAGE4_FILENAME *
fi
exit 0