Skip to content

Commit

Permalink
Merge pull request system76#762 from vega-d/patch-1
Browse files Browse the repository at this point in the history
Add creating and restoring disk images with gnome disks to backup article
  • Loading branch information
ahoneybun authored Aug 27, 2021
2 parents 2d4f51b + e7797c9 commit ce532c7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions content/backup-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ twitterImage: /_social/article

hidden: false
section: software
tableOfContents: true
---

There are many ways to back up important files on your computer. It's a personal choice which one to use based on habits, preferences, and what is being backed up. We will outline a few options here, but the final solution may be a mix of several of these options.
Expand Down Expand Up @@ -181,3 +182,43 @@ sudo apt install gnome-tweak-tool mousepad aptitude thunar
## Program Configuration Files

System-wide program configuration files can be found in many locations of the OS. The most common location is the `/etc` folder. Most of these can be backed up in the same ways that user configuration files can, with the same caveat about changes in configuration format when restoring these files. (Unless you have modified system-wide configuration files manually, most configuration is usually stored per-user in the home directory.)

## Create and Restore Disk images using Disks app

Pop!\_OS comes with a disk management utility called GNOME Disks. You can find it in your apps list.

![Disks app](https://user-images.githubusercontent.com/35414314/130321339-33d80ce0-9045-4c6c-9e88-5b1f7b33e563.png)

Upon opening, on the left, you will see a list of all disks connected to your computer. Choose which disk you want to back up or restore and click on it.

![drop down menu in Disks app](https://user-images.githubusercontent.com/35414314/130321350-bbc2e2dd-34ec-4317-b66a-d35b010e3db4.png)

Once you select a disk, a "Disk options" button will appear near the top right corner of the app window. When you press it, a drop down menu will appear, allowing you to select the option you want - to create or restore a disk image.

### Creating a disk image

![image](https://user-images.githubusercontent.com/35414314/130321407-8225e788-e708-4208-8068-cf10c64f321b.png)

When you press a "Create disk image" in the drop-down menu mentioned before, you will have a pop-up appear, presenting you with choice to name the disk image you're creating and select where to put it.

![image](https://user-images.githubusercontent.com/35414314/130321417-000beada-73c9-4c2c-ac3c-8eed859dbf6a.png)

After clicking "Start creating," it may ask for your password. Next Disks will start creating your disk image. A progress bar will be shown. You can cancel creating the image at any time by pressing the trash can icon on the right, next to the progress bar.

Upon finishing, you will have a disk image file in `.img` format. The file will havethe name you chose and will be saved in the folder you selected.

### Restoring a disk image

> **IMPORTANT NOTE:** Restoring a disk image to a drive erases the current contents of the selected drive or partition. Again, this will result in a complete loss of data. Only restore disk images to drives that are already backed up, or on which you don't wish to preserve the data.
![image](https://user-images.githubusercontent.com/35414314/130321768-3538d10e-b847-4911-96aa-eae9c19d148a.png)

When you press "Restore disk image" in the drop-down menu mentioned before, a pop-up will appear, presenting a button to select which disk image you want to restore The "Destination" will be whicehver disk you selected previously (on the left).

![image](https://user-images.githubusercontent.com/35414314/130321834-ca776204-6ea1-4fe4-9651-675f025d5b91.png)

After you press "Start restoring," it will ask for a confirmation and may ask for a user password. After that, process of restoring a disk image onto your disk will start, showing you restoring progress. You can cancel at any time by pressing the trash can icon on the right from the progress bar.

> **NOTE:** Even if you press the button to cancel, your selected disk will already have been erased to make room for the restore image. The data on the disk is already gone.
Upon finishing you will have your disk image file and its data on the disk you selected.

0 comments on commit ce532c7

Please sign in to comment.