Documentation/P600 UAV WikiEnglish · Allspark2
Browse documentation
Additional documentation

Backing Up and Restoring an Image with Timeshift

Note: The following tutorial uses Timeshift for backup.

3 min read · English documentation

Back Up with Timeshift

Note:
The following tutorial uses Timeshift for backup.
  1. Connect the onboard computer to the Internet.
  2. Use the following tool to change the system software source and update the software list so that Timeshift can be found.
wget http://fishros.com/install -O fishros && . fishros

Description
  1. The system software source has been changed successfully.
  2. Enter the following command to install Timeshift.
sudo apt-get install timeshift

Description
  • Timeshift has been installed successfully.
Description
  1. Click Show Applications in the lower-left corner.
  2. Locate Timeshift and double-click it to open the application.
Description
  1. Enter the account password.
  2. Click the indicated location to authenticate.
Description
  1. Select RSYNC as the snapshot type.
    • RSYNC: Takes snapshots using rsync and hard links. Common files are shared between snapshots to save disk space. Each snapshot is a complete system backup that can be browsed with a file manager.
  2. Click Next.
  • Refer only to the Chinese description in the following figure.
Description Description
  • Wait for the application to finish loading.
Description
  • After loading completes, the current Allspark2 disk is displayed.
    • You can back up the image to the Allspark2 disk, but this occupies substantial space and is not recommended.
    • The following backup tutorial uses a portable drive as an example.
Description
Note:
1. You can back up the system image to an ext4-formatted portable drive or directly to the Allspark2 onboard computer.
2. After backing up the system image to an ext4-formatted portable drive, select the corresponding disks according to the tutorial below when restoring the image to the Allspark2 onboard computer.
3. After backing up the system image to the Allspark2 onboard computer, use the default disk locations when restoring it to the Allspark2 onboard computer.
  1. Connect the SSD on which you will save the Allspark2 image. It must be formatted as ext4.
  2. Click Refresh to refresh the disk list.
  3. Wait for the connected SSD to appear.
  4. Select the SSD.
  5. Its format must be ext4.
  6. Click Next.
Description
  • Refer only to the Chinese description in the following figure.
Description
  1. Define the snapshot level. The level specifies the interval at which snapshots are created. You can select monthly, weekly, daily, or hourly snapshots.
  2. Click Next.
Description
  • Refer only to the Chinese description in the following figure.
Description
  1. Select the locations to back up. Select all files here.
  2. Click Next.
Description
  • Refer only to the Chinese description in the following figure.
Description
  • Software configuration is complete. Click Finish.
Description
  1. Click Create to back up the Allspark2 system to the portable drive.
  2. The backed-up image is stored on the portable drive.
Description

Restore an Image with Timeshift

  • Open the application settings to modify the configuration. All preceding settings can be changed here.
Description
  1. Click Location; this is where images are saved and loaded.
  2. Click Refresh.
  3. Select the drive containing the backed-up image.
  4. Click OK to apply the changes.
Description
  1. Select the image backed up on the portable drive.
  2. Click Restore to restore the system from the portable drive to the Allspark2.
Description
  1. Select the disks according to the tutorial below.
  2. Click Next.
Description
  • Wait for the application to run automatically.
Description Description
  • After the automatic process finishes, a comparison of the old and new files appears. Click Next.
Description
  • After the automatic process finishes, continue clicking Next.
Description
  • The system automatically restores the image saved on the drive and then restarts.
Description

Video Demonstration: Back Up and Restore an Image with Timeshift