I just figured that I would drop a line to let you know that I finally finished the script you were helping me with. I couldn't have done it without your help! I had a few issues with ssh commands and quotation marks, and I was really confused... In some examples, I would have to use " to get it to work, in others '. Take a look below for two examples that look similar but required different styles of quotes in order to work:
ssh $BUSRVR "ls -lt $BUDEST/$BUSUBDIR/ >> $LOGLOCATION4/$BUSUBDIR.txt"
'if [ -d '$BUDEST3/$BUSUBDIR' ];
then echo "Backup destination '$BUDEST3/$BUSUBDIR' already exists. Preparing to remove this incremental backup set...";
echo "Removing old incremental backup set...";
rsync --delete -a /tmp/emptydir/ '$BULOGIN@$BUSRVR:$BUDEST3/$BUSUBDIR/';
if [ `ls -a '$BUDEST3/$BUSUBDIR' | wc -l` -gt "2" ];
then echo "The removal of the incremental backup set did not succeed. Either check your permissions at the backup destination on the server or delete the old backup set manually, and rerun the backup script.";
else echo "Removal of the incremental backup set succeeded.";
else echo "No conflicting incremental backup sets found on the server. Continuing with the backup...";fi'
It took me a while to figure it out, and even then, I was only able to do it because I opened the script in Kate and basically changed the quotes until the syntax highlighting was correct. Yeah, I cheated, but after working on it for a while and getting nowhere, I just needed it done. I can't be without backups for such a long time. I guess I could have used my old basic backup scripts, but who knows where those are now...
So, I never got the mail to an internet address to work, so I just used 'scp' to copy it over my LAN. Good enough, I suppose...
I would put it up here, just for grins, but it is really messy. You can't expect complicated things from a new guy, but it works very well. I am pretty pleased. Now, I can learn other more-technical aspects and rewrite it again at a later date because I just can't leave well-enough alone...
Anyways, thanks a lot for the help. It was greatly appreciated.