Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhrv652/public_html/Sources/Load.php(194) : runtime-created function on line 3

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhrv652/public_html/Sources/Load.php(194) : runtime-created function on line 3
Print Page - BackUP MySQL Baze Podataka

forum.hrvatski-hosting.com

WebHosting i Streaming => WebHosting i Domene => Topic started by: admin on July 05, 2009, 12:49:08 PM

Title: BackUP MySQL Baze Podataka
Post by: admin on July 05, 2009, 12:49:08 PM
Kako napravit backup MySQL baze

U vasem cPanelu idete na

Advanced --> Cron Jobs --> Advanced (Unix Style)

* * * * * => Pokrece svake minute
0 * * * * => Pokrece svaki sat
0 0 * * * => Pokrece svaki put u ponoc
0 0 0 * * => Pokrece svaki mjesec
0 0 0 0 * => Pokrece svaki tjedan


*     *   *   *    *  naredba za izvrsavanje
-     -    -    -    -
|     |     |     |     |
|     |     |     |     +----- dan u tjednu (0 - 6) (Nedjelja=0)
|     |     |     +------- mjesec (1 - 12)
|     |     +--------- dani u mjesecu (1 - 31)
|     +----------- sati (0 - 23)
+------------- minute (0 - 59)
 

Znaci ako bi zeljeli da backup ide svaki dan u ponoc stavite

0 0 * * *

Ukoliko biste zeljeli da backup ide svake nedjelje u 03:00
0 3 * * 0

Preporuceno vrijeme za backup je iza 02:00 u noci, kada ima najmanje posjetitelja na vasim stranicama.

Pod Command stavite naredbu

mysqldump -u USER_NAME_BAZE -pPASSWORD_BAZE IME_BAZE | gzip > /home/VAS_HOME_DIR/baza-backup.gz

PRIMJER:
mysqldump -u ivan_korisnik -pmojasifra ivan_smf | gzip > /home/ivan/smf.gz