Can you please look at this and help me?

#!/bin/bash
login="jim"
pass="password"
host="192.168.1.10"
remote_dir="/data//movies/"
local_dir="/mnt/user/downloads/movies/"
port=22270
pget=5
parts=5

lftp -p $port -u $login,$pass sftp://$host <<-EOF
set mirror:use-pget-n $parts
mirror -v --no-empty-dirs --Move -c -P$pget $remote_dir $local_dir
EOF

The behavior that I get is that the 'movies' directory is removed from the
remote server.
My understanding is that if the remote directory has a slash at the end
that it wouldn't remove it.

Can you please help? I'm not sure if this is a bug or user error.

Thank you for making such an awesome program!

-Jim
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to