October 29, 20241 yr I have unraid 6.12.13 syncing with my linux (unbuntu) desktop pc on my home network using NFS shares and syncthing. When I travel I want to first sync my laptop with my desktop pc before leaving home. I do not need to connect the laptop with my home network until I return home. I have searched around and can find a possible use in Unassigned Devices but it is so complex I am not sure if it is OTT for my simple requirement. I am thinking maybe on the laptop ignoring syncthing and simply use rsync as and when I need the two machines to be identical. However this introduces a manual syncing method when I think it may be possible to use syncthing even for such a simple use, to automate the sync as and when needed. What is the forum thinking on this? Are there any guides available to help me decide which way to choose?
October 29, 20241 yr Community Expert Solution rsync with unraid user plug scripting may be your best bet. you may also want to look into tailscale / twingate as a vpn provider so they can all securly talk to each other as long as there is a data connection. so if I understand you: Unraid and desktop(ubuntu) have a sync and share where data is synced between them... you want a similar sync and access or backup copy on the Laptop. ?Laptop running ubuntu as well? in terms of guides or other sorry i'm not aware of any. but will gladly help where i'm able. ATM Unraid has partnered with Tailscale and it is failry easy to setup as a vpn wihtout any portforwaind mess as tailscale is the brokerage server. ATM I'm using twingate. (My setup has 2 client devices backing up photo medai data) via photsynce over the twingate VPN (simlar to tailscale, as tailscale did work but twingate was easeier and a bit more friendly...) I can help you come up with secure share, rsynce, copy scripts but would need pathing... example unrad nfs share is /mnt/user/???what share name??? desktop has what path you want to sync... etc...
October 29, 20241 yr Community Expert you can use docker copose and setup syncthing across mutiple systems... I tired and wan't a fan and ened up doing other sftp/rsync stuff to tranfer data. woudl need more info not enoth to assist.. like, is the lapto widnows ? mac? chrome book??? https://forum.syncthing.net/t/synctrayzor-windows-host-for-syncthing-installer-auto-start-built-in-browser-tray-icon-folder-watcher-and-more/2011
October 29, 20241 yr Author Thank you @bmartino1 for your offer but I only work inside the home network. I have just finished syncing the laptop to the nas using syncthing. I had one conflict with a jpg so far but its late here so will look at that tomorrow. I read somewhere there is 'conflict' help, instructions, docker, plugin or something available. I sync docs, video, pics and desktop only, for when we travel. ( Madeira end of the month) Its handy to sort trips and take data with you. I never use the laptop apart from that. All my machines are dual boot windows/xubuntu and I am syncing only xubuntu. Windows is only used where necessary for games. I like your use of 'portforwaind'. I used that when I first started into syncing using Nextcloud. Dropped Nextcloud in a few days when I found they had not fixed a serious error for 5 years. I am happy with syncthing. Edited October 29, 20241 yr by makem typo
October 29, 20241 yr Author In my simple case I would like to resolve conflicts simply by making my desktop machine the 'master' and the slave always defaults to the master in a conflict. I am not sure if that could be arranged. Maybe in this statement there is my solution, "If the modification times are equal, the file originating from the device which has the larger value of the first 63 bits for his device ID will be marked as the conflicting file." Needs looking into as a solution for me. Edited October 29, 20241 yr by makem
October 30, 20241 yr Community Expert I assume you decided to go syncthing then. https://forum.syncthing.net/t/best-fodlertype-settings-master-slaves-clients/19517/6 may be better asked on syncthings forum. review the docs. https://docs.syncthing.net/users/advanced.html otherwise if you smb / nfs mount for a copy / rsync command... rsync -anv /master /slave
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.