有冇辦法可以 sync 呢兩個 folders ?

本帖最後由 TimCook 於 2015-11-3 21:47 編輯

上面個係 DS115j 嘅 internal folder,下面個係 mount 咗 MyBookLive 嘅 folder.

Screen Shot 2015-11-03 at 9.38.12 PM-0001.jpg
2015-11-3 21:45

上面個係 DS115j 嘅 internal folder,下面個係 mount 咗 MyBookLive 嘅 folder.
TimCook 發表於 2015-11-3 21:46


如果你想比Audio Station之類app睇埋你個自定folder,
正路係在Media Indexing service加埋你個自定folder入去

不過呢, 我自己都唔鍾意咁做(因為分類同權限問題), 你可以考慮用symlink, 開好folder, telnet入去一句就ok
Ref:  http://www.ocmodshop.com/symboli ... nas-upnp-library/3/

TOP

本帖最後由 TimCook 於 2015-11-4 15:46 編輯
如果你想比Audio Station之類app睇埋你個自定folder,
正路係在Media Indexing service加埋你個自定folde ...
wunit 發表於 2015-11-4 14:00



    唔係,下面嗰 Media Server 唔駛睇倒,只係想定期做 backup 去下面嗰個。
我只會更新上面嗰個,希望只更新上面嗰個,自動 sync 埋下面嗰個(唔駛即時,每日甚至每星期,就算手動都接受)。

TOP

唔係,下面嗰 Media Server 唔駛睇倒,只係想定期做 backup 去下面嗰個。
我只會更新上面嗰個,希望 ...
TimCook 發表於 2015-11-4 15:04


咁你要telnet  入去set schedule Rsync.....
因為S記在UI冇得比你set sync/backup去internal 其他share

TOP

咁你要telnet  入去set schedule Rsync.....
因為S記在UI冇得比你set sync/backup去internal 其他share ...
wunit 發表於 2015-11-4 16:12



    咁睇黎,我自己搞唔掂,我唯有 drop 個 folder 去下面,再揀 skip 等佢自己 copy 啦。

TOP

S記 sync WD,試下係WD爆個rsync入去搞
Q記 sync WD,用RTRR FTP/Samba connect就可以,簡單好多

TOP

本帖最後由 30624700 於 2015-11-5 13:33 編輯

回覆 1# TimCook

邊個話行Rsync要 telnet架, 等我嚟出手啦
  1. /usr/syno/bin/rsync -avx --delete --exclude=.DS_Store --filter="-p @eaDir" /volume1/music/ /volume1/homes/userabc/"Shared Music"
複製代碼
1. Copy my script attached, paste it on a txt file save it as rsync.sh to your desktop. (turn on view file ext feature if you cannot see the .txt extension)
2. Turn on user home service if if was not enabled-- Control Panel, User, Advanced, user Home, Tick enable user home service
3. Upload the script rsync.sh to your nas home folder.
4. Open file station/home, you should see the file rsync.sh, right click and choose open with Text Editor.
5. Change userabc to your NAS login name (user name is better without space and must have admin right), choose file, save.
6. Control Panel, Task Scheduler, Create, user-defined script, name the task as Music Sync, user is root, type the path /volume1/homes/userabc/rsync.sh in user defined script (userabc is your login name).
7. A new task named "Music Sync" should be added, highlight the task & click run, it will start immediately.
7. The schedule of this task can be choose daily, weekly, weekday...whatever, remember to tick the check box if you prefer a scheduled run.


Notes:

1. Make sure "Mount automatic on startup" is choosen when you map the Shared Music folder to NAS.
2. The Music folder from NAS is the source, the Shared Music folder is a backup copy on a device attached to NAS
3. Any files deleted from the Music folder will be disappeared from the Shared Music after sync.
4. All hidden files from source folder are excluded from syncing.

TOP

回覆  TimCook

邊個話行Rsync要 telnet架, 等我嚟出手啦1. Copy my script attached, save it as rsync.s ...
30624700 發表於 2015-11-5 11:13



    多謝師兄出手相助,其實我都唔係咁明白,不過希望我試得倒啦。

TOP

回覆 8# TimCook

個script 已經就晒你嘅folder name嚟寫,你只須改userabc做你個user name,
有唔明再問,隨時候教

TOP

回覆  TimCook

個script 已經就晒你嘅folder name嚟寫,你只須改userabc做你個user name,
有唔明再問,隨 ...
30624700 發表於 2015-11-5 13:11



    實在感激,但⋯⋯
我跟你講嘅整咗,好似下面圖片咁,不過我 Run 佢之後,佢只係閃咗兩次  Loading⋯⋯ 就好似冇做過嘢咁,我睇過,上面個 Music 入面有嘅新歌,下面個 Shared Music 係冇嘅,啫係佢冇工作過,究竟我做錯咗邊度?請指教⋯⋯

Screen Shot 2015-11-05 at 2.35.04 PM-0001.jpg
2015-11-5 14:44


Screen Shot 2015-11-05 at 2.33.38 PM-0001.jpg
2015-11-5 14:45


Screen Shot 2015-11-05 at 2.34.06 PM-0001.jpg
2015-11-5 14:45

TOP