A friend of mine made this script to backup files from all my ubuntu boxes using lftp to an ftp server i setup on my local windows 7 machine using apache and abilityftp server. However it is only backing up some config files(see attached screen), none of the actual directories are being backed up. I can't figure out if the problem lies in the script or what?
#!/bin/bash
FTPUSER=sanders
FTPPASS=law123
SERVERIP="192.168.1.37"
DATE=`date +%D`
for i in `ls /home/`
do
echo "mirror -rR /home/$i $i" | lftp -u $FTPUSER,$FTPPASS $SERVERIP
echo "User $i Backed Up"
done