From 028e32a1e8c04a0054181a588b12daef56f5bf1d Mon Sep 17 00:00:00 2001 From: trimstray Date: Tue, 10 Jul 2018 17:45:37 +0200 Subject: [PATCH] README.md - minor fixes - signed-off-by: trimstray --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ef99817..2238541 100644 --- a/README.md +++ b/README.md @@ -529,7 +529,7 @@ ___ ###### Annotate tail -f with timestamps ```bash -tail -f file | while read; do echo "$(date +%T.%N) $REPLY"; done +tail -f file | while read ; do echo "$(date +%T.%N) $REPLY" ; done ``` ###### Analyse an Apache access log for the most common IP addresses @@ -546,12 +546,14 @@ ___ ```bash cd / -tar -czvpf /mnt/system$(date +%d%m%Y%s).tgz --directory=/ --exclude=proc/* --exclude=sys/* --exclude=dev/* --exclude=mnt/* . +tar -czvpf /mnt/system$(date +%d%m%Y%s).tgz --directory=/ \ +--exclude=proc/* --exclude=sys/* --exclude=dev/* --exclude=mnt/* . ``` ###### System backup with exclude specific directories (pigz) ```bash +cd / tar cvpf /backup/snapshot-$(date +%d%m%Y%s).tgz --directory=/ \ --exclude=proc/* --exclude=sys/* --exclude=dev/* \ --exclude=mnt/* --exclude=tmp/* --use-compress-program=pigz .