August 25, 2009, 5:16 pm

rsync is cool. What would be even cooler would be excluding particular files or even a whole folder from the backup process.
That’s no problem using the rsync ‘–exclude’ option.
Lets say you don’t want to backup some log directories on your box via rsync. Sure, there are some log files (perhaps Apache logs) that you want to keep but others you won’t such as a Ruby on Rails production log.
Perhaps there are files containing your DB password, such as a PHP mysqli connection file. Although needed on the main server, it is not needed on the backup.
A folder I always exclude when completing an rsync on my home folder is the ’sources’ directory: I don’t need copies of the source code I have download.
Let’s see how to exclude that directory.
Continue reading ‘rsync – exclude files and folders’ »
October 28, 2008, 9:24 am

rsync is an open source utility that provides fast incremental file transfer, available in multiple platforms such as Linux, *BSD and Solaris.
The goal of this tutorial is to detail the needed steps to setup a general purpose rsync server on Gentoo. Note: this guide doesn’t focus on setting up your own Gentoo local rsync mirror, for that please consult Gentoo’s official documentation on the matter, namely Gentoo Linux rsync Mirrors Policy and Guide.
Let’s begin by becoming the superuser, synchronize the portage tree and install rsync:
Continue reading ‘Setup a Rsync server on Gentoo’ »
May 29, 2008, 1:49 pm

rsync is a software application for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. An important feature of rsync not found in most similar programs/protocols is that the mirroring takes place with only one transmission in each direction. rsync can copy or display directory contents and copy files, optionally using compression and recursion.
In daemon mode, rsync listens to the default TCP port of 873, serving files in the native rsync protocol. rsync can also be used to synchronize local directories, or via a remote shell such as RSH or SSH. In the latter case, the rsync client executable must be installed on both the local and the remote host.
Continue reading ‘HOWTO: Backup nightly via rsync’ »