<commit_before>#!/bin/bash
#Author: github.com/jeonghoonkang

rsync -avhz --partial '--rsh=ssh -p PORTNUM' /var/lib/motion/*.jpg tinyos@IP or URL:webdav/gw/cam<commit_msg>Update cam_copy.sh<commit_after>#!/bin/bash
#Author: github.com/jeonghoonkang
#for RaspberryPi, should use \;

rsync -avhz --partial '--rsh=ssh -p PORTNUM' /var/lib/motion/*.jpg tinyos@IP or URL:webdav/gw/cam

rm /home/pi/cam_data/*.*
find /var/lib/motion/ -type f -mtime 0 -maxdepth 1 -name '*.jpg' -exec cp '{}' /home/pi/cam_data \;
rsync -avhz '--rsh=ssh -p2' /home/pi/cam_data/*.jpg ID@IP:webdav/gw/cam/motion
{'fraction_non_alphanumeric': 0.1917808219178082, 'fraction_numerical': 0.005136986301369863, 'mean_word_length': 3.717741935483871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6176091', 'n_tokens_mistral': 272, 'n_tokens_neox': 252, 'n_words': 51}