I'm trying to upload the files from my local server into SFTP and delete the local files once after it's successfully uploaded into the SFTP server. I have used the below command for this purpose.
lftp sftp://server:[email protected] -e "mirror -e -R /Local/file/ /Remote/file/ ; bye"
This command is helping me to upload the files successfully but it's not deleting the local files. Please help me out on this.
2.1m questions
2.1m answers
60 comments
57.0k users