[CentOS] rsync question

Tue Sep 8 20:02:46 UTC 2015
Robert Moskowitz <rgm at htt-consult.com>

I ran it again but with:

rsync -ah --stats --delete -e "ssh -p613 -l root" 
192.168.192.2:/etc/name* /home/rgm/data/htt/httnet/homebase/new/newetc

And the newetc directory was created with all the files.  I again ran:

rsync -ah --stats --delete -e "ssh -p613 -l root" 
192.168.192.2:/etc/name* /home/rgm/data/htt/httnet/homebase/new/etc

And none of the /etc/name.* files get moved.  Strange.

Well I got my backup.

On 09/07/2015 06:04 PM, Mike wrote:
> I tried your rsync command and it worked on my LAN over ssh.
> The following was placed in the destination directory:
>
> drwxr-x---  2 root smmsp 4.0K Jul 28 21:05 named/
> -rw-r-----  1 root smmsp 1.6K Oct 30  2013 named.conf
> -rw-r--r--  1 root smmsp 2.4K Jul 28 21:05 named.iscdlv.key
> -rw-r-----  1 root smmsp  931 Jun 21  2007 named.rfc1912.zones
> -rw-r--r--  1 root smmsp  487 Jul 19  2010 named.root.key
>
>
> On Mon, Sep 7, 2015 at 1:05 PM, Robert Moskowitz <rgm at htt-consult.com>
> wrote:
>
>> I am trying to rsync the named files under /etc for backup purposes.  I
>> tried:
>>
>> rsync -ah --stats --delete -e "ssh -p613 -l root" 192.168.192.2:/etc/name*
>> /home/rgm/data/htt/httnet/homebase/new/etc
>>
>> The stats shows it sees all the files, but only moves the dir /etc/named
>> and the files within it.
>>
>> It does not move the /etc/name* files (like /etc/named.conf).
>>
>> By file count, it is 'seeing' all the files, but not moving them.
>>
>>
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> https://lists.centos.org/mailman/listinfo/centos
>>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
>