hello folks, been so busy lately haven't had time to post.
been trying to read as much as possible, anyway happy holidays,
to those who observe it. is it safe to assume we are all on the
same calendar? if that's true, then happy new years to all also.

anyway, once upon a time...

i wrote my first real script, for use on a box i put together
here at work. i keep getting this error message:

smb_trans 2_request: result =-32, setting invalid
smb_retry: new pid=1730, generation=2

it repeats for each of the three smbmounts. i got the same errors
on the first box i built, which died. i didn't see them on this
second box till today. are these important, is there something
i am doing wrong??

also, is there a way to copy & paste text that has already printed
to the console? i can redirect it if i know i want it before hand,
but if it's already there, well then, that is my problem.

i've attached a copy of the script also, if that helps. it is my first
one, though this is actually it's fourth or fifth rewrite. i've
commented it out just incase. the real script doesn't have the
comments in it.

thanx for your help all,


<!-- begin script sample--!>

# #!/bin/bash
# DAT=`date +%m-%d-%Y-%H.%M.%S`
#
# # mount the NT drives, not very safe i know...
# smbmount //bram/docs /mnt/backup/docs -Uuser%password
# smbmount //bram/swetc /mnt/backup/sw/etc -Uuser%password
# smbmount //bram/sw54 /mnt/backup/sw/sw54 -Uuser%password
#
# # what time did the back up start...
# echo "started at: `date`" > /var/log/backup/$DAT.log
#
# # start the backup
# if [ -f /mnt/temp1/mount-safe ] ; then
#       echo "/dev/hdb1 is mounted ok"
#       tar -czvf /mnt/temp1/docs.$DAT.tar.gz /mnt/backup/docs
#       tar -czvf /mnt/temp1/sw54.$DAT.tar.gz /mnt/backup/sw
# else
#       echo "backup drive not mounted, using bram instead"
#       smbmount //bram/backs /mnt/temp2 -Uuser%password
#       tar -czvf /mnt/temp2/docs.$DAT.tar.gz /mnt/backup/docs
#       tar -czvf /mnt/temp2/sw54.$DAT.tar.gz /mnt/backup/sw
#       smbumount /mnt/temp2
# fi
#
# # ok, what time did it end
# echo "ended at: `date`" >> /var/log/backup/$DAT.log
#
# # umount the backup directories
# smbumount /mnt/backup/docs
# smbumount /mnt/backup/sw/etc
# smbumount /mnt/backup/sw/sw54
#
# # show that it worked.
# cat /var/log/backup/$DAT.log
#
# unset DAT

<!--end script samle--!>

--
michael.jones {
   erleichda.archiving; usa
}


Reply via email to