This is the script I have, it uses the lftp
command. How can I rewrite that script so it does the same but does not use lftp? It would be great if a standard linux tool is used.
#!/bin/bash
HOST=''
USER=''
PASS=''
TARGETFOLDER='/'
C_DIR=$(readlink -f .)
SOURCEFOLDER=$C_DIR'/exports'
lftp -f "
open $HOST
user $USER $PASS
lcd $SOURCEFOLDER
mirror --reverse --verbose --ignore-time --only-newer $SOURCEFOLDER $TARGETFOLDER
bye
";
mv exports/*.xml exports/_exports_done/
Thanks for helping!