[CentOS] Rsync and full path of filenames

Les Mikesell lesmikesell at gmail.com
Wed Oct 28 18:56:52 UTC 2009

Niki Kovacs wrote:

> rsync -av /etc/httpd/conf/httpd.conf destinationfolder/
> I get something like :
> destinationfolder/httpd.conf
> QUESTION (at last) : is there a way rsync can somehow add the full file 
> path, so the end result is more like :
> destinationfolder/etc/httpd/conf/httpd.conf ?
> Any suggestions ?

Personally, I'd run backuppc (http://backuppc.sourceforge.net/ or the 
epel package) and take the whole tree because (a)it will compress the 
files and link all duplicates so it doesn't waste that much space, (b) 
when you need a copy you'll have it instead of finding out it was one 
you didn't bother to include, and (c) it won't take you a week to set up 
and test.

   Les Mikesell
    lesmikesell at gmail.com

More information about the CentOS mailing list