Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@mail scripts]# ls -l respmail
- -rwxr-xr-x 1 root root 114 Jun 30 12:05 respmail
- [root@mail scripts]# cat respmail
- DATE=`date +"%F.%Hh.%Mm.%Ss"`
- DIR="/backup/mail/02Server-$DATE"
- mkdir $DIR
- tar czvf "$DIR/$DATE.tar.gz /var/mail"
- [root@mail scripts]# ./respmail
- tar: Cowardly refusing to create an empty archive
- Try `tar --help' or `tar --usage' for more information.
- [root@mail scripts]# pwd
- /usr/scripts
- [root@mail scripts]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement