had forgotten putting updated r2 shell script here
This commit is contained in:
+43
-22
@@ -1,30 +1,51 @@
|
|||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
#run full reclone when arguement is given
|
#run full reclone when arguement is given
|
||||||
if [ $# -eq 1 ]
|
if [ $# -eq 1 ]
|
||||||
then
|
then
|
||||||
echo 'doing long run with all files being updated.'
|
echo 'doing long run with all files being updated.'
|
||||||
#svencoop
|
#svencoop
|
||||||
rclone copy /home/gameservers/fastdl/svencoop/svencoop_addon r2demo:/svencoop/
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/svencoop/svencoop_addon r2demo:unloze-r2/svencoop/
|
||||||
#gmod zs
|
|
||||||
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/maps r2demo:/gmod_zs/maps/
|
#ZE server
|
||||||
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/materials r2demo:/gmod_zs/materials/
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_ze/materials r2demo:unloze-r2/css_ze/materials/
|
||||||
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/models r2demo:/gmod_zs/models/
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_ze/models r2demo:unloze-r2/css_ze/models/
|
||||||
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/sound r2demo:/gmod_zs/sound/
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_ze/sound r2demo:unloze-r2/css_ze/sound/
|
||||||
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/resource r2demo:/gmod_zs/resource/
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_ze/maps r2demo:unloze-r2/css_ze/maps/
|
||||||
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/particles r2demo:/gmod_zs/particles/
|
|
||||||
|
#ZR server
|
||||||
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_zr/materials r2demo:unloze-r2/css_zr/materials/
|
||||||
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_zr/models r2demo:unloze-r2/css_zr/models/
|
||||||
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_zr/sound r2demo:unloze-r2/css_zr/sound/
|
||||||
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_zr/maps r2demo:unloze-r2/css_zr/maps/
|
||||||
|
|
||||||
|
#MG server
|
||||||
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_mg/materials r2demo:unloze-r2/css_mg/materials/
|
||||||
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_mg/models r2demo:unloze-r2/css_mg/models/
|
||||||
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_mg/sound r2demo:unloze-r2/css_mg/sound/
|
||||||
|
rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/css_mg/maps r2demo:unloze-r2/css_mg/maps/
|
||||||
echo 'Finished long run with all files updated.'
|
echo 'Finished long run with all files updated.'
|
||||||
#else if no arguement given run default with 30minute maximum.
|
#else if no arguement given run default with 30minute maximum.
|
||||||
else
|
else
|
||||||
echo 'doing short run with files younger than 30 minutes.'
|
echo 'doing short run with files younger than 30 minutes.'
|
||||||
#svencoop
|
#svencoop
|
||||||
rclone copy --max-age 30m --no-traverse /home/gameservers/fastdl/svencoop/svencoop_addon r2demo:/svencoop/
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/svencoop/svencoop_addon r2demo:unloze-r2/svencoop/
|
||||||
#gmod zs
|
#ZE server
|
||||||
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/maps r2demo:/gmod_zs/maps/
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_ze/materials r2demo:unloze-r2/css_ze/materials/
|
||||||
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/materials r2demo:/gmod_zs/materials/
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_ze/models r2demo:unloze-r2/css_ze/models/
|
||||||
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/models r2demo:/gmod_zs/models/
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_ze/sound r2demo:unloze-r2/css_ze/sound/
|
||||||
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/sound r2demo:/gmod_zs/sound/
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_ze/maps r2demo:unloze-r2/css_ze/maps/
|
||||||
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/resource r2demo:/gmod_zs/resource/
|
|
||||||
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/particles r2demo:/gmod_zs/particles/
|
#ZR server
|
||||||
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_zr/materials r2demo:unloze-r2/css_zr/materials/
|
||||||
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_zr/models r2demo:unloze-r2/css_zr/models/
|
||||||
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_zr/sound r2demo:unloze-r2/css_zr/sound/
|
||||||
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_zr/maps r2demo:unloze-r2/css_zr/maps/
|
||||||
|
|
||||||
|
#MG server
|
||||||
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_mg/materials r2demo:unloze-r2/css_mg/materials/
|
||||||
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_mg/models r2demo:unloze-r2/css_mg/models/
|
||||||
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_mg/sound r2demo:unloze-r2/css_mg/sound/
|
||||||
|
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/css_mg/maps r2demo:unloze-r2/css_mg/maps/
|
||||||
echo 'Finished short run with files younger than 30 minutes.'
|
echo 'Finished short run with files younger than 30 minutes.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user