Creating a system backup

I would like to create a backup of the system and all files of my Jetson AGX Orin Dev Kit 32GB (Jetpack 6.1). If I were to use sudo ./tools/backup_restore/l4t_backup_restore.sh -b cti/// to create a backup image, would I be able to put the backup image to a MicroSD card for flashing later? The backup image would be used to flash the same Jetson AGX Orin if an update or something causes problems.

Hi alpuMUUU:
If you are going to backup and restore on the same system, l4t_backup_restore.sh should do the trick. You can:

  1. sudo ./tools/backup_restore/l4t_backup_restore.sh -b ...... to create image
  2. sudo ./tools/backup_restore/l4t_backup_restore.sh -r ..... to restore the image you created in point 1.
1 Like

Would I be able to move the store the image on a removable storage device to be used later?

Additionally, according to https://support.connecttech.com/hc/en-us/articles/33142872284315-Jetson-Cloning-using-L4T-Backup-and-Restore, sudo ./tools/backup_restore/l4t_backup_restore.sh -b cti/module/board/profile command needs the module, board, and profile. Is this information found when the Jetson is put in recovery mode?

Hi:

You can’t backup image from EMMC and restore it into SD card directly.

Yes. So that you can just sudo ./tools/backup_restore/l4t_backup_restore.sh -b mmcblk0 -e jetson-agx-orin-devkit to backup emmc block.

I am getting problems with the command and had to swap the -b and -e. Additionally, I am receiving errors about having to install Secureboot and an invalid target board.

Hi:
Please run the script in the Linux_for_Tegra folder.

cd Linux_for_Tegra/
sudo ./tools/backup_restore/l4t_backup_restore.sh -e mmcblk0p1 -b jetson-agx-orin-devkit

So, I do not need the Secureboot package to use the l4t_backup_restore.sh script?

Did you enable any type of security?
If no, then no. Normal system can be backup and restore directly with the script.

I do not believe I enabled any security. The Jetson AGX Orin Devkit should have default settings from flashing Jetpack 6.1.

I seem to still be getting an invalid target board error when I run the l4t_backup_restore.sh script.

Hi:
You are now running the script in backup_restore folder, and it will lead to errors.
cd to Linux_for_Tegra instead of Linux_for_Tegra/tools/backup_restore and run the script.

Running the script in the Linux_for_Tegra folder gets pas the invalid target board error, but the script doesn’t seem to be finishing due to many errors.
backup.txt (54.8 KB)

Hi:
Please setup rootfs before you run the script: Ref

Will setting up rootfs affect any files currently on the Jetson AGX Orin Devkit?

Hi:
Case 1:
Download Linux_for_Tegra folder → modify rootfs folder → sudo ./flash.sh jetson-agx-orin-devkit internal. Yes. Things like remove files in rootfs folder or adding files will take effect after flashing.
Case 2:
Using backup_restore, no. Backup_restore backup image and restore images from the folder. Modifying the rootfs folder in this case will only effect the initrd image, not the image you backup.

Apologies, I should have phrased my question differently. Will the l4t_flash_prerequisites.sh, apply_binaries.sh, and the $ sudo ./flash.sh jetson-agx-orin-devkit internal.sh scripts delete files in the home directory or MicroSD card slot? I am being careful with these scripts that mention flashing, as I do not want to lose my work on the devkit.

Hi:
l4t_flash_prerequisites.sh will install packages on your host Ubuntu, not on Orin. No worries about it.
apply_binaries.sh will install some packages into Rootfs. It didn’t remove things, but it will install deb packages and could be an concern about your env if your rootfs is somehow customized.

Will the sudo ./flash.sh jetson-agx-orin-devkit internal command affect files in the home directory or MicroSD card slot? I am setting up rootfs to be able to make a backup image of the Jetson AGX Orin Devkit’s internal storage, so I do not want to delete the work I am trying to backup.

Yes. sudo ./flash.sh jetson-agx-orin-devkit internal will wipe out eMMC and re-flash with your rootfs.
About SD card, I’m not sure about it. Never used it before.