From 176dc58b616d056c73e78e6d425649be361ea53d Mon Sep 17 00:00:00 2001 From: jenz Date: Wed, 9 Sep 2026 16:05:54 +0200 Subject: [PATCH] had forgotten putting updated r2 shell script here --- fastdl_sync/r2_update.sh | 65 ++++++++++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 22 deletions(-) diff --git a/fastdl_sync/r2_update.sh b/fastdl_sync/r2_update.sh index 63c5b2a..335268e 100644 --- a/fastdl_sync/r2_update.sh +++ b/fastdl_sync/r2_update.sh @@ -1,30 +1,51 @@ -#!/usr/bin/sh -#run full reclone when arguement is given -if [ $# -eq 1 ] - then - echo 'doing long run with all files being updated.' - #svencoop - rclone copy /home/gameservers/fastdl/svencoop/svencoop_addon r2demo:/svencoop/ - #gmod zs - rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/maps r2demo:/gmod_zs/maps/ - 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/gmod_zs/models r2demo:/gmod_zs/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/gmod_zs/resource r2demo:/gmod_zs/resource/ - rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/gmod_zs/particles r2demo:/gmod_zs/particles/ +#!/usr/bin/sh +#run full reclone when arguement is given +if [ $# -eq 1 ] + then + echo 'doing long run with all files being updated.' + #svencoop + rclone copy --no-traverse --no-update-modtime /home/gameservers/fastdl/svencoop/svencoop_addon r2demo:unloze-r2/svencoop/ + + #ZE server + 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/css_ze/models r2demo:unloze-r2/css_ze/models/ + 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/css_ze/maps r2demo:unloze-r2/css_ze/maps/ + + #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.' #else if no arguement given run default with 30minute maximum. else echo 'doing short run with files younger than 30 minutes.' #svencoop - 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/materials r2demo:/gmod_zs/materials/ - 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/gmod_zs/sound r2demo:/gmod_zs/sound/ - 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/ + rclone copy --max-age 30m --no-traverse --no-update-modtime /home/gameservers/fastdl/svencoop/svencoop_addon r2demo:unloze-r2/svencoop/ + #ZE server + 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/css_ze/models r2demo:unloze-r2/css_ze/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/css_ze/maps r2demo:unloze-r2/css_ze/maps/ + + #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.' fi