Considering making a homebrew app for backing up the SD card. How feasible?

bribri

Full Member
Oct 18, 2018
31
8
In addition to backing up my sysnand, I also make raw backups of my SD card by plugging it into my computer and dumping the entire partition to disk. This way, if my SD card gets corrupted, I can restore it back to exactly how it was just like my sysnand.

With SX OS 2.3 now putting emunand on the SD card, if I make a raw backup of my SD card, it means I'm effectively backing up my entire Switch -- all my saves, my installed games, everything. (At least on the emunand -- this of course doesn't apply to sysnand.)

Since it's inconvenient to make the backups by powering off my Switch, removing the SD card, performing the raw backup, and so on, I was considering making a Homebrew app to do it.

My hope is that it would somehow be able to transfer a raw dump of the entire SD card to a network location or an attached USB drive.

Before I dig too much farther into it, does anyone know how feasible this is?

My main worry is that there's no way to get a proper dump of the SD card when the Switch is currently running off of it. Usually you need to dismount a partition before copying it, otherwise you risk copying incomplete write operations. Maybe this could only be done in a bootloader?