JustToThePoint English Website Version
JustToThePoint en español
JustToThePoint in Thai

How to backup your data: Synching & rsync.

Introduction

A backup is a duplicate or a copy on a different storage medium. File synchronization is the process of ensuring that two or more locations contain the same, up to date, files, i.e., the same data is updated across multiple locations and platforms.

Backup solutions

Backup solutions

A backup strategy is a plan made to ensure that essential data is backed up and ready to restore if there is any kind of disaster and data loss. It is highly necessary but it is often neglected.

A backup strategy

A backup strategy

 

Dropbox

Dropbox

    [Service] Environment=DISPLAY=:0

Some backup solutions you may consider are:

  1. Clonezilla is a partition and disk imaging/cloning program. It is a free alternative to Norton Ghost.
  2. Paragon Backup & Recovery is one of the best, free backup solutions.
  3. Déjà Dup Backup Tool is a very simple and yet powerful GUI tool for backup in Ubuntu.
  4. Timeshift is an open-source backup and restore application for Linux similar to the Time Machine tool in Mac OS. It protects your system by taking incremental snapshots of the file system at regular intervals.
  5. rsync is a free, fast, and extraordinary versatile utility for transferring files and synchronizing local and remote directories.
  6. AOEMI Backupper is a free and easy data backup, disk clone and file sync software for personal PCs and iOS devices.
  7. Macrium Reflect Free Edition is a free backup, free cloning, and free disk imaging software.

Syncthing

Syncthing is a continuous file synchronization program. It is a really good free alternative to Dropbox and Google Drive. It synchronizes files between two or more computers.

  1. Let’s install it on Ubuntu: sudo apt install syncthing-gtk (the GTK3-based GUI for syncthing, it will also install the package syncthing). Arch: sudo pacman -S syncthing.
  2. Next let’s edit its config file (vi /home/user/.config/syncthing/config.xml) and change 127.0.0.1:8384 (only listening to localhost) to 0.0.0.0:8384.
  3. If you are in Ubuntu, the installation is made so that the service is run as root. You may want to check its status: sudo systemctl status [email protected] However, you need to enable and start the system service ([email protected]) in Arch:
        systemctl enable [email protected]
        systemctl start [email protected]
    
  4. Install Mac (client). We should be able to access it: IP’s address:8384.
  5. For security purposes you may want to change your password: Actions, Settings, GUI Authentication User, GUI Autentication Password.
  6. Syncthing uses port 22000. If your computer has enabled the UFW firewall, then you need to allow traffic on port 22000: sudo ufw allow 22000/tcp
  7. You need to ensure Synching has been installed and configured on all systems. After that, _each device must be told about the other devices by exchanging device IDs. Obtain your Device ID (Server Ubuntu): Actions, Show ID (Copy). Client Mac: Add Remote Device, Device ID (Paste), Device Name (LinuxServer).
  8. Refresh the Web interface on the first device, the Ubuntu server. You will see the following message: Device…. wants to connect. Add new device? Click on Add Device (Device Name: MacClient) and wait patiently till Remote Devices, MacClient (Up to Date).
  9. We can synchronize two folders now. Click the Add Folder to add a new folder and give it a descriptive label and set the folder path (/mnt/discoExterno/documentos). On the Sharing tab, select MacClient.
  10. You need to wait till you see a message in your MacClient: LinuxServer wants to share folder “documentos”. Add new folder? Select Add, and define Folder Path.

rsync

rsync lets you transfer and synchronize data between different machines and directories. A good example is rsync -av ‐‐delete /home/myUser/Dropbox/ /mnt/discoExterno/.

These options are: -av, v = increase verbosity, a = recursion and preserve almost everything; ‐‐delete, it synchronizes the local and remote directory. It will delete files in the destination directory if they don’t exist in the source directory.

rsync can transfer and synchronize files and directories from and to remote servers: rsync -aAXv ‐‐delete $HOME/Dropbox/ [email protected]:/media/pi/BackupPi.

Bitcoin donation

JustToThePoint Copyright © 2011 - 2022 PhD. Máximo Núñez Alarcón, Anawim. ALL RIGHTS RESERVED. Bilingual e-books, articles, and videos to help your child and your entire family succeed, develop a healthy lifestyle, and have a lot of fun.

This website uses cookies to improve your navigation experience.
By continuing, you are consenting to our use of cookies, in accordance with our Cookies Policy and Website Terms and Conditions of use.