Hi Linux/Unix pros,
I'm need to create a script and here's what it need to do:
- SFTP to my Hosting Server (Linux) sftp user@hostingserver.com
- Backup website accounts 1 at a time (This is due to server space). This is the command to backup each cPanel account:
/usr/local/cpanel/scripts/pkgacct sentiments /home
- Pull the backup to source server (Synology) and delete it in the hosting server after transfer.
- Repeat step 1-3 until all accounts has been transferred successfully.
The script will be running from Task Scheduler in synology server.
Also I wonder if port forwarding is needed to do this? I'm hoping not as my internet provider does not allow this.