Is there a way to execute a backup and restore of PostgreSQL DB from App server without calling pg_dump from App server and executing pg_restore also on App server. In this way I'm executing operations from App server on DB server and making unnecessary network traffic.
I would like to execute dumping and restoring directly on DB server, but to initiate it from my application.
My current situation if that I make extra network traffic, wait more time and also I need to install PostgreSQL client on my app server.
Any hints?