10 lines
729 B
Bash
Executable File
10 lines
729 B
Bash
Executable File
#!/bin/bash
|
|
log_file=classics_cron.log
|
|
|
|
echo "STARTING CLASSIC 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/classics -e "ssh -i /home/$USER/.ssh/id_rsa_what " invalid@unity.whatbox.ca:/home/invalid/files/_classics/ /home/$USER/shares/disk1/classics >> /home/$USER/logs/$log_file
|
|
echo "CRON CLASSIC 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/classics > /home/$USER/logs/chmod_classics.log
|
|
echo "CRON CHMOD CLASSIC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/chmod_classics.log
|
|
|