Looking for Autodownloader tool. reddit / selfhosted ---------------------------------------------------------------------- reissdorf · 2023-12-13 13:03 Hi all, can anyone recommand a dockerized tool, which downloads any file of a given remote path for example via sftp and deletes it afterwards? It should be stateful so downloads can be resumed and a UI would be helpful, too. context : Im doing currently some automated file transfers from machine A to B and the files are being pushed. Now i want to revert the whole thing so that machine B pulls all files it can find on the given Path on machine A. ​ Thanks for your help. ---------------------------------------------------------------------- daYMAN007 · 2023-12-13 14:58 Why in docker? Anyways... Just build a dockerfile that executes like one rsync command... # Use an official base image with rsync installed FROM alpine:latest # Set the working directory inside the container WORKDIR /app # Install rsync RUN apk --no-cache add rsync # Copy the source file to the working directory inside the container COPY source-file.txt . # Run the rsync command to delete the file from source CMD ["rsync", "--delete", "--remove-source-files", "source- file.txt", "/path/to/destination/"] # Use an official base image with rsync installed FROM alpine:latest # Set the working directory inside the container WORKDIR /app # Install rsync RUN apk --no-cache add rsync # Copy the source file to the working directory inside the container COPY source-file.txt . # Run the rsync command to delete the file from source CMD ["rsync", "--delete", "--remove-source-files", "source- file.txt", "/path/to/destination/"] ---------------------------------------------------------------------- cavilesphoto · 2023-12-14 08:10 Syncthing could make it