|
#1
|
|||
|
|||
|
Hi all,
today i have deleted a table of my db . Do Hostgator have a copy of backup?
|
|
#2
|
|||
|
|||
|
Quote:
Just fill out the restore form at www.hostgator.com/restore.php |
|
#3
|
|||
|
|||
|
Hi php_dev,
Why aren't you doing regular backups?
|
|
#4
|
|||
|
|||
|
Thank you for the fast reply. I have just filled the form and now i hope for the backup (47000 rows).
|
|
#5
|
||||
|
||||
|
Hello php_dev,
He/she may be. There could have been numerous amounts of changes within the last 24 hours.
__________________
Have a great day, Evan |
|
#6
|
|||
|
|||
|
Hi Impavidus,
my db is more than 90mb and i don't have adsl but a connection with a gps (190kbs). From today i will doing regular backups every 2 days. |
|
#7
|
||||
|
||||
|
You can get a different account to send the backups to..when I was a reseller I used a dreamhost plan ($20 for the first year) to store backups.
__________________
Follow me on Twitter! http://twitter.com/mrw |
|
#8
|
||||
|
||||
|
Hello php_dev,
Please see: http://forums.hostgator.com/showthread.php?t=18501 http://forums.hostgator.com/showthread.php?t=12786 http://forums.hostgator.com/showthread.php?t=17075
__________________
Have a great day, Evan |
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
|||
|
|||
|
i have see a rsync example but i want to be able to set the time to start the file.
Last edited by php_dev; 06-21-2007 at 05:58 PM. |
|
#11
|
||||
|
||||
|
Hello php_dev,
Cron jobs aren't my thing.. but check out these threads. http://forums.hostgator.com/showthread.php?t=18338 http://forums.hostgator.com/showthread.php?t=14628
__________________
Have a great day, Evan |
|
#12
|
|||
|
|||
|
Min Hour Day Month WeekDay Command
0 0 * * * php /home/username/backup.php You can use cpanel's Cron Manager to create a job and run this command: php /home/username/backup.php I am using perl mysql backup script for our backups, but I create a php verison which creates backups to the localhost or to a remote server. I can look for it if you want. |
|
#13
|
||||
|
||||
|
Use rsync with the cron...you'll save a LOT of resources and bandwidth.
__________________
Follow me on Twitter! http://twitter.com/mrw |
|
#14
|
|||
|
|||
|
Quote:
.Look for it! i am afraid to manage cronjob (i don't want to do another mistake).0 0 * * * php /home/username/backup.php. The asterisks are for the day,month and weekday. And so the string should be: 0 0 22 6 * php /home/username/backup.php to start the cronjob to midnight of 22 June.It is true? |
|
#15
|
|||
|
|||
|
Quote:
i have already seen your example on another post about rsync but i don't know how to manage linux and so i don't know the differences for rsync and sync. But my db is really big and so if rsync can save resources can you explain me about it? |
|
#16
|
|||
|
|||
|
Hi GatorJay,
Google is spidering my site just now.... how many time for the backup? |
|
#17
|
||||
|
||||
|
Rsync only sends over the changed parts of the database. Even with a 90db database, you have to assume that at least 50-70% of it isn't changing day after day. Rsync only sends the new and changed bits.
__________________
Follow me on Twitter! http://twitter.com/mrw |
|
#18
|
|||
|
|||
|
Thank you slapshotw.This is ok for me. Every day are inserted 1000 new rows and i want to backup only the new rows. In this way i can have updated backup without donload big files every time. What is the string for the rsync?
|
|
#19
|
|||
|
|||
|
PHP Code:
|
|
#20
|
|||
|
|||
|
Quote:
|
|
#21
|
|||
|
|||
|
Thank Impavidus. Great script.
|
|
#22
|
|||
|
|||
|
Hi Impavidus,
If the script allow only local server how i do to start the file? |
|
#23
|
|||
|
|||
|
cron job with the following command:
Code:
php /home/username/path_to_backup_script/backupmysql.php |
|
#24
|
|||
|
|||
|
Done! I have just uploaded the file and started the cronjob. It work fine! Thank you.I am sure your script will be useful for more others users too.
|
|
#25
|
|||
|
|||
|
I glad that the script works fine and everthing else works.
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -6. The time now is 03:33 PM.



. Do Hostgator have a copy of backup?


.Look for it! i am afraid to manage cronjob (i don't want to do another mistake).



