So right now I use rsync to synchronize files with a server. Sometimes the files on the server are deleted (I know about the --delete option and I do not use it) and those files are left in my local directory for me to clean up later. Unfortunately this requires me to pull up the list of files on the server, figure out which files are no longer on the server, and move them to a different local directory. I want to somehow automate this process. I do not know if such an option exists in rsync, but I would settle for anything as long as it would get automate this repetitive task. Does anyone know how this could be accomplished?
I figured it out on my own. The solution is to mount the SFTP directory from the server to a local directory using