PDA

View Full Version : Remote script (cron) ?


ricardo
09-07-2006, 12:35 PM
Hi, I have a VPS working fine under cPanel and want to backup last 31 days (daily backup's of the WHM)


First I have an account at Surfspeedy (to hold backup's), but they send me a mail that I was using to much space (15% of my disk space account), I answer the mail telling then exactly what I was doing. One hour later my account was deleted without a mail, phone, etc. They lost my data (of course I have an aditional backup). They also rob may money...... (one reason more to stay with PowerVps).
But when it work, I have a cron a script to move the files every day and everything work's great.

#!/bin/sh
rm -rf /home/myaccount/server2/rotation/daily/$(date +"%d")
mkdir /home/myaccount/server2/rotation/daily/$(date +"%d")
cp -R /home/myaccount/server2/cpbackup/daily/* /home/myaccount/server2/rotation/daily/$(date +"%d")


Now I create an account at godaddy (same story, full backup each day) and backup work fine, but godaddy doesnt have a cron option !!

I supose that I can use my VPS cPanel cron to execute the script or a PHP that call the script, but I dont know how to do it !!

And the security ?


PD: Sorry for my english, but my natural language is spanish