Toggle navigation
TechnoWikis.com
Email or Username
Password
Remember
Login
Register
|
I forgot my password
All Activity
Questions
Hot!
Pending
Ask a Question
Privacy Policy
Contact
Synchronization and backup with Rsync
Home
Tutorials
Linux / Unix
Synchronization and backup with Rsync
(adsbygoogle = window.adsbygoogle || []).push({});
+3
votes
258
views
Synchronization and backup with Rsync
asked
Jun 23, 2019
in
Linux / Unix
by
backtothefuture
(
552k
points)
reopened
Jun 23, 2019
|
258
views
answer
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Add answer
Cancel
1
Answer
+4
votes
Best answer
Whenever we administer a server or on our own computers we need to keep information synchronized between computers or between directories.
Rsync
is a
cross-platform free
application used to perform file synchronization and backup operations.
It is best known and used in
UNIX / Linux
.
Rsync
on a server listens by default to
TCP
port
873
and serves both for backup on a local server or on a remote server or different devices on a network.
We will start installed rsync from the terminal for example for Linux Ubuntu we type
sudo apt-get install rsync
Then we will install the application Grsync is a graphical interface of the rsync synchronize tool in Linux.
sudo apt-get install grsync
You can also install Grsync on various Linux, Windows and OS X platforms. Grsync is free software.
When starting, we can create an account between two remote and local directories.
We create a synchronization
In the Sessions we can define several backup copies, or synchronization, different in the source and destination directory, which we can select at any time through a drop-down.
So we can define several synchronizations and then activate with a single click such as backup, projects, emails.
We select the source and destination directories.
If we use a slash bar at the end of the source route it will indicate that we only want to copy content from that folder to the destination.
If we do not put the bar, it copies the source directory and the content.
Synchronize directory and content
Origin: / home / user / origin
Synchronize content only
Destination: / home / user / origin /
We have several options to choose to keep same user, group and permissions, define if the destination copy is deleted if a duplicate is found.
We will see several examples both from commands and from Grsync interfaces
Synchronize a hard drive and a pendrive
Origin: / home / user / images
Destination: / media / user / usb001
Synchronize multiple directories in a single session
To do this in the root directory I create a text file without extension called list in the .grsync directory that is as a hidden directory, and inside I write a list of the directories to synchronize
####### / home / user / .grsync / list #######
# .grsync / list
/Projects
/images
/ documents
####### end / home / user / .grsync / list #######
Then in the advanced options tab I indicate that the synchronization from the origin will be touching the directories mentioned in the file list
Therefore in the Basic Options tab for example for a computer synchronization to pendrive
Origin: / home / user /
Destination: / media / user / usb001
In advanced options we indicate where is the list of directories to read
--files-from = / home / user / .grsync / list
Other options that allow Grsync to be customized are:
Update only existing files, compare them and do not copy new files
Ignore files that already exist in the destination or not update the newer files, just copy those that do not exist
This is a custom copy synchronization per user and according to your preferences, each session can have a different configuration with a clear focus of incremental backups.
Grsync allows to simulate all the processes with it can be known if something is going to go wrong before making a copy or synchronization, since it shows the real result of the files that will be modified
answered
Jun 23, 2019
by
stackoverflow
(
3.5m
points)
edited
Jun 23, 2019
ask related question
comment
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Add comment
Cancel
Related questions
+4
votes
1
answer
Clone CentOS Server with Rsync
asked
Jul 23, 2020
in
Linux / Unix
by
backtothefuture
(
552k
points)
|
811
views
+5
votes
1
answer
Rsync Linux: How to use and examples command
asked
Feb 22, 2020
in
Linux / Unix
by
backtothefuture
(
552k
points)
|
350
views
+4
votes
1
answer
Simplenote, «simple» cross-platform, collaborative notes APP with synchronization and markdown
asked
May 28, 2021
in
Applications
by
backtothefuture
(
552k
points)
|
128
views
+5
votes
1
answer
How to backup with Duplicati on Ubuntu Linux
asked
Nov 18, 2019
in
Linux / Unix
by
backtothefuture
(
552k
points)
|
269
views
+4
votes
1
answer
How to backup on Linux Mint with Timeshift
asked
Oct 22, 2019
in
Linux / Unix
by
backtothefuture
(
552k
points)
|
436
views
Sponsored articles cost $40 per post. You can contact us via
Feedback
All categories
Tutorials
7.5k
Microsoft
1.9k
Android
1.4k
Security
120
Linux / Unix
543
Internet
757
Virtualization
104
Apple
611
Networks
64
Other Devices
321
Other Applications
184
Hardware
19
Development
53
Digital Marketing
47
Databases
14
Graphic Design
30
Guides
794
GraphicDesign
54
Networking
4
PlayStation
186
Gaming
55
Linux/Unix
85
Manzana
33
Otherdevices
38
Otherapps
49
Digitalmarketing
39
Safety
1
Developing
2
Help
685
Social Networks
34
Android Tutorial
549
iPhone Tutorial
267
News
17
Social
6
Phone
11
Telephone
9
Applications
167
Smartphones
3
Cell Phones
11
Applications
25
Travels
6
Photo
21
Education
18
Games
25
Internet
14
Music
8
Technique
10
Video
6
Windows
5
Apple
2
Cell Phones
3
TikTok
216
Trips
2
House
1
Operating System
5
Tips & Tricks
892
Solutions
6
Tutorials
3
FAQ
1
Applications
5
Cell Phones
2
Tutorials
4
Computers
6
Tutoriales
2
8
Technology
2
In Computers
1
In Applications
2
Tutorials Tutorials
9
Applications Applications
25
Aplicaciones Applications
4
Devices Devices
5
Tutoriales Tutorials
1
Tutorials u00a0 Tutorials
2
Applications u00a0 Applications
2
Devices u00a0 Devices
1
OS OS
1
Etc Etc
2
Most popular questions within the last 30 days
Please leave a comment about whether the solution works or not (with device model)
[X]Close
10,659
questions
10,791
answers
510
comments
3
users