System Tar and Restore - a simple backup script

GUI and text tool (screenshots)

There are lots of tools to make backups of your data and of the system for GNU / Linux. You can choose from some GUI apps or other command line programs. You can also create your own script for it, and thus customize it or download an existing one as is the case that I am going to talk about in this article. His name is System Tar and Restore and you will surely like it ...

System Tar and Restore is a very versatile script. Have two scripts for bash. The main one is a script called star.sh and also another called star.gui.sh that invokes the graphical tool if you prefer to use a more intuitive GUI. These scripts are capable of working in backup, restore and transfer mode, that is, to perform the backup, to restore and transfer it.

Can do a total or partial backup of the system, restoring or transferring the copy to a different disk or partition, restoring or transferring the copy to an external disk, pendrive, memory card, etc., restoring from a BIOS-based system to a UEFI one or vice versa, and even bring the copy to a virtual machine. For their proper functioning they depend on other packages: gtkdialog, tar, rsync, wget, gptfdisk / gdisk, openssl and gpg.

In general, they are everyday packages that you will surely have already installed and if not, you must install them prior to the scripts. In order to have System Tar and Restore:

cd Download

git clone https://github.com/tritonas00/system-tar-and-restore.git

cd system-tar-and-restore/

ls

And here inside you will have it ... And for invoke it graphically, you know:

sudo ./star-gui.sh

For make backups in text mode, I recommend you read the documentation:

./star.sh --help

However An example would be the following:

sudo ./star.sh -i 0 -d /home/copia -c xz -u "--warning=none"

That makes it go in backup mode (0), choose the destination where the backup is stored with -d (in this case / home / copy), define the compression tool for the generated tarball with -c (xz in this case), and with -u you can apply some options for tar / rsync ...

For restore copy (mode 1), it would be something similar:

sudo ./star.sh -i 1 -r /dev/sda3 -G /dev/sdb -f /home/copia/backup.tar.xz

It restores it to the / dev / sda3 partition, we specify where GRUB is with -G, and where the backup copy to restore ... You wait for the process to complete and voila!


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.