Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@mail scripts]# ls -lh respmail
- -rwxr-xr-x 1 root root 128 Jun 30 12:31 respmail
- [root@mail scripts]# ./respmail
- tar: Removing leading `/' from member names
- /var/mail
- [root@mail scripts]# cat respmail
- #!/bin/bash
- DATE=`date +"%F.%Hh.%Mm.%Ss"`
- DIR="/backup/mail/02Server-$DATE"
- mkdir $DIR
- tar czvf "$DIR/$DATE.tar.gz" "/var/mail"
- [root@mail scripts]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement