-
Simplest setup for auto-downloading from SFTP to Unraid
Thanks really appreciate all the details. I got it working with setting perms for individual files after tossing the first 4 segments of each line on the log file but then realized the transferred folder permissions were still preventing file deletion. So rather than also search the transfer log and modifying folder perms for all folders as well I found I could simply use the: --no-perms --no-owner --no-group --chmod=777 Less secure, but far simpler and works for my purposes rsync --protocol=31 -avz --no-perms --no-owner --no-group --chmod=777 -e "ssh -v" "$REMOTE_SERVER:$remote_folder" "$local_folder" --remove-source-files
-
Simplest setup for auto-downloading from SFTP to Unraid
Appreciate all the help - I realized my issue - I had: rsync --protocol=31 -avz -e "ssh -v" --remove-source-files "$REMOTE_SERVER":"$remote_folder" "$local_folder" Should have been: rsync --protocol=31 -avz -e "ssh -v" --remove-source-files "$REMOTE_SERVER:$remote_folder" "$local_folder" I also added: chmod -Rv 770 $local_folder chown -Rv nobody:users $local_folder to the end of sync_and_clear() so that I could still delete/ modify the files from my user shares. However this re-applies permissions to every file in the $local_folder. Which could be a problem with slowness/compute time when I'm transferring to massive directories. How would I only apply new rights to files that have just been transferred?
-
Simplest setup for auto-downloading from SFTP to Unraid
Thanks, I got it working in terminal specifying rsync --protocol=31 since my seedbox won't let me update rsync beyond that version. That works successfully when I run it via unraid terminal, but for some reason running the same thing from user scripts throws a "rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] rsync error: unexplained error (code 255) at io.c(232) [Receiver=3.4.1] Error during syncing." So i'll have to experiment more.
-
Specks started following Simplest setup for auto-downloading from SFTP to Unraid
-
Simplest setup for auto-downloading from SFTP to Unraid
I'm looking for recommendations on what plugins or setups to use for automatic transfer of files from an remote server(SFTP) to an unraid local server and then deleting the files on the remote server after the transfer completes. Current Setup: Remote Seedbox with SFTP access /home/remoteserver/media/folder1 /home/remoteserver/downloads/folder2 Unraid local host /data1/folder1 /data1/documents/folder2 Goal: to download all files from seedbox.folder1 and subfolders -> local.folder1 then clear contents of remote.folder1 Then repeat the process on an hourly basis.
Specks
Members
-
Joined
-
Last visited