Skip to content

Commit

Permalink
webcam footage goes to filestore through rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-grace authored Aug 19, 2022
1 parent 8e4713f commit 84add54
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions uryrrod/cron
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Move the webcam footage over to the filestore
0 */6 * * * root /home/motion/movempg.sh
4 changes: 4 additions & 0 deletions uryrrod/movempg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

cd /home/motion
rsync -a --remove-sent-files --files-from=<(find . -mtime +8m -name "*.mpg") . urysteve.ury:/filestore/Webcams
5 changes: 4 additions & 1 deletion urysteve/cron
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
0 23 * * * root /usr/local/bin/backup_dbs.sh

# this is from root's crontab
10 * * * * /usr/local/sbin/backups-hourly.sh
10 * * * * /usr/local/sbin/backups-hourly.sh

# Prune Webcam Footage
20 4 * * * root find /filestore/Webcams -mtime +90 -delete

0 comments on commit 84add54

Please sign in to comment.