Hi to All,
coul Someone resolve this problem?
1.) If on Linux Centos I execute this file:
wich contains
I obtain a perfect backup in file.sql
2.) But if I put in crontab
I obtain file.sql empty with zero bytes.
Tanks in advance.
Gianni Pinna.
coul Someone resolve this problem?
1.) If on Linux Centos I execute this file:
Code:
# /usr/bin/backup.sh
Code:
#!/bin/bash
export PGPASSWORD=”mia_password_del_db” && pg_dump -h localhost -U user -c -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
Code:
* 10 * * * root /usr/bin/backup.sh
I obtain file.sql empty with zero bytes.
Tanks in advance.
Gianni Pinna.