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

    Shared Folder (simple command line request)

    Scheduled Pinned Locked Moved Help and Support
    drasticsave files
    5 Posts 3 Posters 463 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.
    • AddisonA
      Addison
      last edited by

      Hi.

      I would like all of the files that are read and written from this folder:
      /opt/retropie/configs/nds/drastic/backup

      To have all that be done here instead:
      /home/pi/RetroPie/saves

      The reason for this is that I use Cloud Saving and have everything in a single folder.

      Cheers. :)

      S RapidEdwin08R 2 Replies Last reply Reply Quote 0
      • S
        sleve_mcdichael @Addison
        last edited by

        Would a symlink work?

        ln -s /opt/retropie/configs/nds/drastic/backup /home/pi/RetroPie/saves
        

        Or flip-flop if you need to. First one is the "real" directory where the files exist, second one is the "shortcut" that will point to it. Most things won't care which is which but cloud saving might.

        AddisonA 1 Reply Last reply Reply Quote 1
        • AddisonA
          Addison @sleve_mcdichael
          last edited by Addison

          @sleve_mcdichael said in Shared Folder (simple command line request):

          Would a symlink work?

          ln -s /opt/retropie/configs/nds/drastic/backup /home/pi/RetroPie/saves
          

          Or flip-flop if you need to. First one is the "real" directory where the files exist, second one is the "shortcut" that will point to it. Most things won't care which is which but cloud saving might.

          Yes and no on that working.

          For some reason, Drastic is very much different than the other emulators so it doesn't trigger the cloud saving feature script I have installed.

          ln -s /opt/retropie/configs/nds/drastic/backup /home/pi/RetroPie/saves
          

          How can I remove that symlink please?

          I guess with Drastic, I'll just do manual file transfers using FTP on a tablet.

          EDIT:

          Yeah, I have no idea what I'm doing here. :D

          pi@retropie:~ $ rm -f /home/pi/RetroPie/saves
          rm: cannot remove '/home/pi/RetroPie/saves': Is a directory
          pi@retropie:~ $ rm -f /opt/retropie/configs/nds/drastic/backup
          rm: cannot remove '/opt/retropie/configs/nds/drastic/backup': Is a directory
          
          
          S 1 Reply Last reply Reply Quote 0
          • S
            sleve_mcdichael @Addison
            last edited by sleve_mcdichael

            @addison

            rm: cannot remove '/home/pi/RetroPie/saves': Is a directory
            

            That means the directory already existed; thus, the symlink was unable to be created.

            Use rmdir to remove a directory (it has to be empty. Or you can use rm -r to recursively remove the non-empty directory and everything in it. Be careful with rm -r.) A symlink, since it's not a directory, can be removed with a simple rm.

            1 Reply Last reply Reply Quote 1
            • RapidEdwin08R
              RapidEdwin08 @Addison
              last edited by

              @addison
              Could try to mount the folder instead of symbolic link?

              mount --bind /opt/retropie/configs/nds/drastic/backup /home/pi/RetroPie/saves
              

              Try it first manually, if it works for you, add the mount command to autostart.sh or rc.local

              Raspberry Pi B, Pi B+, Pi2 B, Pi3 B, Pi3 B+, Pi Zero W, Pi4 (4GB/8GB), Pi5 (8GB/16GB), Pi Zero 2 W, GPi V1, minisforum GK50 / RetroPie 4.8.x

              1 Reply Last reply Reply Quote 1
              • 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.