RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    rclone can't auto upload save to ftp

    Scheduled Pinned Locked Moved Help and Support
    ftpbackuosyncsaves
    1 Posts 1 Posters 244 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      martinex
      last edited by

      I have installed rclone script to backup all saves from retropie (if microsd has died, I don't lost all saves). Scripts download save from ftp everytime when I start game, but don't upload when I finish game (i need make backup by manual from menu emulation station).

      https://github.com/Jandalf81/rclone_script

      pi@retropie:/opt/retropie/configs/all $ cat runcommand-onend.sh 
      #!/bin/bash
      while pgrep omxplayer >/dev/null; do sleep 1; done
      (sleep 2; mpg123 -Z -@  /home/pi/bgm/playlist.m3u >/dev/null 2>&1) &
      emulationstation #auto
      # call script to upload via RCLONE with direction, system and ROM file
      
      ~/scripts/rclone_script/rclone_script.sh "up" "$1" "$3"
      pi@retropie:/opt/retropie/configs/all $ cat runcommand-onstart.sh 
      #!/bin/bash
      
      # call script to download via RCLONE with direction, system and ROM file
      pkill  mpg123
      
      
      ~/scripts/rclone_script/rclone_script.sh "down" "$1" "$3"
      
      rclone_script.log
      1. run tekken 3
      2. finish Tekken 3
      3. Full manual sync from emulation station 
      

      2022-05-27T10:24:49+02:00: INFO rclone_script.sh downloadSaves Started psx/
      2022-05-27T10:24:49+02:00: INFO rclone_script.sh downloadSaves Downloading saves and states for psx/ from ...
      2022-05-27T10:24:49+02:00: INFO rclone_script.sh getAvailableConnection Gateway IP: 192.168.8.1
      2022-05-27T10:24:49+02:00: INFO rclone_script.sh getAvailableConnection Gateway PING successful
      2022-05-27T10:24:49+02:00: INFO rclone_script.sh getAvailableConnection 8.8.8.8 PING successful
      2022-05-27T10:24:50+02:00: INFO rclone_script.sh downloadSaves No remote files found
      2022-05-27T10:27:25+02:00: INFO: Started full sync...

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.