From dedeeea07ea143f9151cbf070d02ffa9fc33346c Mon Sep 17 00:00:00 2001 From: Morten Date: Fri, 28 Jan 2022 14:55:39 +0100 Subject: [PATCH] Upload files to '' --- RetroPieSaveGameBackup.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 RetroPieSaveGameBackup.sh diff --git a/RetroPieSaveGameBackup.sh b/RetroPieSaveGameBackup.sh new file mode 100644 index 0000000..3d17c01 --- /dev/null +++ b/RetroPieSaveGameBackup.sh @@ -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 \ No newline at end of file