
21 Oct
2014
21 Oct
'14
6:17 a.m.
Many years ago I used a program named "mirror" that would copy the contents of a FTP server.
I have a script which runs lftp: /usr/local/bin/lftp -c "set ftp:list-options -a; open $FTPURL; cd $RCD; mirror ${MIRROROPT} ${VERBOSEOPT} $DELETE ${FTPOPTIONS}" where ${MIRROROPT} is "" or "-R" (reverse), ${DELETE} is "" or "--delete" and, in the example I just looked at, FTPOPTIONS='--exclude-glob logs/ --exclude-glob *.LCK --exclude-glob .svn/' Regards Peter