Hi there, i have created a script and it was working fine before. But now strange things are happening.
the data on the /backup/A filesystem are also being written to all the filesystems.
But when i run the script interactively, it works normal.
Hoping for your quick response.
BACK_TIME=`date +"%Y%m%d"`
LOCAL_DIR_A=backup/A
LOCAL_DIR_B=backup/B
LOCAL_DIR_C=backup/C
LOCAL_DIR_D=backup/D
LOCAL_DIR_E=backup/E
echo "\nRun Date and Time:" >> /tmp/$BACK_TIME.log
date >> /tmp/$BACK_TIME.log
# Procedure 1. For A Filesystem
cd /$LOCAL_DIR_A/$BACK_TIME;
find . -print |cpio -pdlmv /A
# Procedure 2. For /B Filesystem
cd /$LOCAL_DIR_B/$BACK_TIME;
find . -print |cpio -pdlvm /B
# Procedure 3. For /C Filesystem
cd /$LOCAL_DIR_C/$BACK_TIME;
find . -print |cpio -pdlvm /C
# Procedure 4. For /usr/fiji Filesystem
cd /$LOCAL_DIR_D/$BACK_TIME;
find . -print |cpio -pdlvm /D
# Procedure 5. For /usr/samoa Filesystem
cd /$LOCAL_DIR_E/$BACK_TIME;
find . -print |cpio -pdlvm /E
the data on the /backup/A filesystem are also being written to all the filesystems.
But when i run the script interactively, it works normal.
Hoping for your quick response.
BACK_TIME=`date +"%Y%m%d"`
LOCAL_DIR_A=backup/A
LOCAL_DIR_B=backup/B
LOCAL_DIR_C=backup/C
LOCAL_DIR_D=backup/D
LOCAL_DIR_E=backup/E
echo "\nRun Date and Time:" >> /tmp/$BACK_TIME.log
date >> /tmp/$BACK_TIME.log
# Procedure 1. For A Filesystem
cd /$LOCAL_DIR_A/$BACK_TIME;
find . -print |cpio -pdlmv /A
# Procedure 2. For /B Filesystem
cd /$LOCAL_DIR_B/$BACK_TIME;
find . -print |cpio -pdlvm /B
# Procedure 3. For /C Filesystem
cd /$LOCAL_DIR_C/$BACK_TIME;
find . -print |cpio -pdlvm /C
# Procedure 4. For /usr/fiji Filesystem
cd /$LOCAL_DIR_D/$BACK_TIME;
find . -print |cpio -pdlvm /D
# Procedure 5. For /usr/samoa Filesystem
cd /$LOCAL_DIR_E/$BACK_TIME;
find . -print |cpio -pdlvm /E