#!/bin/bash
SHELL=/bin/bash
# get sysdate to variable
wd=`date +%Y_%m_%d`
# get previous day to variable if required
#wd=`date -d "-1 day" +"%Y_%m_%d"`
mount -t smbfs -o username=administrator,password=password //[IP]/Exp /share/winShare
tar -czPf /share/winShare/MiddleDB_$wd.tgz /orabackup/backup/$wd/*
umount /share/winShare
No comments:
Post a Comment