Hi cPanel experts,
I have a client that uses cPanel. I want to run a daily job to copy a file if it exists to back it up.
Some logic is required.
if file_exists(a){
copy a to b
} else {
//do nothing
}
I would write this in PHP and execute it as a cronjob, if I knew how to do that.
Or should I create an .sh file (upload via FTP only available) and execute that?
Don't have access to SSH.
Thoughts?
Thanks
Craig
I have a client that uses cPanel. I want to run a daily job to copy a file if it exists to back it up.
Some logic is required.
if file_exists(a){
copy a to b
} else {
//do nothing
}
I would write this in PHP and execute it as a cronjob, if I knew how to do that.
Or should I create an .sh file (upload via FTP only available) and execute that?
Don't have access to SSH.
Thoughts?
Thanks
Craig