coul Someone resolve this problem?
1.) If on Linux Centos I execute this file:
# /usr/bin/backup.sh
wich contains
- Code: Select all
#!/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: Select all
* 10 * * * root /usr/bin/backup.sh
I obtain file.sql empt with zero bytes.
Tanks in advance.
Gianni Pinna.