Skip to main content
fix typo in filename. (other changes just to pass six char edit min)
Source Link

If you want toTo automate this on a schedule you could put it in the user's contrabcrontab. Cron jobs won't get the full environment though, but it it might be better to put all the env variables you need in the script itself anyways.

To edit the user's crontab:

sudo crontab -u postgres -e 

If you want to automate this on a schedule you could put it in the user's contrab. Cron jobs won't get the full environment though, but it it might be better to put all the env variables you need in the script itself anyways.

To edit the user's crontab:

sudo crontab -u postgres -e 

To automate this on a schedule you could put it in the user's crontab. Cron jobs won't get the full environment though, but it it might be better to put all the env variables you need in the script itself anyways.

To edit the user's crontab:

sudo crontab -u postgres -e 
Source Link
Kyle Brandt
  • 85.8k
  • 77
  • 318
  • 463

If you want to automate this on a schedule you could put it in the user's contrab. Cron jobs won't get the full environment though, but it it might be better to put all the env variables you need in the script itself anyways.

To edit the user's crontab:

sudo crontab -u postgres -e