
December 28th, 2012, 10:29 AM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 1
Time spent in forums: 23 m 33 sec
Reputation Power: 0
|
|
|
Impossible Postgresql Crontab Backup On Linux Centos
Hi to All,
coul Someone resolve this problem?
1.) If I on Linux Centos% this file /usr/bin/backup.sh
Quote: | #!/bin/bash export PGPASSWORD=”mia_password_del_db” && pg_dump -h localhost -U user -c -d -R -v nome_database -n nome_schema > /percorso/dove/salvare/il/file.sql |
I obtain a perfect backup in file.sql
2.) But if I put in crontab
Quote: | * 10* * * root /usr/bin/backup.sh |
I obtain file.sql empt with zero bytes.
Tanks in advance.
Gianni Pinna.
|