#!/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