
#Isntall grsync password
Now, type in the password for the remote user (in my case it’s root) and press. NOTE: Here, root is the remote username, is the remote server’s DNS name and /You may see the following message if you’re connecting to the remote server for the first time. Let’s make some dummy files in the ~/Downloads directory. Now, you want to backup all the files from the ~/Downloads directory to your USB thumb drive /dev/sdb1 mounted in the directory /mnt/myusb. You can copy files from one directory to another directory on your computer very quickly with rsync.įor example, let’s say, you have some important files in the ~/Downloads directory. If you type in a destination directory path that does not exists, then rsync will automatically create it as required.īacking Up Local Files and Directories with rsync:.If you don’t put a / after the directory name in the source of rsync such as myfiles, then rsync will copy all the files from the directory to the destination including the directory.If you put a / after the directory name in the source of rsync such as myfiles/, then it means copy all the files from inside the directory only to the destination.When you use rsync, you need to know the following things: We will take a look at some of the most common options along the way. You can change the behavior of rsync using these options. destination can be a directory or a network path.source can be a file or a directory or a network path.
