Here’s an lftp script to rename a remote file vi FTP without downloading the file:
1 2 3 4 5 6 7 8 9 10 |
#!/bin/bash NAS_HOST=myhost NAS_USER=myuser NAS_PASS=mypass SRC=$1 DST=$2 lftp -c "open -e \"mv $SRC $DST\" -u $NAS_USER,$NAS_PASS $NAS_HOST" |