Skip to main content

Posts

Showing posts from October, 2016

How To Use Rsync to Sync Local and Remote Directories on a VPS

Introduction Rsync , which stands for "remote sync", is a remote and local file synchronization tool. It uses an algorithm that minimizes the amount of data copied by only moving the portions of files that have changed. In this guide, we will cover the basic usage of this powerful utility. We will be using an Ubuntu 12.04 VPS in the examples, but you can use any modern Linux distribution to follow along. What Is Rsync? Rsync is a very flexible network-enabled syncing tool. It can  also  refer to the network protocol developed to utilize this tool. When we reference rsync in this guide, we are mainly referring to the utility, and not the protocol. Due to its ubiquity on Linux and Unix-like systems and its popularity as a tool for system scripts, it is included on most Linux distributions by default. Basic Syntax The basic syntax of rsync is very straight forward, and operates in a way that is similar to ssh, scp, and cp. We will create two test direc...

Firewalld Configuration in CentOS 7

Introduction Firewalld is a firewall management solution available for many Linux distributions which acts as a frontend for the iptables packet filtering system provided by the Linux kernel. In this guide, we will cover how to set up a firewall for your server and show you the basics of managing the firewall with the  firewall-cmd administrative tool (if you'd rather use  iptables  with CentOS, follow  this guide ). Note:  There is a chance that you may be working with a newer version of firewalld than was available at the time of this writing, or that your server was set up slightly differently than the example server used throughout this guide. Thus, the behavior of some of the commands explained in this guide may vary depending on your specific configuration.  Basic Concepts in Firewalld Before we begin talking about how to actually use the  firewall-cmd  utility to manage your firewall configuration, we should get familiar wi...