Upload files to ''
This commit is contained in:
14
RetroPieSaveGameBackup.sh
Normal file
14
RetroPieSaveGameBackup.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Simple script to backup savegames and roms to a network share on each game end/shut down
|
||||||
|
|
||||||
|
BACKUPPATH='/mnt/megabyte/Retro Games/Roms/savegames/'
|
||||||
|
LOCALPATH="/home/pi/RetroPie/roms/"
|
||||||
|
|
||||||
|
# Search through folders for *.srm files
|
||||||
|
# Copy *.srm files from the folders, into network share with the same parent folder
|
||||||
|
|
||||||
|
find $LOCALPATH -name "*.srm" -type f -exec cp {} $BACKUPPATH \;
|
||||||
|
|
||||||
|
|
||||||
|
# Exit
|
||||||
Reference in New Issue
Block a user