Jump to content

Recommended Posts

Posted

Ok, I searched the forums and could not seem to find what I am looking for so I'm posting this.

 

I'll just list what I need...

 

Cron #1

I need a someone to tell me how to make a cron file that can..

 

Backup my public html folder and all its sub-folders

Backup a specific mysql database

 

zip the html folder in its own file

output the mysql to a text sql file

then zip both of those files together

 

Needs to be done everynight @ a 0100 and needs to overwrite the same file everynight

 

----------------------------------------

Cron #2,

Needs all of the above, but needs to be ftp'd to an external source once a week.

 

------------------------------

 

Also, I need someone to inform me how to excute these crons in the cron tool in the cpanel. Sorry if this might be a double post from someone else.

 

Sean

Posted

Not exactly what you are looking for, but the easiest method is to let cPanel do the work for you. You can use something like the script I wrote to cron the cpanel backup that will FTP the entire account backup to a remote server every time it's run.

 

Otherwise, you are basically asking for some rather specific scripts to be written for you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...