Prepare the NAS
Turn on the SFTP service or WebDAV with HTTPS, and create a dedicated user and folder. The NAS must be reachable from the internet, for example via DynDNS and port forwarding. If that is not possible, reverse SSH connects a source via a computer with OpenSSH.