0% found this document useful (0 votes)
153 views

Linux Backup With Graphical Programs - Average Linux User

Linux Backup With Graphical Programs _ Average Linux User

Uploaded by

papadidhiu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views

Linux Backup With Graphical Programs - Average Linux User

Linux Backup With Graphical Programs _ Average Linux User

Uploaded by

papadidhiu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Linux Backup with Graphical


Programs
Rsync is probably the best backup program in Linux. But it is a command line tool and not
everyone feels comfortable with the command line. Fortunately, you can backup your data
using the graphical front-end of Rsync: Grsync, and LuckyBackup. This post is about how to
use these two graphical backup programs.

INTRODUCTION
Rsync is the most popular tool to make backups in Linux. It can do incremental backups, so you
backup only new files or files that have been changes, but you do not backup the files that have been
backuped earlier. This makes the backup process very fast. However, since it is a command line tool,
many users are uncomfortable to use it. For such users, there are graphical front-ends of rsync:
Grsync, and Luckybackup. In this post, you will learn how to use these two programs.

VIDEO TUTORIAL

Linux Backup with Graphical Programs

Grsync: a simple graphical interface of rsync


Grsync is probably the best option if you are not experienced Linux user and you want to use rsync
with a decent graphical interface.

https://averagelinuxuser.com/linux-backup-with-gui/ 1/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

The Grsync default screen

The Grsync interface is quite simple and precisely geared for newbies. It provides the most
frequently used options to make a simple backup in Linux. You just need to provide a source and
destination of your backup and run it.

However, there is a small caveat which I want you to know about. It is how to use the slash sign (/)
in the source and destination fields.

How to use / in the source and destination fields of


Grsync
In the help message of Grsync, you can read that

if you add a slash (/) at the end of your source directory, it will copy its content
if you leave it without a slash (/), the program will create a new directory in the destination
with the name of your source and copy all the files there.

Let me demonstrate how it works.

First, I am going to backup the directory Documents to Download without a slash in the end.

https://averagelinuxuser.com/linux-backup-with-gui/ 2/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Making a Linux backup with graphical program Grsync

With this option, the Documents directory has been created during the backup and all its files have
been copied inside it.

The Documents folder has been created

Now, I will re-run the backup with a slash at the end of our source. Of course, I removed all
previously backed up files from the Downloads folder.

https://averagelinuxuser.com/linux-backup-with-gui/ 3/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Rerunning the program with a slash at the end of the source path

As you can see now the file Document.txt has been copied to the Downloads folder and the
Document folder has not been created.

This time the folder was not created

So, if you want to backup your source as a folder, you do not put a slash at the end of your source
path. But if you only want to backup the content, you need to add a slash at the end of your source.

Now, let us have an overview of the backup options.

The Backup options of Grsync


Basic options

Preserve time option means that your files will be copied with the time stamp of their last
modification. Without this option, the modification time of your files will be the time when you
copied them. This is not very practical. So, make sure this option is selected. Especially if you
work with multiple text or multimedia files.

https://averagelinuxuser.com/linux-backup-with-gui/ 4/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Basic options in Grsync

Preserve owner, Preserver permissions, and Preserve group options are important if you want to
Share
backup your system, not just your data. In other words, if you just backup your home directory or a
  
specific folder with some data, selecting only the Preserve time option is enough.

Grsync has a very useful option to ensure compatibility with windows. So, if you copy your data
files into the FAT file system, you need to enable the Windows Compatibility option.

Delete on destination is another useful option for incremental backups. If you delete a file on your
system and run Grsync it will delete that file from a previous backup of your system as well. This
way your source and destination basically just mirrored. It is useful because it saves space.

Verbose means to show more detailed information on the screen during the backup process. It is
optional.

If you enable the option Ignore existing, Grsync will only copy new files and will not backup the
files which you modified after the last backup. It is a good idea to keep it unselected.

Skip newer is also seldom used. You may need this option if you modified a file on your backup
hard drive and you want to keep this new version and do not replace it with older version during the
backup.

Do not leave filesystem option means that it will not copy the content of any mounted
partition/device. I recommend selecting this option and backup all the partitions separately. It is a
safer way to do backups.

Show transfer progress option just shows the progress.

Size only option enables to compare files by their size and if there is any difference, the file in the
destination will be replaced with the source file.
https://averagelinuxuser.com/linux-backup-with-gui/ 5/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

All these options belong to the Basic Options tab. Let us see the other options tab.

Advanced options and Extra options tabs


There are more options in the Advanced tab, however, you probably will not be using them. I only
recommend to enable the Copy symlinks as symlinks option. If you backup through the network,
you can enable the Compress file data option for faster transfer to make it lighter.

The advanced options tab of Grsync

In the Extra options tab, I recommend ticking the Run as superuser option. If you backup your
home, you do not need superuser rights, but if you backup your whole system, you need to able the
superuser privileges to be able to access and copy all files.

Run as superuser option to make a whole system backup

See the command line version of your backup

https://averagelinuxuser.com/linux-backup-with-gui/ 6/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

When you have configured your backup session, you can see the command line version of your
backup to copy and save it for later. To do it, go to the File menu and click on Rsync command line
and you will see the command that is generated from the options marked for backup.

The rsync command generated

Make sure the destination has a right file system


It is also important that the destination where you backup your data has the right file system. Some
file attributes may not be supported in some file systems, for example, FAT does not support all the
options. So, if you use an external hard drive for your backup, I recommend you format it with some
Linux file system, for example, Ext4.

For that, open Gnome Disk Utility which is available in Linux Mint and Ubuntu, and check the file
system of your hard drive. By the way, you can also read my post about how to encrypt your hard
drive in Linux.

You can see that the hard disk of my system, in this case, the Linux Mint partition has the Ext4 file
system.

https://averagelinuxuser.com/linux-backup-with-gui/ 7/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Disk utility

On the other hand, if I select my flash drive, it is the FAT file system. The FAT file system is not very
good for Linux backups.

Checking the filesystem of my USB flash drive

So, the solution is to format my flash drive to Ext4. Let me show you how to do that.

Format your backup drive with Linux file system

NOTE: Make sure you do not have any important files on your hard drive before you format it
because you will lose them.

First, you need to unmount your hard drive. Press the stop button.

https://averagelinuxuser.com/linux-backup-with-gui/ 8/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Unmounting the USB flash drive

Then, click on the Options button and select the Format partition option.

Format the main partition of the flash drive

In this screen, you have to choose the Linux compatible file system Ext4. You can also give a name
to this drive. Next, click on the Format button.

https://averagelinuxuser.com/linux-backup-with-gui/ 9/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Format the volume

After you formatted the hard drive, you can see that it is Ext4 now.

Now the USB flash drive has an EXT4 filesystem

Now, the hard drive is ready for a backup.

NOTE: Windows and OS X may not be able to see the Ext4 file system.

The Grsync toolbar and menu


Going back to Grsync, in the top toolbar, you can create separate profiles for different backup types.
To do it, just click on the + button.

https://averagelinuxuser.com/linux-backup-with-gui/ 10/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Add a backup profile

This is of great help in maintaining different configurations for each situation. However, you can also
remove a profile by clicking on the trash icon.

The blue button allows you to run the backup as simulation. The program will run and report you the
results, but no files will be copied. It is useful to test if everything is working as you intended. You
should use it every time before a backup.

Grsync Preferences
To open the Preferences, go to the File menu and click on the Preferences option.

Grsync preferences window

In the Preferences, I suggest enabling the Show rsync output by default option. It is better when
you can see it immediately upon backup completion.

https://averagelinuxuser.com/linux-backup-with-gui/ 11/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

I also prefer to enable the Show errors in a separate window option. This way it is easier to track
errors. And you can also enable Tray icon if you want to hide the Grsync window and run it in the
background.

Running backups with Grsync


Now let us create some Linux Backup with Grsync. I will show you how to backup your home and
how to backup the whole system.

Backup your home data

If you want to backup your home folder, you need to select your home directory in the source and
your external or another hard drive as a destination.

Backup your /home folder

You can also create a new profile for future backups like this.

https://averagelinuxuser.com/linux-backup-with-gui/ 12/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Adding a profile for future backups

Then, simulate this backup to check for errors.

There are some errors during the backup simulation

As you can see, an error Rsync process exit status: 23 occurred during the simulation. In the
window, you can read that it is a permission problem because I executed it as a normal user. If you
experience the same error, go to the tab Extra Options and select the Run as superuser option.

https://averagelinuxuser.com/linux-backup-with-gui/ 13/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Make sure you are run the backup as superuser

Then, you run it again. You will have to type your password and everything should complete without
errors.

Now everything is ok

The final step is to run a real backup. This way you can create a backup of any other folder with your
data, not necessarily your home folder. However, if you need to backup the system file, the
procedure differs a bit.

Backup the whole system (/)


https://averagelinuxuser.com/linux-backup-with-gui/ 14/33
6/8/2019 p y
Linux Backup with Graphical Programs | Average Linux User

If you want to backup your whole system, you can start with creating a new session and call it root,
for example.

Add the root backup profile

Select your root folder (/) as a source. In the destination, select your external hard drive. Here, it is
also essential to enable Do not leave file system option.

Enable the Do not leave filesystem

Next, make sure you enabled the Run as superuser option on the Extra options tab.

https://averagelinuxuser.com/linux-backup-with-gui/ 15/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Run the backup as superuser

Then, run it as a simulation to verify that everything is OK.

The backup simulation was successful

Finally, run it normally to create the real backup.

LuckyBackup: a more advanced graphical


interface of rsync

https://averagelinuxuser.com/linux-backup-with-gui/ 16/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Grsync is a good tool for data backup, but for the whole system backup, I recommend LuckyBackup
because it has more options.

LuckyBackup also uses rsyncand it can be run as a superuser or as a regular user. If you are going to
backup your data, you can run it as a regular user, but if you are going to backup the system, you
have to do it as a superuser.

So, let us open it as superuser.

Run LuckyBackup as superuser

When you run it, you will be surprised how ugly it looks, but that is because you are running it as a
superuser.

Luckybackup open as root user

However, If you open it as a regular user, it looks consisted with your theme.

https://averagelinuxuser.com/linux-backup-with-gui/ 17/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Luckybackup running as a regular user

The LuckyBackup toolbar


The LuckyBackup toolbar contains options similar to Grsync. For example, like Grsync you can
create a configuration profile and remove them. My favorite feature of LuckyBackup and its key
difference from Grsync is that you can schedule backups and to send Email reports.

LuckyBackup's toolbar

The other buttons include Refresh the profile, Quit the program. The Dry option is the same
simulation mode you have seen for Grsync. he last option is to run a real backup.

Creating a backup task


You create backup tasks on the right side is the Tasks section. Click on the Add button and give it a
name and select the backup type.

https://averagelinuxuser.com/linux-backup-with-gui/ 18/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Creating a backup using Luckybackup

The next step is to select what to backup and where it will be stored.

Task properties

The navigation in LuckyBackup to define source and destination is a little more complicated than in
Grsync. For example, to define the destination, you need to go to /media to find you mounted hard
drives.

https://averagelinuxuser.com/linux-backup-with-gui/ 19/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Navigation is a little different in Luckybackup

Unlike in Grsync where you had to add a slash in the Source field, if you did not want to create extra
directly, you just can select the Do NOT create extra directory option in LuckyBackup.

Do not create extra directory option

In the Snapshot to keep option, you can define several copies of your backup. You can activate it if
you have enough space on the destination drive.

You can specify the Snapshots to keep

The Backup options

https://averagelinuxuser.com/linux-backup-with-gui/ 20/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

If you click on the Advanced button in the Task properties window, you will be able to display all
the available options to make the backup. First, you can write a description of your backup.

The advanced button displays other options

Next, go to the Exclude tab. So, you can exclude some directors from backup. There are some
templates, I usually select them all. For example, System folders will exclude some system folders
which are not necessary to backup.

The Exclude tab

Below, in the User Define field, you also have an option to add custom directories to exclude.

https://averagelinuxuser.com/linux-backup-with-gui/ 21/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

User Defined field on Exclude tab

This is a very useful option because you can exclude specific files and folders or set files and folder.
For example, I usually exclude my Downloads folder.

I exclude the Downloads folder

It is important to click the Add button after you created a custom rule. Otherwise, this Downloads
folder exclusion will not be added to the current backup session.

https://averagelinuxuser.com/linux-backup-with-gui/ 22/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Add an excluded folder

In the Include tab, you can include what you want to backup. Sometimes, it is easier just to specify
what you want to include instead of listing all files and folders you want to exclude.

The include tab

Again, if you use this option, do not forget to click the Add button in the end.

https://averagelinuxuser.com/linux-backup-with-gui/ 23/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

If you backup through the network, you can configure it in the Remote tab.

Remote tab

In the Command options tab, you can keep everything as it is. If you backup files to FAT file system,
you have to enable the Destination is FAT/NTFS option. It is the same as The Windows compatibility
option in Grsync.

Destination is FAT/NTFS option

In the Also Execute tab, you can execute some command upon back completion or failure. I
personally never use this option.

https://averagelinuxuser.com/linux-backup-with-gui/ 24/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Also execute tab

When you have configured the backup task, click on the OK button. Then, you will receive a
warning message, which is good to validate your intention.

Preparing the backup

https://averagelinuxuser.com/linux-backup-with-gui/ 25/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

If you want to see how the rsync command that will be run looks like, you can click on the Validate
button.

Click on Validate to display the generated rsync command

Here is an example of my backup rsync command.

https://averagelinuxuser.com/linux-backup-with-gui/ 26/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

The generated rsync command

Running backup tasks


After you created backup tasks, you will see them listed in the task list. You can add as many backup
tasks as you want and run them all together.

Save the profile

Select tasks you want to run and run them in Dry mode to test the configuration.

Select tasks to run

Make sure there is no error during the simulation, and you are ready to run the real backup.

https://averagelinuxuser.com/linux-backup-with-gui/ 27/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Running the backup with simulation mode

Just remove the tick from Dry and create an rsync backup with the graphical interface of
LuckyBackup.

Create a Linux backup with graphical programs

Schedule a backup with LuckyBackup


Click on the Schedule button.

https://averagelinuxuser.com/linux-backup-with-gui/ 28/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Schedule a backup

In the screen that opens, you can add a task to be scheduled. Click on the Add button.

Add a rule to the schedule

On the next screen, you can choose the time and day when to perform the backup. When you have
finished, click on the Ok button.

https://averagelinuxuser.com/linux-backup-with-gui/ 29/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

Configure the backup schedule

Next, you have to add it as a Cron job. Click on the cronIT !! button.

CronIT !! button

Then, you can see if it is in the Crob job list. Click on the View current crontab button.

https://averagelinuxuser.com/linux-backup-with-gui/ 30/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

The Crontab content

Then, update the Crob job list by clicking on the cronIT !! button.

Update the crontab

How to install Grsync and Luckybackup


Finally, I just want to tell you that these Graphical Programs programs to create a Linux Backup are
available on most Linux distributions. Just search for grsync and luckybackup in the Software
Manager of your distribution.

https://averagelinuxuser.com/linux-backup-with-gui/ 31/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

You can install grsync using Synaptic

You can install luckybackup using Synaptic

Encrypt your backup


Unfortunate, neither Grsync nor LuckyBack encrypt the backup data. This poses some security issue,
especially if you backup your data to an external hard drive. However, you can easily fix this lack
security by encrypting your backup hard drive with another free graphical program.

CONCLUSION
As you can see, making a Linux backup with graphical tools is not a complicated matter. I find these
two backup programs the most appealing if you prefer rsync program but with the graphical
interface. Both are very good and allow you to make a backup without much effort. My
recommendation is to use Grsync for new users and LuckyBackup for the more advanced user.

There are other graphical programs to create backups in Linux. However, I insist that you eventually
learn how to use rsync in the command line.

20 Mar 2019

Average Linux User Follow


I am the founder of the Average Linux User project, which is a hobby I work on
at night. During the day I am a scientist who uses computers to analyze
genetic data.

Linux applications

#GUI #Grsync #LuckyBackup #backup #rsync

« 4 Ways to Uninstall Software in Linux Mint How to enable a Virtualbox shared folder for
Linux guest systems »

https://averagelinuxuser.com/linux-backup-with-gui/ 32/33
6/8/2019 Linux Backup with Graphical Programs | Average Linux User

  Never miss a post from us, subscribe to our newsletter

Email

Subscribe

linux applications (25) customization (9) desktops (12) xfce (5) distros (21)

installation guide (7) linux mint (6) arch linux (9) cinnamon (2) debian (4)

Explore → things to do after install (9) manjaro (4) gnome (3) ubuntu (4) plasma 5 (5)

reviews (5) kde neon (2) linux general (9) linux command line (6)

desktop themes and icons (2) budgie (3) solus (3)

Disclaimer     Privacy Policy


Copyright © 2019 Average Linux User Built with Jekyll using Mediumish Theme

https://averagelinuxuser.com/linux-backup-with-gui/ 33/33

You might also like