i have a website on host1. And would like a script on host2 to run and copy a backup file from host 1, once per week.
Currently, once per week, a cron job creates a backup on host1 into a zip file.
example "[login to view URL]"
i need you to write simple software, install it on host2, and make it run with a cron job.
your software will run, connected to host 1, and download the zip file.
once the file has been download, it will send an email confirmation that the backup was completed successfully, and or not successfully, with a link to where the file can be downloaded.
additionally, every 4 times, the oldest file should be deleted from host2, so that host2 does not run out of space.
there should be an easy to use config file, so we can define the following:
=======================================
Host1
IP
username
password
backup-file-path
Host2
save-to-path
number-of-file-to-keep = 4 (it means it will deleted any files older than the 4 current files)
email backup at [login to view URL]
password ne3289sj392
smtp [login to view URL]
domain [login to view URL]
=====================================
the sample email should look like this
Subject: Offsite Backup Success [login to view URL]
Content:
01/31/2016 3am Backup Successfully
You may download your backed up file here [login to view URL]
Additional Working Terms & Requirements:
=========================================
- i will work with a designer directly. I will not work with middlemen and project managers
- Working hours - must be available USA, California time for review and modifications
- Must have a stable, fast internet / power
- Must have a cell phone for emergency
- Must have skype with voice calling
- must speak basic English
I am not from USA but what u can ask for is an easy task.
Some cron jobs on server 2 need - one is a rsync command which can copy the arhive file from server 1 and which can be configured to send email too if transfer finished.
One cron job which can verify from a location how many file they are and which one is the older one to keep only 4 files and detele the 5th one.
let me know.