help aout error script?
ok here is the problem...
with script that i have created i can copy folders fro one server to another, and the script is working ok...
but when i try to copy a folder who is not on that server the script is exiting and report error...how can i make the script to tell me that there is no folder with such name on server when i try to copy nonexisting name...just to report an error not to exit...
here is some example:
echo -n "Enter the name from which server you are copying :"
#if [ "$SOURCE" != "" ]
#echo "There is no folder with name $SOURCE!"
echo -n "Enter the name from which server do you like to paste the copy :"
rsync -Waq /vservers/$SOURCE/ /vservers/$DESTINATION/
echo "The copying between servers was successful completed !"
thanks in advance!!!
I forget to use the full path to $SOURCE directory, see the edited post
Re: My bad
THANKS MAN YOU ARE THE BEST! :)
|All times are GMT -5. The time now is 08:34 AM.|