From ade9cd0e7c2982e069a3924091c377ea94ef9462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S=C3=89RIE?= Date: Thu, 7 Sep 2017 09:57:26 +0200 Subject: [PATCH] When doing `cd -`, redirect stdout Because, `cd -` will displays on stdout the path... And we want only errors in the cron output. --- docs/zzz_evobackup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zzz_evobackup b/docs/zzz_evobackup index 9e765fb..a6cf037 100755 --- a/docs/zzz_evobackup +++ b/docs/zzz_evobackup @@ -99,7 +99,7 @@ mkdir -p -m 700 /home/backup ## another method with gzip directly piped # cd /var/lib/postgresql # sudo -u postgres pg_dumpall | gzip > /home/backup/pg.dump.bak.gz -# cd - +# cd - > /dev/null ## example with all tables from MYBASE excepts TABLE1 and TABLE2 # pg_dump -p 5432 -h 127.0.0.1 -U USER --clean -F t --inserts -f /home/backup/pg-backup.tar -t 'TABLE1' -t 'TABLE2' MYBASE