September 2018
Beginner to intermediate
214 pages
5h 53m
English
In this use case, we are trying to build a backup solution that does not use too much of the bandwidth by archiving everything that needs to be backed up. We are basically going to select a folder to be compressed and moved to a secure host. The following code makes sure that all the necessary dependencies are installed, prepares the backup folder, compresses it, and then sends it. We are going to use a module called synchronize, which is basically a wrapper around rsync, the famous data synchronization tool. It is frequently used to provide a quick backup solution:
---- name: Setup and connect network shared folders hosts: Linux become: yes gather_facts: yes tasks: - name: Install the ...
Read now
Unlock full access