Hot answers tagged cron
Assuming you're using ident authentication (or a .pgpass) for the database I'd probably do something like the following : pg_dump -Udbuser -h127.0.0.1 mydatabase |gzip -c > mydatabase.backup.gz; scp -P 122 mydatabase.backup.gz email@example.com:; rm -f mydatabase.backup.gz Editing to add another option... If it's really important to not have ...
If you are using kerberos enabled NFSv4 ( and I would be highly surprised if you are ) then you need to create some kind of user keytab and use something like kstart at the beginning of the cron job to obtain a kerberos tgt. Otherwise, you should not need any kerberos credentials to access the NFS filesystem. This problem has been around forever in AFS ...
It's not a general answer, but an answer to my problem. My use case was to allow jobs to start EC2 instances. Amazon provides functionality to allow jobs on specific instances to access AWS functionality without storing credentials on the instance itself: http://docs.aws.amazon.com/IAM/latest/UserGuide/role-usecase-ec2app.html
Only top voted, non community-wiki answers of a minimum length are eligible