diff --git a/NAS/syn-console-command.md b/NAS/syn-console-command.md index 105470e..686a5cd 100644 --- a/NAS/syn-console-command.md +++ b/NAS/syn-console-command.md @@ -2,7 +2,7 @@ title: Synology - консольные команды description: published: true -date: 2024-11-27T08:35:34.807Z +date: 2024-11-27T14:47:15.469Z tags: ssh, synology editor: markdown dateCreated: 2024-11-27T08:35:34.807Z @@ -13,3 +13,57 @@ dateCreated: 2024-11-27T08:35:34.807Z synopkgctl stop SynologyPhotos && synopkgctl start SynologyPhotos ``` +## Реиндексация фото и видео +``` +synoindex -a /volume3/photo/PhotoLibrary/2024/11/ +synoindex -R all +``` + +Help: +``` +bash-4.4# synoindex --help +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 +``` \ No newline at end of file