UBUNTU Full Backup – SystemBack or Tar full backup on azure

Option 1 – Tar Full System Backup


tar -cvpzf backup.tar.gz –exclude=/backup.tar.gz –one-file-system /

To understand what is going on, we will dissect each part of the command.

tar – is the command that creates the archive. It is modified by each letter immediately following, each is explained bellow.

c – create a new backup archive.

v – verbose mode, tar will print what it’s doing to the screen.

p – preserves the permissions of the files put in the archive for restoration later.

z – compress the backup file with ‘gzip’ to make it smaller.

f <filename> – specifies where to store the backup, backup.tar.gz is the filename used in this example. It will be stored in the current working directory, the one you set when you used the cd command.

–exclude=/example/path – The options following this model instruct tar what directories NOT to backup. We don’t want to backup everything since some directories aren’t very useful to include. The first exclusion rule directs tar not to back itself up, this is important to avoid errors during the operation.

–one-file-system – Do not include files on a different filesystem. If you want other filesystems, such as a /home partition, or external media mounted in /media backed up, you either need to back them up separately,


sudo tar -xvpzf /path/to/backup.tar.gz -C / –numeric-owner

x – Tells tar to extract the file designated by the f option immediately after. In this case, the archive is /home/test/backup.tar.gz

-C <directory> – This option tells tar to change to a specific directory before extracting. In this example, we are restoring to the root (/) directory.

–numeric-owner – This option tells tar to restore the numeric owners of the files in the archive, rather than matching to any user names in the environment you are restoring from. This is due to that the user id:s in the system you want to restore don’t necessarily match the system you use to restore (eg a live CD).

Option 2 – SystemBack Use


Add Systemback PPA using command

sudo add-apt-repository ppa:nemh/systemback

Update the software sources

sudo apt-get update

Install Systemback

sudo apt-get install systemback

launch Systmback in CLI mode

sudo systemback-cli

Create a new restore point.

type “g”.

Make Backup file from restore point.

tar -cvpzf backup.tar.gz /home/systemback


extract the file backup to restore machine.

sudo tar -xvpzf /home/allmnet/backup.tar.gz -C /

Launch Systmback in CLI mode

sudo systemback-cli

Restore to restore point.

type “2”.

Select to Full Restore Menu.

type “1”.


We’ve covered everything from simple backups to backups.

Please make sure that you have a way to safely revert to the UBUNTU server you are using when you encounter problems.

It is also possible to recover to a newly created UBUNTU server using this method.

good luck.

Facebook Comments

Leave A Reply

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.