Updating Media Indexes on Synology NAS: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
No edit summary
Line 25: Line 25:


== Re-index media files ==
== Re-index media files ==
<div class="alert alert-warning">TODO: Research the differences between command line re-indexing and re-indexing through the DSM Control Panel.</div>
=== Command line ===


* SSH to NAS server
* SSH to NAS server
* Navigate to the directory to be re-indexed<br /><pre>$ synoindex -R dirpath</pre>
* Navigate to the directory to be re-indexed<br /><pre>$ synoindex -R dirpath</pre>
* `synoindex -h` for all command line options.<ref>[https://codesourcery.wordpress.com/2012/11/29/more-on-the-synology-nas-automatically-indexing-new-files/ More on the Synology NAS Automatically Indexing New Files] ("codesourcery" blog, 11/29/2012)<br />''This includes a Python script for watching for file system changes and triggering the `synoindex` command.''</ref>
* `synoindex -h` for all command line options.<ref>[https://codesourcery.wordpress.com/2012/11/29/more-on-the-synology-nas-automatically-indexing-new-files/ More on the Synology NAS Automatically Indexing New Files] ("codesourcery" blog, 11/29/2012)<br />''This includes a Python script for watching for file system changes and triggering the `synoindex` command.''</ref>
* `synoindex` can be used to retrieve metadata from indexed files.
=== Synology DSM ===
* Login to the DSM with an account with administrator priviledges.
* '''Control Panel''' > '''System''' > '''Media Indexing''' > '''Media Indexing''' tab > '''Re-index''' button.
* It will report '''Indexing media files''', which is a slow process.


== Notes ==
== Notes ==
<references />
<references />

Revision as of 20:36, 16 October 2015

Goal

Files are saved to a Windows 7 directory.

A scheduled task copies those files to a remote NAS drive.

A task runs on NAS that re-indexes its media nightly (making it available to Photo Station).

How to re-index NAS so the files are available in Photo Station before the nightly indexing.

Enable the command line on NAS

  • Log in to DSM.
  • Enable SSH
    • Open the Terminal Services Menu, from the Network Services Folder
    • Enable the SSH Service.
    • Click OK.
  • Grant remote access.
    • Open the Firewall Menu, from the Network Services Folder
    • Double click enabled rule
    • In Ports Section, press Select button next to Select from a list of built-in applications
    • Make sure Port 22 (SSH) is enabled
    • Click OK twice and then Save.[1]

Re-index media files

TODO: Research the differences between command line re-indexing and re-indexing through the DSM Control Panel.

Command line

  • SSH to NAS server
  • Navigate to the directory to be re-indexed
    $ synoindex -R dirpath
  • synoindex -h for all command line options.[2]
  • synoindex can be used to retrieve metadata from indexed files.

Synology DSM

  • Login to the DSM with an account with administrator priviledges.
  • Control Panel > System > Media Indexing > Media Indexing tab > Re-index button.
  • It will report Indexing media files, which is a slow process.

Notes

  1. Enabling the Command Line Interface (Synology Wiki)
  2. More on the Synology NAS Automatically Indexing New Files ("codesourcery" blog, 11/29/2012)
    This includes a Python script for watching for file system changes and triggering the synoindex command.