Merge pull request #103 from mtatton/master

Use tar -z for gzip instead tar -Z for compress
This commit is contained in:
Peter Bieringer
2022-01-21 08:47:36 +01:00
committed by GitHub

View File

@@ -101,7 +101,7 @@ Very simple Scripts
<P> <P>
<tscreen><verb> <tscreen><verb>
#!/bin/bash #!/bin/bash
tar -cZf /var/my-backup.tgz /home/me/ tar -czf /var/my-backup.tgz /home/me/
</verb></tscreen> </verb></tscreen>
<P> In this script, instead of printing a message on the terminal, <P> 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 we create a tar-ball of a user's home directory. This is NOT intended
@@ -298,7 +298,7 @@ Variables
<tscreen><verb> <tscreen><verb>
#!/bin/bash #!/bin/bash
OF=/var/my-backup-$(date +%Y%m%d).tgz OF=/var/my-backup-$(date +%Y%m%d).tgz
tar -cZf $OF /home/me/ tar -czf $OF /home/me/
</verb></tscreen> </verb></tscreen>
<P> This script introduces another thing. First <P> This script introduces another thing. First
of all, you should be familiarized with the variable of all, you should be familiarized with the variable
@@ -609,7 +609,7 @@ User interfaces
SRCD=$1 SRCD=$1
TGTD="/var/backups/" TGTD="/var/backups/"
OF=home-$(date +%Y%m%d).tgz OF=home-$(date +%Y%m%d).tgz
tar -cZf $TGTD$OF $SRCD tar -czf $TGTD$OF $SRCD
</verb></tscreen> </verb></tscreen>
<P> <P>
<P> What this script does should be clear to you. The expression <P> What this script does should be clear to you. The expression
@@ -964,7 +964,7 @@ More Scripts
SRCD="/home/" SRCD="/home/"
TGTD="/var/backups/" TGTD="/var/backups/"
OF=home-$(date +%Y%m%d).tgz OF=home-$(date +%Y%m%d).tgz
tar -cZf $TGTD$OF $SRCD tar -czf $TGTD$OF $SRCD
</verb></tscreen> </verb></tscreen>
<P> <P>
</sect1> </sect1>