4,549,856 th visitor since 2017.2.1 ( Today : 6248 )
Computer ???
No. 67
Name. swindler
Subject. Backup Shell Script
Main Cate. Linux
Sub Cate.
Date. 2005-07-07 15:51
Hit. 3180 (210.124.73.182)
File.
##############################################################################
#
# Mysql Backup SCRIPT by swindler
# at 2002/11/06
#
# source directory : /var/lib/mysql
# target directory : /data/mysql_backup
# 매일 06:00 분에 저장된다. (crontab사용)
#
##############################################################################
#!/bin/sh

filename="mysql_backup_$(date +20%y%m%d).tar.gz"
cd /var/lib/mysql
echo $filename
tar cvzf "$filename" *
mv "$filename" /data/mysql_backup/





crontab 설정
00 06 * * * /var/lib/mysql/backup.sh

[바로가기 링크] : http://coolx.net/cboard/computer/67



Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog