I have a Linux/Cpanel server which runs a backup every 2 days. The backup [url removed, login to view] ile is around 30GB.
I need a simple PERL/PHP cronjob script that will be set to run every 2 days to check what is the latest 30GB file (you can checking all 25+ GB files in the directory "/home/myusername/" and taking the file which is modified less than 2 days ago).
- Launch SFTP from this current server
- Connect to another Linux Barebone Server (no cPanel, this is just SFTP access).
- Transfer the file over
Need an email to be sent on either one of these event:
- Successful upload of the backup file
- Any failures