crontab does not work, but I do not see any trouble with this
This bug report was converted into a question: question #139310: crontab does not work, but I do not see any trouble with this.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello.
I have inserted a few entries to the crontab using "sudo crontab -e" and vim editor. My crontab looks like below:
-------
# m h dom mon dow command
5 11 * * * /home/gaali/
~
~
~
-------
db_backup.sh looks like below:
-------
dest="$HOME"
day=$(date '+%y%m%d_%H%M')
name="gaali"
archive_
echo "Backing $name > $dest/$
pg_dump -U postgres -Ft -b $name > $dest/$
echo "... Backup finished"
-------
When I run "sudo /home/gaali/
Does my shell command requiring password cause the crontab failure?
Please help me!!!
Any suggestion would be highly appreciated!
... Orgil
tags: | added: backup cron crontab shell ubuntu |
Changed in ubuntu: | |
status: | New → Invalid |
status: | Invalid → New |
Changed in ubuntu: | |
assignee: | nobody → Orgil Dashzeveg (orgilhp) |
Sounds like you're looking for the .pgpass file: www.postgresql. org/docs/ current/ static/ libpq-pgpass. html
http://
If that doesn't work right away, a great place for help is the PostgreSQL mailing lists: www.postgresql. org/community/ lists/
http://