Advertisement
Shuddertrix

rp5_backup_boot.sh

Jan 2nd, 2025
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. # Script designed for Retroid Pocket 5 on Android 13
  2. # Backs up boot_a and boot_b partitions to "bootbackup" directory on internal storage
  3. # Backups are timestamped with the date and time dd was launched
  4. # The timestamps may have different seconds because of how long it takes to run dd
  5. mkdir -p /storage/emulated/0/bootbackup
  6. dd if=/dev/block/by-name/boot_a of=/storage/emulated/0/bootbackup/boot_a-backup-$(date +%F-%T)
  7. dd if=/dev/block/by-name/boot_b of=/storage/emulated/0/bootbackup/boot_b-backup-$(date +%F-%T)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement