Backup of files from command line
In IT or our day-to-day computer industry activities, taking backup is one of the most important activities. Previously, offices were required to keep important paper in a safe place; but if a fire breaks out, then everything is finished. In the digital world, taking backup makes our life easier and safeguards us against data loss.
There are many software tools available on the market for taking software backups. We will study one of the most popular software backup command-line utilities, rsync
.
Backup command rsync
The command-line utility rsync
is the most widely used backup command in Linux for backing up or synchronizing data. This utility was developed in 1996 by Andrew Tridgell and Paul Mackerras.
This utility is mostly installed in all popular Linux distributions. If it is not installed, then run the following commands:
For CentOS or Red Hat:
# yum install rsync
For Debian or Ubuntu
# apt-get install rsync
rsync
is a powerful utility. It can copy or synchronize...