Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. [root@mail scripts]# ls -l respmail
  2. -rwxr-xr-x 1 root root 114 Jun 30 12:05 respmail
  3. [root@mail scripts]# cat respmail
  4. DATE=`date +"%F.%Hh.%Mm.%Ss"`
  5. DIR="/backup/mail/02Server-$DATE"
  6. mkdir $DIR
  7. tar czvf "$DIR/$DATE.tar.gz /var/mail"
  8. [root@mail scripts]# ./respmail
  9. tar: Cowardly refusing to create an empty archive
  10. Try `tar --help' or `tar --usage' for more information.
  11. [root@mail scripts]# pwd
  12. /usr/scripts
  13. [root@mail scripts]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement