Kashub's Code Barn - "Automatic database backup"

podświetlone jako javascript (dodał(a) MySQL via CronTab @ 2009-07-15 09:00:00)

Podświetl ten kod w:
Ostatnio dodane:
Losowe wpisy:
#!/bin/bash
cd /home/USERNAME/backups/
mkdir mysql
suffix=$(date +%y%m%d)
mysqldump --opt -u SQLUSERNAME -pSQLPASSWORD -h SQLHOSTNAME SQLBDNME > mysql/backup.$suffix.sql
tar -zcf archives/mysql_backup.$suffix.tar mysql/*
rm -r mysql/
| Sklep z oponami | | Skracacz linków | | Best Stand Mixers UK 2025 | | Best cetrifugal juicers UK | | Jewelry & Accessories UK | | Wigs shop UK | | UK Water Sports Shop | | Hair Care Shop UK | | Toys and Games Shop UK | | Ladies Leggings UK Shop |