- Remote server with SSH configured
- sshpass lib installed on local server:
sudo apt-get install sshpass
cd ~/
git clone https://github.com/augustokemp/postgresql-remote-db-restore.git
- Change the variable values in the CONFIG.SH file
sh start-backup.sh
sudo nano /etc/crontab
- Add the following line
0 8 * * 1,2,3,4,5 root cd ~/postgresql-remote-db-restore && sh start-backup.sh