Synchronizing files and directories with rsync and working towards a full system backup with cron

In this recipe, we will investigate the need to synchronize files and directories with rysnc on the command line. We will then use this introduction to build on a previous recipe discussing cron and illustrate how a simple bash script can be used to implement a fully automated backup process.

Rsync can be used to synchronize files and directories across a variety of local and remote locations. It can interact with multiple operating systems, work over SSH, provide incremental backups, execute commands on a remote machine, and replace the need for the copy command. Rsync is an invaluable asset for any system administrator who intends to run a server ...

Get CentOS 6 Linux Server Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.