|
#1
|
|||
|
|||
|
I want to automate the backup process for my site instead of manually doing it through CPanel. Is there a command that I can use to generate a full backup? I would like to create a simple script that creates the backup then FTP's it to a remote server.
Thanks, Eric |
|
#2
|
||||
|
||||
|
This can be done with a Cron job. I'm not certain of the exact syntax required, but I am sure there is info on the web. I'll see what I can find. If anyone else knows how to set up the Cron, feel free to chime in.
![]() -Justin |
|
#3
|
|||
|
|||
|
http://www.totalchoicehosting.com/help/id207.htm
I found this which seems to be exactly what you want. I havent run it myself so am not sure as to how well it works. Edit: ignore that, the file 404's Edit: found another copy of the php file: Click here for fullbackup.php source Last edited by psylenced; 11-08-2004 at 07:05 PM. |
|
#4
|
|||
|
|||
|
Thanks psylenced...
I'll give it a try. |
|
#5
|
|||
|
|||
|
Unfortunately my ftp server runs on a port other than 21 and I don't think that the cpbackup support that...
It looks like I can first create a backup in the home directory with: $params = "dest=homedir&email=$notifyemail&submit=Genera te Backup"; And then write the ftp part to my server.... |
|
#6
|
|||
|
|||
|
One thing you might have to take into account, the backup isnt created instantly (as far as i can recall), so you might need to set up a cron to create the backup then schedule the ftp an hour or 2 later.
|
|
#7
|
|||
|
|||
|
Yeah, I thought about that. My thought was that I would just compare the filesize every 5 seconds or so and when they are the same, it would be safe to assume that the backup is complete...make sense?
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My Story, | tuxmaster | Customer Reviews | 6 | 10-08-2004 02:03 PM |
| Backup | sgcom | Pre-Sales Questions | 5 | 10-05-2004 11:30 PM |
| site suspended backup | oblomov | Shared Hosting Support | 7 | 08-22-2004 10:06 AM |
| [Open] Full BackUp | local | Shared Hosting Support | 2 | 08-03-2004 08:51 PM |
All times are GMT -5. The time now is 03:41 AM.










