This commit is contained in:
msnie
2024-02-03 11:58:42 +01:00
parent 17ca1c805f
commit 5b0b5f548c
706 changed files with 135245 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
log_file=flims_cron.log
echo "STARTING MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` > /home/$USER/logs/$log_file ;
/usr/bin/rsync -avz --no-perms --no-owner --no-group --stats --progress --exclude=/home/$USER/shares/disk1/film -e "ssh -i /home/$USER/.ssh/id_rsa_what " invalid@mir.whatbox.ca:/home/invalid/files/_movies/ /home/$USER/shares/disk1/film >> /home/$USER/logs/$log_file
echo "CRON MOVIES FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/$log_file
/usr/bin/chmod 777 -R /home/$USER/shares/disk1/film > /home/$USER/logs/chmod_film.log
echo "CRON CHMOD FILM RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/chmod_film.log