rsync filter parameter in rsyncd.conf file

2014-10-08 Thread Romel Khan
I would like to push a file, /home/cfg/temp, from client to a server with
rsync in daemon mode to /n2p/cfg directory. How should I set the
filter/include/exclude parameters on the server side rsyncd.conf file so
server will disallow receiving any files from the client other
than /home/cfg/temp?
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: rsync filter parameter in rsyncd.conf file

2014-10-08 Thread Romel Khan
How can I confine the client to the /n2p/cfg directory through rsyncd.conf?

On Wed, Oct 8, 2014 at 10:29 PM, Kevin Korb k...@sanitarium.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 The server has no idea what file the client is sending it (even if it
 did the client would be free to lie).  The server only knows what file
 the client is asking to change/create/delete on the server.

 You can certainly confine the client to the /n2p/cfg directory through
 rsyncd.conf or rrsync but you can't really control what the client
 intends to put there.

 filter/include/exclude in rsyncd.conf only controls what files on the
 server a client can access.

 On 10/08/2014 10:15 PM, Romel Khan wrote:
  I would like to push a file, /home/cfg/temp, from client to a
  server with rsync in daemon mode to /n2p/cfg directory. How should
  I set the filter/include/exclude parameters on the server side
  rsyncd.conf file so server will disallow receiving any files from
  the client other than /home/cfg/temp?
 
 
 

 - --
 ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
 Kevin Korb  Phone:(407) 252-6853
 Systems Administrator   Internet:
 FutureQuest, Inc.   ke...@futurequest.net  (work)
 Orlando, Floridak...@sanitarium.net (personal)
 Web page:   http://www.sanitarium.net/
 PGP public key available on web site.
 ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2

 iEYEARECAAYFAlQ18ycACgkQVKC1jlbQAQcoTgCgnRnZ1DDaTqvyxCqWM+NJ1H51
 jDcAoOGqc7pShZ/PnD7E7RK+M2rBVjUE
 =j3MB
 -END PGP SIGNATURE-
 --
 Please use reply-all for most replies to avoid omitting the mailing list.
 To unsubscribe or change options:
 https://lists.samba.org/mailman/listinfo/rsync
 Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: rsync filter parameter in rsyncd.conf file

2014-10-08 Thread Romel Khan
filter/include/exclude in rsyncd.conf only controls what files on the
server a client can access: OK say I want to do that and only allow access
to file called temp1 on the server. What do I need to enter in the config
file? The following does not seem to do anything:
include = temp1
filter = - *

On Wed, Oct 8, 2014 at 10:29 PM, Kevin Korb k...@sanitarium.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 The server has no idea what file the client is sending it (even if it
 did the client would be free to lie).  The server only knows what file
 the client is asking to change/create/delete on the server.

 You can certainly confine the client to the /n2p/cfg directory through
 rsyncd.conf or rrsync but you can't really control what the client
 intends to put there.

 filter/include/exclude in rsyncd.conf only controls what files on the
 server a client can access.

 On 10/08/2014 10:15 PM, Romel Khan wrote:
  I would like to push a file, /home/cfg/temp, from client to a
  server with rsync in daemon mode to /n2p/cfg directory. How should
  I set the filter/include/exclude parameters on the server side
  rsyncd.conf file so server will disallow receiving any files from
  the client other than /home/cfg/temp?
 
 
 

 - --
 ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
 Kevin Korb  Phone:(407) 252-6853
 Systems Administrator   Internet:
 FutureQuest, Inc.   ke...@futurequest.net  (work)
 Orlando, Floridak...@sanitarium.net (personal)
 Web page:   http://www.sanitarium.net/
 PGP public key available on web site.
 ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2

 iEYEARECAAYFAlQ18ycACgkQVKC1jlbQAQcoTgCgnRnZ1DDaTqvyxCqWM+NJ1H51
 jDcAoOGqc7pShZ/PnD7E7RK+M2rBVjUE
 =j3MB
 -END PGP SIGNATURE-
 --
 Please use reply-all for most replies to avoid omitting the mailing list.
 To unsubscribe or change options:
 https://lists.samba.org/mailman/listinfo/rsync
 Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Could not start Rsync Server service on the Local Computer

2008-06-10 Thread Abdul Khan

Hi,
I have installed cwRsync Server on Windows Server 2000. I having 
problems starting the Rsync Server service. If I try to start it manually.

I get a message says;

Could not start Rsync Server service on the Local Computer
The service did not return and error. There could be an internal windows 
error or internal service error.

If the problem persists contact your system administrator

I have treid to turn the firewall off and I have also tried it with no 
anti-virus software running. I googled and fond lots of people have the 
same issue but no solution.


Can anybody shed the light on it please.
Thanks

Khan
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


cwRsync on windows

2008-01-02 Thread Abdul Khan

Hi folks,
It may be a very basic question for many people here but I have been 
struggling with Windows commandline. My CentOS machines are running 
perfectly fine.

Question:
I have installed cwRsync server on one of Windows 2003 and cwRsync 
client on the other Windows 2003. What command should I run to connect 
to the cwRsync server from the client? and how can I make sure that 
cwRsync is even running. I have checked the services I could not find. I 
also ran the netsat in windows to see what ports cwRsync is listening to.

Or can anybody direct me to a good tutorial on cwRsync.

Thanks in advance
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


rsync warning: some files vanished before they could be transferred (code24)

2007-07-20 Thread Abdul Khan

Hi folks,
What does this line mean? Its been there in the summary every time i run 
the rsync command.


rsync warning: some files vanished before they could be transferred 
(code 24) at main.c(977) [sender=2.6.9] 


Can anybody please shed the light about the error code?

Thanks in advance

ak
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


files permission and hidden files are not rsync properly

2007-07-19 Thread Abdul Khan

Hi folks,

I have recently installed rsync.2.6.9. on CentOS4.x boxes. That was my 
first backup yesterday.


But I notice that some hidden (or dot files) are not copied to the other 
host on the network. And group and ownership of the files are changed to 
“nobody” while files and folders permission are copied properly. So what 
am mission here can anybody shed light please?


Here is the result;

---

Number of files: 101558

Number of files transferred: 94209

Total file size: 21140359756 bytes

Total transferred file size: 21140357580 bytes

Literal data: 21063075446 bytes

Matched data: 0 bytes

File list size: 7819534

File list generation time: 62.368 seconds

File list transfer time: 0.000 seconds

Total bytes sent: 21077482260

Total bytes received: 1884192


sent 21077482260 bytes received 1884192 bytes 3231792.48 bytes/sec

total size is 21140359756 speedup is 1.00

rsync warning: some files vanished before they could be transferred 
(code 24) at main.c(977) [sender=2.6.9]


-

And here is the log;

-

[EMAIL PROTECTED] email_backup]# tail /var/log/rsyncd.log

2007/07/18 19:03:19 [5675] skipping non-regular file 
domains/fleetwoodmetal.com/.qmail-windsorusers-return-default


2007/07/18 19:17:37 [5675] skipping non-regular file 
domains/fleetwoodmetal.com/0/tinag/IMAPdir/INBOX


2007/07/18 19:27:49 [5675] skipping non-regular file 
domains/fleetwoodmetal.com/akhan/IMAPdir/INBOX


2007/07/18 20:39:18 [5675] skipping non-regular file 
domains/fleetwoodmetal.com/lisat/IMAPdir/INBOX


2007/07/18 20:43:43 [5675] skipping non-regular file 
domains/fleetwoodmetal.com/paulc/IMAPdir/INBOX


2007/07/18 20:46:53 [5675] skipping non-regular file 
domains/systems.fleetwoodmetal.com/.qmail-fmi


2007/07/18 20:47:13 [5675] skipping non-regular file 
domains/systems.fleetwoodmetal.com/.qmail-fmi-default


2007/07/18 20:47:13 [5675] skipping non-regular file 
domains/systems.fleetwoodmetal.com/.qmail-fmi-owner


2007/07/18 20:47:13 [5675] skipping non-regular file 
domains/systems.fleetwoodmetal.com/.qmail-fmi-return-default


2007/07/18 20:50:58 [5675] wrote 28 bytes read 21077482315 bytes total 
size 21140357580


--

Permission, ownership and group on the source box (before rsync)


drwx-- 38 vpopmail vchkpw 4096 Jul 9 13:58 0

drwx-- 6 vpopmail vchkpw 4096 Sep 18 2006 akhan

drwx-- 3 vpopmail vchkpw 4096 Feb 23 11:09 alb

drwx-- 8 vpopmail vchkpw 4096 Jun 27 13:37 allusers

drwx-- 3 vpopmail vchkpw 4096 Sep 18 2006 alm

drwx-- 3 vpopmail vchkpw 4096 Feb 22 08:17 angilad

drwx-- 3 vpopmail vchkpw 4096 Jul 4 11:48 barbm

drwx-- 3 vpopmail vchkpw 4096 Jul 16 08:00 billj

drwx-- 3 vpopmail vchkpw 4096 Apr 10 11:04 bills

drwx-- 3 vpopmail vchkpw 4096 Sep 18 2006 bonitap

drwx-- 3 vpopmail vchkpw 4096 Feb 23 11:07 brianm

-

Permission, ownership and group after rsync

-

drwx-- 38 nobody nobody 4096 Jul 18 15:27 0

drwx-- 6 nobody nobody 4096 Jul 18 15:34 akhan

drwx-- 3 nobody nobody 4096 Jul 18 15:35 alb

drwx-- 8 nobody nobody 4096 Jul 18 15:35 allusers

drwx-- 3 nobody nobody 4096 Jul 18 15:35 alm

drwx-- 3 nobody nobody 4096 Jul 18 15:35 angilad

drwx-- 3 nobody nobody 4096 Jul 18 15:36 barbm

drwx-- 3 nobody nobody 4096 Jul 18 15:37 billj

drwx-- 3 nobody nobody 4096 Jul 18 15:37 bills

drwx-- 3 nobody nobody 4096 Jul 18 15:38 bonitap

drwx-- 3 nobody nobody 4096 Jul 18 15:38 brianm

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: files permission and hidden files are not rsync properly

2007-07-19 Thread Abdul Khan

On 7/19/07, Abdul Khan [EMAIL PROTECTED] wrote:


 I have recently installed rsync.2.6.9. on CentOS4.x boxes. That was my
 first backup yesterday.
  


In the future and if you need more help on this issue than the below,
please send the exact rsync command you used!




 But I notice that some hidden (or dot files) are not copied to the other
 host on the network.
  


Rsync said skipping non-regular file.  That means the files aren't
regular and you haven't passed the option to tell rsync to copy files
of that type.  What are those files?  Symlinks?  If so, then pass -l.




 And group and ownership of the files are changed to
 nobody while files and folders permission are copied properly. So what
 am mission here can anybody shed light please?
  


By default, rsync preserves owners and groups by name if possible or
otherwise by number.  That means if the destination machine lacks a
vpopmail user and a vchkpw group, rsync sets the same numerical
IDs on the destination as on the source.  If those IDs represent
nobody and nobody on the destination, the files get that
ownership.  Creating vpopmail and vchkpw on the destination
machine should fix the problem.

Matt



Hi Matt,
Thank you for response.



 In the future and if you need more help on this issue than the below,
 please send the exact rsync command you used!
  


Here is the command that I ran from the destinition machine which is also
running the rsync daemon or the rsync server;

[EMAIL PROTECTED] admin]# rsync --verbose --progress --stats --recursive
/home/vpopmail/ 192.167.1.61::email_backup/

they are not symlinks as log mentioned they are hidden files (or dot
files), so is there any thing specific that I have to add in the command
to copy those as well?



 By default, rsync preserves owners and groups by name if possible or
 otherwise by number.  That means if the destination machine lacks a
 vpopmail user and a vchkpw group, rsync sets the same numerical
 IDs on the destination as on the source.  If those IDs represent
 nobody and nobody on the destination, the files get that
 ownership.  Creating vpopmail and vchkpw on the destination
 machine should fix the problem.
  


The destination machine is actually the mirror of the source so both
mochines are identical and both vpopmail user and vchkpw group do
exist on the destinition.

here is the evidence of vpopmail and vchpkw on the destinition;

[EMAIL PROTECTED] admin]# cat /etc/group | grep vchk*
vchkpw:x:89:
[EMAIL PROTECTED] admin]# cat /etc/passwd | grep vpopmail
vpopmail:x:89:89::/home/vpopmail:/bin/bash

Thanks in advance.

ak







-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: files permission and hidden files are not rsync properly

2007-07-19 Thread A. Khan

  In the future and if you need more help on this issue than the below,
 please send the exact rsync command you used!

 Here is the command that I ran from the destinition machine which is 
also

running the rsync daemon or the rsync server;

[EMAIL PROTECTED] admin]# rsync --verbose --progress --stats --recursive
/home/vpopmail/ 192.167.1.61::email_backup/

they are not symlinks as log mentioned they are hidden files (or dot
files),

Hidden file is not a file type.  On Unix-like systems, the concept
of hidden-ness does not exist at the filesystem level or in most
filesystem tools (e.g., rsync).  That a file whose name begins with a
dot is considered hidden is merely a convention among the user
interfaces of most file listers/browsers and a few other tools.

so is there any thing specific that I have to add in the command
to copy those as well?

As per the above, dot files are nothing out of the ordinary to rsync
and no special option is needed to make rsync copy them.

Please send the ls -la output showing the dot files so I can see
what their file type is (as indicated by the first character of each
line of the  listing).

Matt you are right that the hidden files are not file types. I certainly 
overlooked at them and they are basically Symlinks. (sorry for my 
previous claim) I was basically mixing with one of our other box that I 
had to create some hidden files (dot files) manually. Applology.


Since that is out of the way I can pass --links with rsync command to 
rsync the symlinks.

Here is the ls -la output of few of the files that you asked for;

lrwxrwxrwx   1 vpopmail vchkpw57 Oct 23  2006 .qmail-allusers - 
/home/vpopmail/domains/f leetwoodmetal.com/allusers/editor
lrwxrwxrwx   1 vpopmail vchkpw60 Oct 23  2006 
.qmail-allusers-accept-default - /home/vpo 
pmail/domains/fleetwoodmetal.com/allusers/moderator
lrwxrwxrwx   1 vpopmail vchkpw58 Oct 23  2006 
.qmail-allusers-default - /home/vpopmail/d 
omains/fleetwoodmetal.com/allusers/manager


I just realized a much more likely cause of the problem.  If the rsync
daemon on the destination is started as root, by default it changes
IDs to nobody:nobody before accessing the module and thus loses the
power to set the owners of received files arbitrarily (in this case,
to vpopmail:vchkpw).  To make the daemon stay as root so it can
chown the  files, explicitly say uid = root and gid = root in the
rsyncd.conf .

Here is the existing /etc/rsyncd.conf file;

[EMAIL PROTECTED] fleetwoodmetal.com]# cat /etc/rsyncd.conf
log file = /var/log/rsyncd.log
log format = %h %o %f %l %b
[email_backup]
path = /email_backup
comment = email backup
list = yes
read only = no

Which I am going to change it to ;
log file = /var/log/rsyncd.log
log format = %h %o %f %l %b
uid = root
gid = root
[email_backup]
path = /email_backup
comment = email backup
list = yes
read only = no

Thank you for your help again.



-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

rsyncd.conf

2007-07-16 Thread Abdul Khan

Hi,
I have installed rsync on CentOS4, Installation went through ok and I 
tested it as well by copying a folder to mounted tap backup drive.
But now I need to run rsync as daemon(server), trying to find 
/etc/rsyncd.conf file but there is no rsyncd.conf  file exists under 
/etc directory.


Having read online I found out that /etc/rsyncd.conf file needs to be 
manually created. Is there any sample rsyncd.conf file exisit?


Can anybody guide me in the right direction.

Thanks in advance
ab kh

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


how to use option for rsync

2007-03-16 Thread mohd tariq raza khan

hello all,

i want to backup some files from serverA to serverB. but problem is that i
can ssh to serverB direcr as root with default port. i have to first ssh as
user with port 65300 and have to su - than only get root prompt of serverB .
is there any option with rsync to solve this???

serverA# ssh -l user serverB -p 65300
 then only login
[EMAIL PROTECTED] su -

[EMAIL PROTECTED]
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html