Jump to content

[Answered] Run a cron job for PostgreSQL database maintenance


Recommended Posts

Posted

I don't see why not, but I'm not sure whether the cron will have the access necessary to connect to your databases when it runs.

 

The cron should run as your user account. If you need to provide other credentials, read up on the .pgpass file. You can create it and put it in your home folder to provide credentials for psql to use.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...