secw secw
Bookmark

Automatically mirror folder from seedbox to local machine without deleting local files when they are deleted on the seedbox

Posted October 21st, 2018    409   1  

Hey,
Im currently trying to automatically setup a way to download files from my "TV" folder on the seedbox to my TV folder on my local machine.

I already tried out resilio sync but the problem is that resilio sync deletes files from my local machine if they are deleted on the seedbox. Apparently there is no way to turn this off.

I also got syncthing to work and via the "ignore deletes" option managed to get it not to delete files when they are deleted on my seedbox. Unfortunately syncthing is painfully slow for or doesnt sync at all.

Im currently trying to get lftp to work so that it automatically mirrors the specified folders but I just wanted to ask whether anyone has had the same problem and could provide an easy fix for me.

4 Replies

MrAudi

I actually want to do the exact same thing as you and I've just started to look into Resilio for that very purpose. I have a thinking to solve this but I don't know if it'll work.

Can you add the individual sync folders by TV Show name? That way, say Gotham Season 01, is finished airing. All you have to do is delete the sync folder from Resilio in your seedbox so you can delete the files off your seedbox.

tony
tony
Staff

You might want to try "Syncthing" instead of resilioSync, as it is probably able to do what you ask. In syncthing, you can use an ignoreDelete flag to the folder, which should ignore any deletions and only sync new and changed files

https://docs.syncthing.net/advanced/folder-ignoredelete.html?highlight=ignoredeletes

Syncthing is also available an an installable app in your client area of your seedbox

vaiz85
vaiz85

Resilio sync doesn't actually delete the files it just moves them by default to an archive folder in '\"yoursyncfolder".sync\archive' assuming you have the setting "Store Deleted Items in Folder Archive" enabled(its enabled by default). From there you just need create a simple move files script and add it to Windows scheduled tasks. For instance, mine is set to move anything in the archive folder to a permanent directory every morning at 3am.

tony
tony
Staff

I am not sure why syncthing is slow for you, it should not be. Nevertheless, if command line tools are also an option, then rsync or lftp are probably your best choice to do what you want. Both tools are very powerful and can work for any syncing scenario, however, they need to run on a predefined schedule and cannot detect a change in your folder in order to start syncing immediatelly