From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Back up files to a remote system (optional)

Back up files to a remote system (optional)

- [Instructor] We'll now look at how to backup up files in Linux. There are many utilities out there and sophisticated tools for doing backups. However, covering those is not the goal of this chapter. We will focus on doing a backup in the most basic way, copying files from one system to another system that's designated backup location. Our goal here is to understand the native Linux tools that can do that. A popular tool to backup up data is rsync. Its name originates from remote synchronization, /thumb/directory on server one synchronized with /thumb/otherdirectory on server two by copying data through a network connection. Now the remote server must have an SSH daemon running on it. Now, the general syntax looks like this. - a is the archive option to make sure that rsync also synchronizes sub directories, file permissions, modification times, and so on. For example, to sync the local pictures directory to the remote pictures directory, we could use something like this. Now, here…

Contents