The main difference of the Raspberry Pi operating system from other Linux distributions is that it is optimized to run on ARM processors, especially on the Raspberry Pi, not generating failures or errors and being able to fully exploit the potential of these processors. Its managers use this distribution as a base and, on top of it, implement all of its improvements and features. Raspberry Pi OS is a Linux distribution based on Debian. This distribution was first released in 2015 as an official Debian-based distribution to power this microcomputer. Sudo ddrescue /dev/sdZ /Backups/osmc/osmc-total.img /tmp/log.osmc-totalĪnd everything on the SD will be copied - boot, partitions, data, programs, OS, everything.The Raspberry Pi operating system, formerly known as Raspbian, is one of the best general purpose distros for the Raspberry Pi that we can find. Then I’d reverse theĭdrescue logfile from what was done above.Ĭlear as mudd? This wouldn’t put the boot sector back - do r-pi’s have that? To recreate the partitions for restore on a new disk, there’s an sfdisk import thing - I’d have to look it up. SdZ would be the device as seen on a Linux machine. Sudo ddrescue /dev/sdZ2 /Backups/osmc/osmc-data-29G.img /tmp/ Sudo ddrescue /dev/sdZ1 /Backups/osmc/osmc-boot-204M.img /tmp/ So, on a different machine, I’d run something like these 3 cmds: sudo sfdisk -d /dev/mmcblk0 /Backups/osmc/log.partitions I don’t keep media on the r-pi, just cached data and metadata. That means I need to backup 2 partitions. Use sftp instead.įilesystem Size Used Avail Use% Mounted on Can’t believe we still have to say that 20 yrs later. Use something that is secure and respects your credential security. I’ve never tried to use a GUI for backups - GUIs and root don’t mix and to get a good backup, the process needs to run as root.ĭon’t use FTP. If you don’t need to backup anything except the kodi stuff, you can use any normal linux backup tool like rdiff-backup or rsync or rsnapshot or rbackup and do the backups over a network. Backup at the device level - either whole device or partition. This sort of backup needs to be done off-line - basically remove the SD and connect plug it in elsewhere. Any tool that does bit-4-bit copies will work, they just waste extra storage. I use something like fsarchiver because it backs up with compression and I don’t have to waste an SD just for a backup. Use dd or ddrescue for that, but any Linux cloning tool can work. What’s the best way to backup the SD card each week?Ĭlone the entire card to another of the same size.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |