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.
On the system settings window click on the backup icon.
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.
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.
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.
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.
Note: You can turn on automatic backups from the Overview area.
To start backing up, go to the overview area and click on back up now button.
Now you need to choose an encryption password for a backup. Just type that in and click on Continue.
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.
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.
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).
Click on the Forward button and you’ll see two options:
1) Restore files to original locations
2) Restore to specific folder
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.
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!
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.
$ 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/ firstname.lastname@example.org:/home/chankey/temp/
Case 5: Synchronize files Remote->Local
$ rsync -avz email@example.com:/var/lib/rpm /root/temp
Case 6: Select remote shell
$ rsync -avz -e ssh firstname.lastname@example.org:/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 email@example.com:/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 firstname.lastname@example.org:/var/lib/ .
Case 9: Do not create new file at destination, just update existing files
use --existing option
$ rsync -avz --existing email@example.com:/var/lib/rpm/ .
Case 10: Transfer the entire file
use rsync -W option
# rsync -avzW firstname.lastname@example.org:/var/lib/rpm/ /root/temp