'backup script'에 해당되는 글 1건

  1. 2009.04.08 메일서버 백업 스크립트


#!/bin/bash
dstring="backup_`date +'%y%m%d'`.tar.gz"

/etc/init.d/network stop                                                           
tar cfz $dstring "/home/vpopmail/domains/domain.kr"
/etc/init.d/network start
Server="1.1.1.1" 
UsrID="asdf"
Password="asdf"


ftp -n $Server <<End-Of-Session
user $UsrID $Password
binary
put "$dstring"
bye
End-Of-Session

# rm -f $dstring

저작자 표시
신고
Posted by 김주일

티스토리 툴바