Home –  backup
Tag Archives: backup

Backup Ubuntu 11.10 using Deja Dup Backup Tool

Do you want to backup your Ubuntu machine? Well, Ubuntu 11.10 comes with a pre-installed backup software which is Déjà Dup Backup Tool. Today I will show how can you take a backup of your system and restore it using this tool.

Follow the procedure given below:

Click on the power icon and then select system settings.

Ubunt 11.10 power button

On the system settings window click on the backup icon.

Ubuntu System Settings

That bring us to the backup window which has four different areas:

1. Overview – shows us general overview and options as well as the Back Up Now and Restore buttons.

Deja Dup

2. Storage – lets us choose our backup location and folder. I’m going to choose a local folder and for Folder I’m going to choose desktop. So this is where the backup will be saved to.

Deja dup Storage

3. Folders – Here we can choose which folders are backed up. So we’ll be backing up the Home folder in this situation. You can use the plus and minus at the bottom to add and remove folders. On the other side we can add some folders to ignore during backup.

Deja dup Folders

4. Schedule – Here we can choose how often we wanna do a backup and how long do you want to keep the backup that you saved.

Deja dup Schedule

Note: You can turn on automatic backups from the Overview area.

Taking a backup

To start backing up, go to the overview area and click on back up now button.

Back Up Now

Now you need to choose an encryption password for a backup. Just type that in and click on Continue.

Encryption password

And after waiting for a while you can see a message that Backup has been completed and you can also see the backup files on the desktop.

Backup completed notification

Restoring from backup file

To restore your Ubuntu go to the Overview area and click on Restore button, this allows us to restore any backup that we have created. After clicking a Restore window will appear which asks for 2 things, first is the Backup location and the second one is the Folder where the backup file is located.

Deja dup Restore

After selecting the locations click on Forward button, you will find a dialog box which will give you an option of selecting the date (in case you have created more than 1 backup).

Deja dup restore date

Click on the Forward button and you’ll see two options:

1) Restore files to original locations
2) Restore to specific folder

Deja dup restore location

Click Forward and it will ask for the encryption password, this is the password that you’ve set while creating the backup. Enter the password and you have successfully restored our backup.

 

deja dup restore password

Thanks for reading this quick tutorial on backup Ubuntu using Deja Dup, I would love to see in the comment section down below what everyone else is using for backup and restoration program. Let me know down below, thanks for reading the article, have a great day!

Backup your Linux remotely using rsync command

rsync is a command in Linux which stands for remote sync. It is used for backing up the data. It synchronizes the directories and files from one location to another in a good way. The backup destination could be either on local or on remote server.

Features

  • Speed: rsync replicates all the data from source to destination and then it transfers only the changed blocks/bytes to the destination. This makes the transfer fast.
  • Security: It uses encryption using ssh technique.
  • Bandwidth: It compresses the block at source and then at the receiving end it decompresses the block. It transfers the data block by block using compression and decompression at source and destination side respectively. Hence uses less bandwidth.
  • Privileges: No extra privileges are required to use rsync.

Syntax

$ rsync options source destination

Case 1: Synchronize two directories in local server

use rsync -zvr command (z to enable compression, v for verbose, r for recursive)

$ rsync -zvr /var/opt/installation/inventory/ /root/temp

The above command does not preserves the timestamp.

Case 2: Preserve timestamps using rsync -a

The -a options preserves symbolic links, permissions, timestamp, owner and group.

$ rsync -azv /var/opt/installation/inventory/ /root/temp/

Case 3: Synchronize only a single file

Specify the file name to the rsync command

$ rsync -v /var/lib/rpm/Pubkeys /root/temp/

Case 4: Synchronize files Local->Remote

$ rsync -avz /root/temp/ chankey@192.168.200.10:/home/chankey/temp/

Case 5: Synchronize files Remote->Local

$ rsync -avz chankey@192.168.200.10:/var/lib/rpm /root/temp

Case 6: Select remote shell

$ rsync -avz -e ssh chankey@192.168.200.10:/var/lib/rpm /root/temp

rsync -e ssh => uses the ssh shell for remote sync

Case 7: Do not overwrite modified file at destination

If the file at the destination is modified and if we don’t want to change it back to the old one again then using rsync -u option.

$ rsync -avzu chankey@192.168.200.10:/var/lib/rpm /root/temp

Case 8: Synchronize only the directory Tree structure (not files)

use rsync -d option for this purpose.

$ rsync -v -d chankey@192.168.200.10:/var/lib/ .

Case 9: Do not create new file at destination, just update existing files

use --existing option

$ rsync -avz --existing root@192.168.1.2:/var/lib/rpm/ .

Case 10: Transfer the entire file

use rsync -W option

#  rsync -avzW  chankey@192.168.200.10:/var/lib/rpm/ /root/temp