updated fastdl_sync with gmod stuff. used specific path structures that i was asked to use.

This commit is contained in:
jenz
2025-07-26 15:36:27 +02:00
parent 0045b37f29
commit f174a8a5b1
7 changed files with 118 additions and 102 deletions
+20 -17
View File
@@ -1,20 +1,20 @@
#!/usr/bin/sh
#run full reclone when arguement is given
if [ $# -eq 1 ]
then
echo 'doing long run with all files being updated.'
#ZE server
rclone copy /home/gameservers/fastdl/css_ze/materials r2demo:/css_ze/materials/
rclone copy /home/gameservers/fastdl/css_ze/models r2demo:/css_ze/models/
rclone copy /home/gameservers/fastdl/css_ze/maps r2demo:/css_ze/maps/
rclone copy /home/gameservers/fastdl/css_ze/sound r2demo:/css_ze/sound/
#ZR server
rclone copy /home/gameservers/fastdl/css_zr/materials r2demo:/css_zr/materials/
rclone copy /home/gameservers/fastdl/css_zr/models r2demo:/css_zr/models/
rclone copy /home/gameservers/fastdl/css_zr/maps r2demo:/css_zr/maps/
rclone copy /home/gameservers/fastdl/css_zr/sound r2demo:/css_zr/sound/
#MG server
rclone copy /home/gameservers/fastdl/css_mg/materials r2demo:/css_mg/materials/
#!/usr/bin/sh
#run full reclone when arguement is given
if [ $# -eq 1 ]
then
echo 'doing long run with all files being updated.'
#ZE server
rclone copy /home/gameservers/fastdl/css_ze/materials r2demo:/css_ze/materials/
rclone copy /home/gameservers/fastdl/css_ze/models r2demo:/css_ze/models/
rclone copy /home/gameservers/fastdl/css_ze/maps r2demo:/css_ze/maps/
rclone copy /home/gameservers/fastdl/css_ze/sound r2demo:/css_ze/sound/
#ZR server
rclone copy /home/gameservers/fastdl/css_zr/materials r2demo:/css_zr/materials/
rclone copy /home/gameservers/fastdl/css_zr/models r2demo:/css_zr/models/
rclone copy /home/gameservers/fastdl/css_zr/maps r2demo:/css_zr/maps/
rclone copy /home/gameservers/fastdl/css_zr/sound r2demo:/css_zr/sound/
#MG server
rclone copy /home/gameservers/fastdl/css_mg/materials r2demo:/css_mg/materials/
rclone copy /home/gameservers/fastdl/css_mg/models r2demo:/css_mg/models/
rclone copy /home/gameservers/fastdl/css_mg/maps r2demo:/css_mg/maps/
rclone copy /home/gameservers/fastdl/css_mg/sound r2demo:/css_mg/sound/
@@ -45,5 +45,8 @@ else
rclone copy --max-age 30m --no-traverse /home/gameservers/fastdl/svencoop/svencoop_addon r2demo:/svencoop/
#gmod zs
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/gmod_zs/gamemodes r2demo:/gmod_zs/gamemodes/
rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/addons r2demo:/gmod_zs/addons/
echo 'Finished short run with files younger than 30 minutes.'
fi