how to backup just one folder on an hourly basis using the crontab option

greentea

Verified User
Joined
Apr 23, 2005
Messages
26
Hi,

We need some programming help on how to backup one of our folders and all of its sub-folders and files within the public_html folder, e.g. /public_html/data and store it on a new folder called /public_html/databackup on an hourly basis using the crontab option.

We cannot use DA's backup option for our purpose because it will backup everything in the public_html folder, which is not what we want, and there is no option to achieve what we want.

Thank you in advance.
 
You could upload a shell script to your server and use the same commands that you would logged in via ssh. Tar the directory recursively and move it to a location of your choice.
Then you would just have your cronjob execute this script as often as you wanted.
 
Back
Top