From 8de84657164fb60689e85dcc557010592ddbfa09 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 21 Jan 2022 08:41:46 +0100 Subject: [PATCH] Use tar -z for gzip instead tar -Z for compress --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index 9a508726..0edf1083 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -101,7 +101,7 @@ Very simple Scripts

#!/bin/bash - tar -cZf /var/my-backup.tgz /home/me/ + tar -czf /var/my-backup.tgz /home/me/

In this script, instead of printing a message on the terminal, we create a tar-ball of a user's home directory. This is NOT intended @@ -298,7 +298,7 @@ Variables #!/bin/bash OF=/var/my-backup-$(date +%Y%m%d).tgz - tar -cZf $OF /home/me/ + tar -czf $OF /home/me/

This script introduces another thing. First of all, you should be familiarized with the variable @@ -609,7 +609,7 @@ User interfaces SRCD=$1 TGTD="/var/backups/" OF=home-$(date +%Y%m%d).tgz - tar -cZf $TGTD$OF $SRCD + tar -czf $TGTD$OF $SRCD

What this script does should be clear to you. The expression @@ -964,7 +964,7 @@ More Scripts SRCD="/home/" TGTD="/var/backups/" OF=home-$(date +%Y%m%d).tgz - tar -cZf $TGTD$OF $SRCD + tar -czf $TGTD$OF $SRCD