Advertisement
Guest User

CP script

a guest
May 23rd, 2023
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #FILL OUT BOTH DIRECTORIES CORRECTLY BEFORE RUNNING
  4.  
  5. #steamdeck save directory will look something like this
  6. #for yuzu saves the save folder should contain album, solo_##, storage, and option.save
  7. steamdeck_files="/run/media/mmcblk0p1/Emulation/saves/yuzu/randomdigits/randomdigits/gameid/"
  8.  
  9. #usb save directory will look something like this
  10. #ensure that the last folder in the directory is the folder that contains album, slot_##, storage, and option.save
  11. usb_files="/run/media/deck/usbdevice/pcsaves/"
  12.  
  13.  
  14. #the -r switch is for coping directories recursively (meaning you can copy directories and files)
  15. #the -v switch will tell you what has been copied and where
  16.  
  17. #this will copy the usb saves to the steamdeck
  18. cp -r -v $usb_files/* $steamdeck_files/
  19.  
  20. #this will copy the steamdeck saves to the usb
  21. #cp -r -v $steamdeck_files/* $usb_files/
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement