Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

SD card data transfer or dump.
#1
SD card data transfer or dump.
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
Post Reply Post Reply
#2
RE: SD card data transfer or dump.
there's a lot more than four files on there.
Post Reply Post Reply
#3
RE: SD card data transfer or dump.
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
Post Reply Post Reply
#4
RE: SD card data transfer or dump.
(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)
I am not a Medical professional and I don't play one on the internet.
Started CPAP Therapy April 5, 2016
I'd Rather Be Sleeping
Post Reply Post Reply
#5
RE: SD card data transfer or dump.
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.
Post Reply Post Reply
#6
RE: SD card data transfer or dump.
Thanks Frank, will save that for a day I have a clear head.
Post Reply Post Reply
#7
RE: SD card data transfer or dump.
I love it when I get credit for someone else's help Smile

j/k
I am not a Medical professional and I don't play one on the internet.
Started CPAP Therapy April 5, 2016
I'd Rather Be Sleeping
Post Reply Post Reply
#8
RE: SD card data transfer or dump.
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>
Post Reply Post Reply
#9
RE: SD card data transfer or dump.
Put it down to an age thing.Oh-jeez

Thanks surfer, wish I had your skills.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question OK TO IMPORT SLEEP DATA FROM OLD SD CARD INTO OSCAR W/O MESSING UP CURRENT DATA? Plmnb 1 77 Today, 01:07 AM
Last Post: Ibrumley
  Viatom/WellUE data is different than OSCAR displayed data GordK 3 292 02-23-2024, 04:48 PM
Last Post: GordK
  Data structure / data definition of AirSense 11 CD, CMSd50+ or OSCAR?hing obvious, … Perickson 4 1,629 02-18-2024, 01:49 PM
Last Post: Perickson
  AirSense 11 Data download csv file vs. card tkblizard 3 494 12-29-2023, 04:33 PM
Last Post: SarcasticDave94
  Archive SD card data txrpls 3 803 12-18-2023, 07:11 PM
Last Post: txrpls
  can i download the data of the sd card? ness1125 2 441 10-05-2023, 09:34 PM
Last Post: Crimson Nape
  Changed data directory from OneDrive, Now can't read data Rich66 9 1,028 08-24-2023, 11:32 PM
Last Post: Rich66


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.