There have been two different methods to solve this
The methods have to be verified to be working with PostGreSQL and should hopefully be combined on how to scheduling backup too.