Merge branch 'master' of ssh://repo.or.cz/srv/git/recordtv
[recordtv.git] / cronscripts / recordtv-schedule
blob5083bbac386f545587029c031103488ff95e88bf
1 #!/bin/sh
3 df -h /
4 echo
6 nice -n 20 /home/tv/apps/recordtv/src/recordtv --schedule-recordings --delete-old --convert --install-dir /home/tv/apps/recordtv/
8 # Delete files that are older than 7 days old in the "old" directory
9 echo
10 echo "Deleting old .ts files:"
11 find /home/tv/Videos/Recorded/old -name "*.ts" -and -mtime +7 -and -not -name "The_Wire*" -print -delete
13 # Delete files that are older than 30 days old in the "old" directory
14 echo
15 echo "Deleting old recording log files:"
16 find /home/tv/.recordtv/recording_log -mtime +30 -print -delete
18 #echo
19 #echo "Moving files to server:"
20 #cd /home/tv/Videos/Wii
21 #find ./ -type f -not -name "*_converting*" -exec /home/tv/apps/recordtv/scripts/move_to_server.sh {} ";"