Aller au contenu

DogoB

Membres
  • Compteur de contenus

    4
  • Inscription

  • Dernière visite

À propos de DogoB

Visiteurs récents du profil

Le bloc de visiteurs récents est désactivé et il n’est pas visible pour les autres utilisateurs.

DogoB's Achievements

Newbie

Newbie (1/14)

0

Réputation sur la communauté

  1. J'ai testé avec le code : find /volume1/Surveillance/AccueilWB/ -name "*AM*" -mtime +13 -exec ls -ls {} +; find /volume1/Surveillance/AttenteHD/ -name "*AM*" -mtime +13 -exec ls -ls {} +; find /volume1/Surveillance/AccueilWB/ -name "*AM*" -ctime +13 -exec ls -ls {} +; find /volume1/Surveillance/AttenteHD/ -name "*AM*" -ctime +13 -exec ls -ls {} +; find /volume1/Surveillance/AccueilWB/ -name "*AM*" -atime +13 -exec ls -ls {} +; find /volume1/Surveillance/AttenteHD/ -name "*AM*" -atime +13 -exec ls -ls {} +; find /volume1/Surveillance/AccueilWB/ -name "*PM*" -mtime +13 -exec ls -ls {} +; find /volume1/Surveillance/AttenteHD/ -name "*PM*" -mtime +13 -exec ls -ls {} +; find /volume1/Surveillance/AccueilWB/ -name "*PM*" -ctime +13 -exec ls -ls {} +; find /volume1/Surveillance/AttenteHD/ -name "*PM*" -ctime +13 -exec ls -ls {} +; find /volume1/Surveillance/AccueilWB/ -name "*PM*" -atime +13 -exec ls -ls {} +; find /volume1/Surveillance/AttenteHD/ -name "*PM*" -atime +13 -exec ls -ls {} +; J'obtiens : Tâche : Surveillance 30j Heure de début : Tue, 24 Oct 2017 16:01:22 GMT Heure d’arrêt : Tue, 24 Oct 2017 16:01:23 GMT État actuel : 0 Sortie standard/erreur : 12 -rw-r--r-- 1 root root 36232 Oct 10 12:03 /volume1/Surveillance/AttenteHD/@SSRECMETA/RecLog/20171010AM /volume1/Surveillance/AttenteHD/20171010AM: total 11048 3944 -rw-r--r-- 1 SurveillanceStation SurveillanceStation 4034696 Oct 10 07:10 AttenteHD20171010-071024-1507612224.mp4 7104 -rw-r--r-- 1 SurveillanceStation SurveillanceStation 7271274 Oct 10 08:10 AttenteHD20171010-081029-1507615829.mp4 /volume1/Surveillance/AttenteHD/@SSRECMETA/Thumbnail/20171010AM: total 16 4 -rw-r--r-- 1 root root 3624 Oct 10 07:10 1507612224 4 -rw-r--r-- 1 root root 3500 Oct 10 08:10 1507615829 4 -rw-r--r-- 1 root root 4076 Oct 10 12:03 1507629795 4 -rw-r--r-- 1 root root 3904 Oct 10 12:03 1507629812 12 -rw-r--r-- 1 root root 36232 Oct 10 12:03 /volume1/Surveillance/AttenteHD/@SSRECMETA/RecLog/20171010AM /volume1/Surveillance/AttenteHD/20171010AM: total 11048 3944 -rw-r--r-- 1 SurveillanceStation SurveillanceStation 4034696 Oct 10 07:10 AttenteHD20171010-071024-1507612224.mp4 7104 -rw-r--r-- 1 SurveillanceStation SurveillanceStation 7271274 Oct 10 08:10 AttenteHD20171010-081029-1507615829.mp4 /volume1/Surveillance/AttenteHD/@SSRECMETA/Thumbnail/20171010AM: total 16 4 -rw-r--r-- 1 root root 3624 Oct 10 07:10 1507612224 4 -rw-r--r-- 1 root root 3500 Oct 10 08:10 1507615829 4 -rw-r--r-- 1 root root 4076 Oct 10 12:03 1507629795 4 -rw-r--r-- 1 root root 3904 Oct 10 12:03 1507629812 16 -rw-r--r-- 1 root root 16462 Oct 9 18:34 /volume1/Surveillance/AccueilWB/@SSRECMETA/RecLog/20171009PM_DiskStation_Oct-12-1525-2017_Conflict 28 -rw-r--r-- 1 root root 22728 Oct 9 20:18 /volume1/Surveillance/AttenteHD/@SSRECMETA/RecLog/20171009PM /volume1/Surveillance/AttenteHD/@SSRECMETA/Thumbnail/20171009PM: total 184 4 -rw-r--r-- 1 root root 4064 Oct 9 14:27 1507552044 4 -rw-r--r-- 1 root root 4008 Oct 9 15:02 1507554133 8 -rw-r--r-- 1 root root 4232 Oct 9 16:01 1507557660 8 -rw-r--r-- 1 root root 4208 Oct 9 16:03 1507557792 8 -rw-r--r-- 1 root root 4152 Oct 9 16:03 1507557827 8 -rw-r--r-- 1 root root 4260 Oct 9 16:04 1507557842 8 -rw-r--r-- 1 root root 4168 Oct 9 16:05 1507557896 8 -rw-r--r-- 1 root root 4236 Oct 9 16:23 1507558996 8 -rw-r--r-- 1 root root 4364 Oct 9 16:39 1507559947 8 -rw-r--r-- 1 root root 4480 Oct 9 16:51 1507560678 8 -rw-r--r-- 1 root root 4544 Oct 9 16:51 1507560702 8 -rw-r--r-- 1 root root 4624 Oct 9 16:51 1507560717 8 -rw-r--r-- 1 root root 4444 Oct 9 17:02 1507561373 8 -rw-r--r-- 1 root root 4304 Oct 9 17:14 1507562037 8 -rw-r--r-- 1 root root 4592 Oct 9 17:14 1507562077 8 -rw-r--r-- 1 root root 4576 Oct 9 17:15 1507562102 8 -rw-r--r-- 1 root root 4552 Oct 9 17:18 1507562328 8 -rw-r--r-- 1 root root 4536 Oct 9 17:19 1507562388 8 -rw-r--r-- 1 root root 4544 Oct 9 17:20 1507562409 8 -rw-r--r-- 1 root root 4364 Oct 9 17:36 1507563414 8 -rw-r--r-- 1 root root 4348 Oct 9 17:51 1507564305 8 -rw-r--r-- 1 root root 4360 Oct 9 18:34 1507566837 8 -rw-r--r-- 1 root root 4100 Oct 9 18:34 1507566863 4 -rw-r--r-- 1 root root 3856 Oct 9 19:00 1507568425 4 -rw-r--r-- 1 root root 3644 Oct 9 20:18 1507573112 28 -rw-r--r-- 1 root root 22728 Oct 9 20:18 /volume1/Surveillance/AttenteHD/@SSRECMETA/RecLog/20171009PM /volume1/Surveillance/AttenteHD/@SSRECMETA/Thumbnail/20171009PM: total 184 4 -rw-r--r-- 1 root root 4064 Oct 9 14:27 1507552044 4 -rw-r--r-- 1 root root 4008 Oct 9 15:02 1507554133 8 -rw-r--r-- 1 root root 4232 Oct 9 16:01 1507557660 8 -rw-r--r-- 1 root root 4208 Oct 9 16:03 1507557792 8 -rw-r--r-- 1 root root 4152 Oct 9 16:03 1507557827 8 -rw-r--r-- 1 root root 4260 Oct 9 16:04 1507557842 8 -rw-r--r-- 1 root root 4168 Oct 9 16:05 1507557896 8 -rw-r--r-- 1 root root 4236 Oct 9 16:23 1507558996 8 -rw-r--r-- 1 root root 4364 Oct 9 16:39 1507559947 8 -rw-r--r-- 1 root root 4480 Oct 9 16:51 1507560678 8 -rw-r--r-- 1 root root 4544 Oct 9 16:51 1507560702 8 -rw-r--r-- 1 root root 4624 Oct 9 16:51 1507560717 8 -rw-r--r-- 1 root root 4444 Oct 9 17:02 1507561373 8 -rw-r--r-- 1 root root 4304 Oct 9 17:14 1507562037 8 -rw-r--r-- 1 root root 4592 Oct 9 17:14 1507562077 8 -rw-r--r-- 1 root root 4576 Oct 9 17:15 1507562102 8 -rw-r--r-- 1 root root 4552 Oct 9 17:18 1507562328 8 -rw-r--r-- 1 root root 4536 Oct 9 17:19 1507562388 8 -rw-r--r-- 1 root root 4544 Oct 9 17:20 1507562409 8 -rw-r--r-- 1 root root 4364 Oct 9 17:36 1507563414 8 -rw-r--r-- 1 root root 4348 Oct 9 17:51 1507564305 8 -rw-r--r-- 1 root root 4360 Oct 9 18:34 1507566837 8 -rw-r--r-- 1 root root 4100 Oct 9 18:34 1507566863 4 -rw-r--r-- 1 root root 3856 Oct 9 19:00 1507568425 4 -rw-r--r-- 1 root root 3644 Oct 9 20:18 1507573112 Sincères salutations, Synology DiskStation Puis avec le code en remplaçant le + par \ j'obtiens : Tâche : Surveillance 30j Heure de début : Tue, 24 Oct 2017 16:00:44 GMT Heure d’arrêt : Tue, 24 Oct 2017 16:00:44 GMT État actuel : 0 Sortie standard/erreur : total 16 4 -rw-r--r-- 1 root root 3624 Oct 10 07:10 1507612224 4 -rw-r--r-- 1 root root 3500 Oct 10 08:10 1507615829 4 -rw-r--r-- 1 root root 4076 Oct 10 12:03 1507629795 4 -rw-r--r-- 1 root root 3904 Oct 10 12:03 1507629812 12 -rw-r--r-- 1 root root 36232 Oct 10 12:03 /volume1/Surveillance/AttenteHD/@SSRECMETA/RecLog/20171010AM total 11048 3944 -rw-r--r-- 1 SurveillanceStation SurveillanceStation 4034696 Oct 10 07:10 AttenteHD20171010-071024-1507612224.mp4 7104 -rw-r--r-- 1 SurveillanceStation SurveillanceStation 7271274 Oct 10 08:10 AttenteHD20171010-081029-1507615829.mp4 total 16 4 -rw-r--r-- 1 root root 3624 Oct 10 07:10 1507612224 4 -rw-r--r-- 1 root root 3500 Oct 10 08:10 1507615829 4 -rw-r--r-- 1 root root 4076 Oct 10 12:03 1507629795 4 -rw-r--r-- 1 root root 3904 Oct 10 12:03 1507629812 12 -rw-r--r-- 1 root root 36232 Oct 10 12:03 /volume1/Surveillance/AttenteHD/@SSRECMETA/RecLog/20171010AM total 11048 3944 -rw-r--r-- 1 SurveillanceStation SurveillanceStation 4034696 Oct 10 07:10 AttenteHD20171010-071024-1507612224.mp4 7104 -rw-r--r-- 1 SurveillanceStation SurveillanceStation 7271274 Oct 10 08:10 AttenteHD20171010-081029-1507615829.mp4 16 -rw-r--r-- 1 root root 16462 Oct 9 18:34 /volume1/Surveillance/AccueilWB/@SSRECMETA/RecLog/20171009PM_DiskStation_Oct-12-1525-2017_Conflict total 184 4 -rw-r--r-- 1 root root 4064 Oct 9 14:27 1507552044 4 -rw-r--r-- 1 root root 4008 Oct 9 15:02 1507554133 8 -rw-r--r-- 1 root root 4232 Oct 9 16:01 1507557660 8 -rw-r--r-- 1 root root 4208 Oct 9 16:03 1507557792 8 -rw-r--r-- 1 root root 4152 Oct 9 16:03 1507557827 8 -rw-r--r-- 1 root root 4260 Oct 9 16:04 1507557842 8 -rw-r--r-- 1 root root 4168 Oct 9 16:05 1507557896 8 -rw-r--r-- 1 root root 4236 Oct 9 16:23 1507558996 8 -rw-r--r-- 1 root root 4364 Oct 9 16:39 1507559947 8 -rw-r--r-- 1 root root 4480 Oct 9 16:51 1507560678 8 -rw-r--r-- 1 root root 4544 Oct 9 16:51 1507560702 8 -rw-r--r-- 1 root root 4624 Oct 9 16:51 1507560717 8 -rw-r--r-- 1 root root 4444 Oct 9 17:02 1507561373 8 -rw-r--r-- 1 root root 4304 Oct 9 17:14 1507562037 8 -rw-r--r-- 1 root root 4592 Oct 9 17:14 1507562077 8 -rw-r--r-- 1 root root 4576 Oct 9 17:15 1507562102 8 -rw-r--r-- 1 root root 4552 Oct 9 17:18 1507562328 8 -rw-r--r-- 1 root root 4536 Oct 9 17:19 1507562388 8 -rw-r--r-- 1 root root 4544 Oct 9 17:20 1507562409 8 -rw-r--r-- 1 root root 4364 Oct 9 17:36 1507563414 8 -rw-r--r-- 1 root root 4348 Oct 9 17:51 1507564305 8 -rw-r--r-- 1 root root 4360 Oct 9 18:34 1507566837 8 -rw-r--r-- 1 root root 4100 Oct 9 18:34 1507566863 4 -rw-r--r-- 1 root root 3856 Oct 9 19:00 1507568425 4 -rw-r--r-- 1 root root 3644 Oct 9 20:18 1507573112 28 -rw-r--r-- 1 root root 22728 Oct 9 20:18 /volume1/Surveillance/AttenteHD/@SSRECMETA/RecLog/20171009PM total 184 4 -rw-r--r-- 1 root root 4064 Oct 9 14:27 1507552044 4 -rw-r--r-- 1 root root 4008 Oct 9 15:02 1507554133 8 -rw-r--r-- 1 root root 4232 Oct 9 16:01 1507557660 8 -rw-r--r-- 1 root root 4208 Oct 9 16:03 1507557792 8 -rw-r--r-- 1 root root 4152 Oct 9 16:03 1507557827 8 -rw-r--r-- 1 root root 4260 Oct 9 16:04 1507557842 8 -rw-r--r-- 1 root root 4168 Oct 9 16:05 1507557896 8 -rw-r--r-- 1 root root 4236 Oct 9 16:23 1507558996 8 -rw-r--r-- 1 root root 4364 Oct 9 16:39 1507559947 8 -rw-r--r-- 1 root root 4480 Oct 9 16:51 1507560678 8 -rw-r--r-- 1 root root 4544 Oct 9 16:51 1507560702 8 -rw-r--r-- 1 root root 4624 Oct 9 16:51 1507560717 8 -rw-r--r-- 1 root root 4444 Oct 9 17:02 1507561373 8 -rw-r--r-- 1 root root 4304 Oct 9 17:14 1507562037 8 -rw-r--r-- 1 root root 4592 Oct 9 17:14 1507562077 8 -rw-r--r-- 1 root root 4576 Oct 9 17:15 1507562102 8 -rw-r--r-- 1 root root 4552 Oct 9 17:18 1507562328 8 -rw-r--r-- 1 root root 4536 Oct 9 17:19 1507562388 8 -rw-r--r-- 1 root root 4544 Oct 9 17:20 1507562409 8 -rw-r--r-- 1 root root 4364 Oct 9 17:36 1507563414 8 -rw-r--r-- 1 root root 4348 Oct 9 17:51 1507564305 8 -rw-r--r-- 1 root root 4360 Oct 9 18:34 1507566837 8 -rw-r--r-- 1 root root 4100 Oct 9 18:34 1507566863 4 -rw-r--r-- 1 root root 3856 Oct 9 19:00 1507568425 4 -rw-r--r-- 1 root root 3644 Oct 9 20:18 1507573112 28 -rw-r--r-- 1 root root 22728 Oct 9 20:18 /volume1/Surveillance/AttenteHD/@SSRECMETA/RecLog/20171009PM Sincères salutations, Synology DiskStation Si je met +14 il ne trouve rien. Pourtant il reste bien toujours des dossiers crées le 2 et 3 du 10 par exemple.
  2. Parce qu'elles ne savent pas non plus ne réagir qu'à une zone de détection. Si je ne passe pas par cette vieille version de surveillance station je me retrouve avec plein d'enregistrements inutiles. Pas d'idée sur ce qui ne va pas dans mon script ? Et pourquoi le codage ne permet apparemment pas de connaître la date de création alors que FileStation l'indique ?
  3. Parce que j'avais activé l'option dans surveillance station mais ça ne fonctionne pas du tout. Je n'ai pas la dernière version de surveillance station parce que je n'arrivais pas à y activer la détection de mouvement géré par le NAS en définissant la zone de détection sur l'image.
  4. Bonjour à tous, J'ai cherché sur différents forums afin d'essayer de résoudre mon problème seul mais en vain. J'ai des caméras de vidéosurveillance et je voudrais que les dossiers crées automatiquement pour les prises de vues du matin et de l'après-midi soient supprimés lorsqu'ils ont plus de 30j (et idéalement que si le dossier global de la caméra dépasse une certaine taille les fichiers vidéos les plus vieux soient supprimés même s'ils ont moins de 30j) Mon script est actuellement le suivant dans le planificateur de tâches : find /volume1/Surveillance/AccueilWB/ -name "*AM*" -mtime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AttenteHD/ -name "*AM*" -mtime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AccueilWB/ -name "*AM*" -ctime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AttenteHD/ -name "*AM*" -ctime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AccueilWB/ -name "*AM*" -atime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AttenteHD/ -name "*AM*" -atime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AccueilWB/ -name "*PM*" -mtime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AttenteHD/ -name "*PM*" -mtime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AccueilWB/ -name "*PM*" -ctime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AttenteHD/ -name "*PM*" -ctime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AccueilWB/ -name "*PM*" -atime +13 -exec rm -rf {} + ; find /volume1/Surveillance/AttenteHD/ -name "*PM*" -atime +13 -exec rm -rf {} + ; Il fonctionne en partie. Certains anciens dossiers et leur contenu sont supprimés. Mais pas tous ! J'ai mis m c et atime pour vraiment tout essayer. J'ai lu qu'on ne sait pas utiliser la date de création alors que FileStation est capable de l'indiquer. Je trouve cela étrange. Lorsque je regarde dans FileStation pour moi d'autres dossiers correspondent à ces critères et ne sont pas supprimés. (photo jointe script exécuté le 23/10, il reste des dossiers de plus de 13j). Je n'obtient pas de rapport d'erreur pour le moment. Avant j'avais parfois un message d'erreur de dossier non trouvé alors qu'il avait été supprimé par le script. Je n'ai aucune expérience en codage. Merci de votre aide
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.