Skip to content

Commit eae8ab1

Browse files
committed
fix errors in cleanup.sh
1 parent dc9b5db commit eae8ab1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cleanup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/bin/sh
22

3-
## delete anything older than 3 days
3+
## delete anything older than 7 days
44
## assumes folder structure like /base/cameras/location/room
5-
find /base/path/to/recordings/*/*/*/ -type d -mtime +7 -exec rm -rf {} \;
5+
find /base/cameras/*/*/* -type f -mtime +7 -exec rm -rf {} \;
66

77

0 commit comments

Comments
 (0)