Apnea Board Forum - CPAP | Sleep Apnea
SD card data transfer or dump. - Printable Version

+- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums)
+-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area)
+--- Forum: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum)
+--- Thread: SD card data transfer or dump. (/Thread-SD-card-data-transfer-or-dump)



SD card data transfer or dump. - Phill - 05-07-2016

I am looking to keep a backup of my SD card on an external HD, I know there is going to be a simple answer, but the only way I have found so far is transferring the four files using the 'Send To' function.
Any suggestions?

And yes, I will try to remember to lock the SD card before I start.Oh-jeez

Thanks


RE: SD card data transfer or dump. - palerider - 05-07-2016

there's a lot more than four files on there.


RE: SD card data transfer or dump. - surferdude2 - 05-07-2016

There are lots of ways to do that so here's one. Open a Windows Notebook session and copy/paste the script below into the file. Save it as SDbackup.bat and place it somewhere handy. You will need to edit the script and change the X to whatever you SD card is being recognized as on your computer. Mine happens to be H but yours will likely be something else. Then change the C to whatever your external drive is recognized as.

xcopy /h/i/c/k/e/r/y X:\ C:\SDbackup

Running that file by double-clicking it will copy the entire contents of the SD drive to a folder called SDbackup on the root of your chosen drive.

Dude


RE: SD card data transfer or dump. - FrankNichols - 05-07-2016

(05-07-2016, 11:25 AM)surferdude2 Wrote: There are lots of ways to do that so here's one. Open a Windows Notebook session and copy/paste the script below into the file. Save it as SDbackup.bat and place it somewhere handy. You will need to edit the script and change the X to whatever you SD card is being recognized as on your computer. Mine happens to be H but yours will likely be something else. Then change the C to whatever your external drive is recognized as.

xcopy /h/i/c/k/e/r/y X:\ C:\SDbackup

Running that file by double-clicking it will copy the entire contents of the SD drive to a folder called SDbackup on the root of your chosen drive.

Dude

Not a windows script person, but does that copy invisible files? Or I guess more importantly will it copy all files regardless of permissions?

(It doesn't mater, I run OS-X and Linux, but I am just curious)



RE: SD card data transfer or dump. - surferdude2 - 05-07-2016

Yes, it will copy all files, including Hidden and System, if they are present.

Dude
btw: If wanting to restore from this SDbackup folder, Sleepyhead will import these files directly from the SDbackup folder whereas ResScan requires you to move them to the root of a drive, leaving the SDbackup folder behind, and have no other files present on that drive. Keep in mind that any notes you have made while resident in the program will not be backed up or restored.


RE: SD card data transfer or dump. - Phill - 05-08-2016

Thanks Frank, will save that for a day I have a clear head.


RE: SD card data transfer or dump. - FrankNichols - 05-08-2016

I love it when I get credit for someone else's help Smile

j/k


RE: SD card data transfer or dump. - surferdude2 - 05-08-2016

And well deserved I will add! :like:

As your reward, I'll link you to my web storage site for downloading a batch file that will take all the work out of setting up an SD card backup process.

Just download this batch file and place it anywhere you want the backup folder to reside. Make a Desktop shortcut to it for convenience and you're all set. Running it will copy the full contents of the SD card from your PAP to a backup folder named SDbackup, located where you put the batch file, overwriting any previous backups so you'll always have the latest copy.

SDbackup batch file


It's pretty much of a kludge but will get the job done. For assurance and understanding, it looks like this inside:

<batch file script>

:: Place this batch file on the root of the system drive
:: so the SDbackup folder will be created there.

@ECHO OFF
IF EXIST D:\datalog\ GOTO :D
IF EXIST E:\datalog\ GOTO :E
IF EXIST F:\datalog\ GOTO :F
IF EXIST G:\datalog\ GOTO :G
IF EXIST H:\datalog\ GOTO :H
IF EXIST I:\datalog\ GOTO :I
IF EXIST J:\datalog\ GOTO :J
@ECHO Backup failed to find a source.
GOTO :end

:D
xcopy /h/i/c/k/e/r/y d:\DATALOG SDbackup\DATALOG\
xcopy /h/i/c/k/e/r/y d:\SETTINGS SDbackup\SETTINGS\
xcopy /h/i/c/k/e/r/y d:\Identification.crc SDbackup\
xcopy /h/i/c/k/e/r/y d:\Identification.tgt SDbackup\
xcopy /h/i/c/k/e/r/y d:\STR.crc SDbackup\
xcopy /h/i/c/k/e/r/y d:\STR.edf SDbackup\
@ECHO Backup was successful from D: drive
GOTO :end
:E
xcopy /h/i/c/k/e/r/y e:\DATALOG SDbackup\DATALOG\
xcopy /h/i/c/k/e/r/y e:\SETTINGS SDbackup\SETTINGS\
xcopy /h/i/c/k/e/r/y e:\Identification.crc SDbackup\
xcopy /h/i/c/k/e/r/y e:\Identification.tgt SDbackup\
xcopy /h/i/c/k/e/r/y e:\STR.crc SDbackup\
xcopy /h/i/c/k/e/r/y e:\STR.edf SDbackup\
@ECHO Backup was successful from E: drive
GOTO :end
:F
xcopy /h/i/c/k/e/r/y f:\DATALOG SDbackup\DATALOG\
xcopy /h/i/c/k/e/r/y f:\SETTINGS SDbackup\SETTINGS\
xcopy /h/i/c/k/e/r/y f:\Identification.crc SDbackup\
xcopy /h/i/c/k/e/r/y f:\Identification.tgt SDbackup\
xcopy /h/i/c/k/e/r/y f:\STR.crc SDbackup\
xcopy /h/i/c/k/e/r/y f:\STR.edf SDbackup\
@ECHO Backup was successful from F: drive
GOTO :end
:G
xcopy /h/i/c/k/e/r/y g:\DATALOG SDbackup\DATALOG\
xcopy /h/i/c/k/e/r/y g:\SETTINGS SDbackup\SETTINGS\
xcopy /h/i/c/k/e/r/y g:\Identification.crc SDbackup\
xcopy /h/i/c/k/e/r/y g:\Identification.tgt SDbackup\
xcopy /h/i/c/k/e/r/y g:\STR.crc SDbackup
xcopy /h/i/c/k/e/r/y g:\STR.edf SDbackup
@ECHO Backup was successful from G: drive
GOTO :end
:H
xcopy /h/i/c/k/e/r/y h:\DATALOG SDbackup\DATALOG\
xcopy /h/i/c/k/e/r/y h:\SETTINGS SDbackup\SETTINGS\
xcopy /h/i/c/k/e/r/y h:\Identification.crc SDbackup\
xcopy /h/i/c/k/e/r/y h:\Identification.tgt SDbackup\
xcopy /h/i/c/k/e/r/y h:\STR.crc SDbackup\
xcopy /h/i/c/k/e/r/y h:\STR.edf SDbackup\
@ECHO Backup was successful from H: drive
GOTO :end
:I
xcopy /h/i/c/k/e/r/y i:\DATALOG SDbackup\DATALOG\
xcopy /h/i/c/k/e/r/y i:\SETTINGS SDbackup\SETTINGS\
xcopy /h/i/c/k/e/r/y i:\Identification.crc SDbackup\
xcopy /h/i/c/k/e/r/y i:\Identification.tgt SDbackup\
xcopy /h/i/c/k/e/r/y i:\STR.crc SDbackup\
xcopy /h/i/c/k/e/r/y i:\STR.edf SDbackup\
@ECHO Backup was successful from I: drive
GOTO :end
:J
xcopy /h/i/c/k/e/r/y J:\DATALOG SDbackup\DATALOG\
xcopy /h/i/c/k/e/r/y J:\SETTINGS SDbackup\SETTINGS\
xcopy /h/i/c/k/e/r/y J:\Identification.crc SDbackup\
xcopy /h/i/c/k/e/r/y J:\Identification.tgt SDbackup\
xcopy /h/i/c/k/e/r/y J:\STR.crc SDbackup\
xcopy /h/i/c/k/e/r/y J:\STR.edf SDbackup\
@ECHO Backup was successful from J: drive
GOTO :end
:end

pause

<end batch file script>


RE: SD card data transfer or dump. - Phill - 05-09-2016

Put it down to an age thing.Oh-jeez

Thanks surfer, wish I had your skills.