mirror of
https://github.com/trimstray/the-book-of-secret-knowledge.git
synced 2024-12-19 09:56:14 +00:00
README.md - minor fixes
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
ad2400dbad
commit
028e32a1e8
@ -529,7 +529,7 @@ ___
|
|||||||
###### Annotate tail -f with timestamps
|
###### Annotate tail -f with timestamps
|
||||||
|
|
||||||
```bash
|
```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
|
###### Analyse an Apache access log for the most common IP addresses
|
||||||
@ -546,12 +546,14 @@ ___
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /
|
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)
|
###### System backup with exclude specific directories (pigz)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
cd /
|
||||||
tar cvpf /backup/snapshot-$(date +%d%m%Y%s).tgz --directory=/ \
|
tar cvpf /backup/snapshot-$(date +%d%m%Y%s).tgz --directory=/ \
|
||||||
--exclude=proc/* --exclude=sys/* --exclude=dev/* \
|
--exclude=proc/* --exclude=sys/* --exclude=dev/* \
|
||||||
--exclude=mnt/* --exclude=tmp/* --use-compress-program=pigz .
|
--exclude=mnt/* --exclude=tmp/* --use-compress-program=pigz .
|
||||||
|
Loading…
Reference in New Issue
Block a user