« Synology divers » : différence entre les versions

 
(20 versions intermédiaires par le même utilisateur non affichées)
Ligne 17 : Ligne 17 :


== ascii ==
== ascii ==
générateur texte ascii: http://www.network-science.de/ascii/
générateur texte [[ascii]]: http://www.network-science.de/ascii/


== synchro ssh numero de port ==
== synchro ssh numero de port ==
Ligne 52 : Ligne 52 :


=== On recherche cette ligne ===
=== On recherche cette ligne ===
</pre>
<pre>
# User privilege specification
# User privilege specification
root    ALL=(ALL:ALL) ALL
root    ALL=(ALL:ALL) ALL
Ligne 72 : Ligne 72 :
== supprimer  ==
== supprimer  ==
  find "/rep" -name '*\.txt' -o -name '*\.jpg' -exec rm -f {} \;
  find "/rep" -name '*\.txt' -o -name '*\.jpg' -exec rm -f {} \;
== indexation ==
*Repertoire de la file d'attente
/var/spool
*stop le service d'indexation
synoservicectl --stop synoindexd
*lancer le service d'indexation
synoservicectl --start synoindexd
=== synoindex ===
synoindex -h
<pre>
Usage:
synoindex [OPTIONS]
Index Options:
    -h, --help
        this help text
    -A dirpath
        add a dir
    -a filepath
        add a file
    -D dirpath
        delete a dir
    -d filepath
        delete a file
    -N new_dirpath old_dirpath
        rename a dir
    -n new_filepath old_filepath
        rename a file
    -R [all|media|photo|music|video|thumb|dirpath]
        all:    reindex all dirpath that registered in each package
        media:  reindex dirpath that registered in MediaIndex package
        photo:  reindex photo dirpath
        music:  reindex music dirpath
        video:  reindex video dirpath
        thumb:  check converted video of each video file
        dirpath: reindex this specific dirpath
    -R user:{user_name}
        reindex personal photo dirpath
    -R share:{share_name}
        reindex share dirpath
    -R [type_music|type_video|type_photo]
        reindex dirpath that registered with specific type in MediaIndex
Package Index Options:
    -P [MediaIndex|{package_name}] {index_option}
        index operation only apply on this package
    -p [MediaIndex|{package_name}] {index_option}
        index operation apply all packages except for this package
File Index Options:
    -f {index_option}
        index operation apply on file index
    -U photo
        update photo images
</pre>
*Pour forcer l'indexation, il suffit de lancer
<pre>
synoindex -a le_fichier_téléchargé
synoindex -A le_répertoire_téléchargé
</pre>
<pre>
Copyright (c) 2003-2008 Synology Inc. All rights reserved.
usage:
    Add:    synoindex -a filename
    Delete: synoindex -d filename
    Add folder:    synoindex -A folder
    Delete folder: synoindex -D folder
    Rename/move file/folder:    synoindex -N newfullpath oldfullpath
    Update Photo Images:        synoindex -U photo
    Get from DB:        synoindex -g filename -t [video|music|photo|playlist]
</pre>
source : [https://wacha.ch/wiki/synology wacha.ch/wiki]
=== Désactiver ===
<pre>
sudo -i
1 - stop
/usr/syno/sbin/synoservice --hard-stop synoindexd
2 - disabled
/usr/syno/bin# synoindex_package.sh disable PhotoStation
/usr/syno/bin# synoindex_package.sh disable VideoStation
</pre>
source: https://community.synology.com/enu/forum/17/post/100210


[[category:synology]]
[[category:synology]]