
The file copy takes place, and you are returned to the command line prompt. rsync -r /home/dave/Documents/ /media/dave/SILVERXHD/ The -r (recursive) option causes rsync to copy all nested subdirectories and their contents. Note that there is forward slash “/” at the end of the word “SILVERXHD,” but it has wrapped round to the next line in the screenshot. To use rsync to copy the contents of a directory to your backup destination, use the following command. Copying the Contents From the Source Directory Use the pwd command to print the path to the terminal window. If your file browser does not do this, browse to the external drive and open a terminal window in that location. In this example, the tooltip informs us that the mount point for the filesystem on the external drive is “/media/dave/SILVERXHD.” Hover the mouse pointer over the name of the external drive and a tooltip will show you the path to the drive. In GNOME, open the Nautilus file browser and locate the name of the drive in the sidebar.

You will need to know the path to the drive. It has been auto-mounted by the operating system. In this example, an external USB hard drive called SILVERXHD (for “Silver eXternal Hard Drive”) is plugged into the Linux computer. If you can write to it, then so can rsync. To make a backup copy of your data to an external hard drive, the hard drive must be mounted and accessible to you. The simpler and faster it is to make a backup, the more likely you are to do so. They provide graphical user interfaces (GUIs) to rsync which some people may find easier to use.
Grsync two computers network software#
When this efficiency is paired with its solid track record in performing file copies and directory synchronizations since the mid-1990’s, rsync is a perfect candidate for creating backups from the Linux command line.Īdditionally, there are independent software programs that act as a front-end for rsync. Only the differences between two versions of a file are transferred, not the whole file if that can be avoided. We choose rsync because of its well-respected algorithms that calculate the differences between files in the source directory and the target directory. We wanted to show you a robust, flexible, and reliable way to protect your data.

There are many ways to accomplish making a backup copy of your files. We’ll be using the rsync command for this, and we’ve even found some nice optional graphical interfaces for it.

Back up your valuable data from the Linux command line.
