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.
1.4m articles
1.4m replys
5 comments
56.9k users