Move files around.

This commit is contained in:
Darko
2015-05-28 12:36:00 +02:00
parent a5ea73deec
commit ae0434ac11
1403 changed files with 13 additions and 18 deletions
@@ -0,0 +1,11 @@
Inlcuded in this folder are batch files for windows users.
You MUST set your system path to include the PHP path.
Otherwise at the top of each batch file add the line
set Path=“C:\yourpathtoPHP\”
updatebinaries.bat will execute the updatebinaries.php script.
updatereleases.bat will execute the updatereleases.php script.
updatebackill.bat will execute the backfill.php script.
Runme.bat will run a continous loop of update binaries and update releases and will optimise your db every 300 cycles.
Runme_with_scrape.bat is the same thing as Runme, however it will scrape every fifth time, if you are utilizing reqscraper.
Binary file not shown.
@@ -0,0 +1,3 @@
CD..
php.exe optimise_db.php true
quit
+49
View File
@@ -0,0 +1,49 @@
set optimise=1
set limit=111111111111111111111111
:Top
CD..
php.exe update_database_version.php
php.exe update_binaries.php
php.exe update_releases.php
CD win_scripts
set /a optimise=%optimise%+1
if %optimise%==300 goto optimise
:OptimiseDone
set /a tv=%tv%+1
if %tv%==20 goto tv
:TVDone
set /a Movies=%Movies%+1
if %Movies%==20 goto Movies
:moviesDone
Sleep 120
GOTO TOP
:Optimise
CD..
php.exe optimise_db.php
set optimise=0
CD win_scripts
GOTO OptimiseDone
:TV
CD..
php.exe update_tvschedule.php
set tv=0
CD win_scripts
GOTO tvdone
:Movies
CD..
php.exe update_theaters.php
set Movies=0
CD win_scripts
GOTO Moviesdone
@@ -0,0 +1,64 @@
set optimise=1
set scrape=1
set limit=111111111111111111111111
:Top
CD..
php.exe update_database_version.php
php.exe update_binaries.php
php.exe update_releases.php
CD win_scripts
set /a scrape=%scrape%+1
if %scrape%==5 goto scrape
:ScrapeDone
set /a optimise=%optimise%+1
if %optimise%==300 goto optimise
:OptimiseDone
set /a tv=%tv%+1
if %tv%==20 goto tv
:TVDone
set /a Movies=%Movies%+1
if %Movies%==20 goto Movies
:moviesDone
Sleep 120
GOTO TOP
:Optimise
CD..
php.exe optimise_db.php
set optimise=0
CD win_scripts
GOTO OptimiseDone
:Scrape
CD..
CD..
CD reqscraper
php scrape.php
set scrape=0
CD..
CD update_scripts
CD win_scripts
GOTO ScrapeDone
:TV
CD..
php.exe update_tvschedule.php
set tv=0
CD win_scripts
GOTO tvdone
:Movies
CD..
php.exe update_theaters.php
set Movies=0
CD win_scripts
GOTO Moviesdone
@@ -0,0 +1,16 @@
:Top
echo off
cls
:MAINMENU choose option from menu
set /p userinp=Enter the full group name you would like to backfill, or to default to all groups, simply press enter:
set userinp=%userinp%
if "%userinp%"=="" goto All
:SINGLE
CD..
php.exe backfill.php "%userinp%"
:ALL
CD..
php.exe backfill.php
@@ -0,0 +1,3 @@
CD..
php.exe update_binaries.php
quit
@@ -0,0 +1,3 @@
CD..
php.exe update_releases.php
quit