When files are deleted from Laptop, they will be deleted from NAS #1 foldertosync1, but remain in foldertosync2. (Hardlinks only work on the same mount point, so the two folders on NAS #1 should ideally be in the same parent folder.)įiles created on Laptop would be synced to NAS #1 in foldertosync1, then would be hardlinked into foldertosync2, causing them to be synced to NAS #2. If either filename is deleted, the link count is reduced by one but the physical file remains on disk until there are no filename entries linked to it. Unix hardlinks link an additional filename entry to an existing physical file (“inode”), so no extra disk space is used. A bash script in cron or Synology “Scheduled Task” on NAS #1 then copies files as hardlinks from foldertosync1 to foldertosync2.
0 Comments
Leave a Reply. |