No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with
15 additions and
2 deletions
-
bin/clear-archives
-
bin/copy-fixed-archive
-
cron/voicegardens
|
@ -4,7 +4,7 @@ echo "Spitting out todays date and time ..." |
|
|
date |
|
|
date |
|
|
|
|
|
|
|
|
echo "Deleting doesitsparkjoy.voicegardens.org archive ..." |
|
|
echo "Deleting doesitsparkjoy.voicegardens.org archive ..." |
|
|
rm -rf /var/www/doesitsparkjoy.voicegardens.org/archives/* |
|
|
rm -rf /var/www/doesitsparkjoy.voicegardens.org/voicegardens/archives/* |
|
|
|
|
|
|
|
|
echo "Deleting voicegardens.org archive ..." |
|
|
echo "Deleting voicegardens.org archive ..." |
|
|
rm -rf /var/www/voicegardens.org/archives/* |
|
|
rm -rf /var/www/voicegardens.org/voicegardens/archives/* |
|
|
|
@ -0,0 +1,10 @@ |
|
|
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
echo "Spitting out todays date and time ..." |
|
|
|
|
|
date |
|
|
|
|
|
|
|
|
|
|
|
echo "Copying over the doesitsparkjoy.voicegardens.org fixed archive ..." |
|
|
|
|
|
cp /var/www/doesitsparkjoy.voicegardens.org/voicegardens/fixed-archive /var/www/doesitsparkjoy.voicegardens.org/voicegardens/archive |
|
|
|
|
|
|
|
|
|
|
|
echo "Copying over the voicegardens.org fixed archive ..." |
|
|
|
|
|
cp /var/www/voicegardens.org/voicegardens/fixed-archive /var/www/voicegardens.org/voicegardens/archive |
|
@ -2,3 +2,6 @@ SHELL=/bin/bash |
|
|
|
|
|
|
|
|
# every morning at 09:00, clear the archives |
|
|
# every morning at 09:00, clear the archives |
|
|
0 9 * * * /var/www/doesitsparkjoy.voicegardens.org/bin/clear-archives | tee -a /var/log/voicegardens.org.log |
|
|
0 9 * * * /var/www/doesitsparkjoy.voicegardens.org/bin/clear-archives | tee -a /var/log/voicegardens.org.log |
|
|
|
|
|
|
|
|
|
|
|
# every morning at 09:01, copy over the fixed archive |
|
|
|
|
|
1 9 * * * /var/www/doesitsparkjoy.voicegardens.org/bin/copy-fixed-archive | tee -a /var/log/voicegardens.org.log |
|
|