Rsync Users and Groups

2022-06-24 Thread Alexander Gribanov via rsync
Hello everybody!

I'm trying to configure rsync-server, but still I can't figure out how to
manage users and groups.

I read in the documentation that I could use both, but there is nothing
about how to add a user into a particular group...

Why am I doing this?
1. I have about 10 modules, which are different and must be available for
some users and not available for other users.
2. There are many users, new users are arriving, some old users are going
out, so it would be easier to assign group permissions to the modules and
then manage just user-group relations, but I couldn't find that in
documentation, nor examples on the internet...

Could anybody please give me a hint or a clue about how to assign a user to
a particular group? I'm sure that this should work, but I can't find it out
myself :(

Thank you very much.
-- 
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 Users and Groups

2022-06-24 Thread Alexander Gribanov via rsync
Hello, Kevin! Thank You very much for the reply.

пт, 24 июн. 2022 г. в 19:00, Kevin Korb via rsync :

> I think you are thinking too much of rsync here.  Rsync groups are the
> same as users they just have an @ in front of the name.  If you want
> UNIX style users and groups then use rsync over ssh and get the bonus of
> ssh's authentication as well as not needing an rsyncd.conf file at all.
>

Well, actually, I wouldn't like to do anything with system users and groups,
but it would be nice to have virtual users and groups, which are available
for rsyncd only.
Is it possible?

Or maybe there is an opportunity to use external authentication mechanisms
or some kind of modules, etc?


> On 6/24/22 11:13, Alexander Gribanov via rsync wrote:
> > Hello everybody!
> >
> > I'm trying to configure rsync-server, but still I can't figure out how
> > to manage users and groups.
> >
> > I read in the documentation that I could use both, but there is nothing
> > about how to add a user into a particular group...
> >
> > Why am I doing this?
> > 1. I have about 10 modules, which are different and must be available
> > for some users and not available for other users.
> > 2. There are many users, new users are arriving, some old users are
> > going out, so it would be easier to assign group permissions to the
> > modules and then manage just user-group relations, but I couldn't find
> > that in documentation, nor examples on the internet...
> >
> > Could anybody please give me a hint or a clue about how to assign a user
> > to a particular group? I'm sure that this should work, but I can't find
> > it out myself :(
> >
> > Thank you very much.
> >
>
> --
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
> Kevin Korb  Phone:(407) 252-6853
> Systems Administrator   Internet:
> FutureQuest, Inc.   ke...@futurequest.net  (work)
> Orlando, Floridak...@sanitarium.net (personal)
> Web page:   https://sanitarium.net/
> PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
>
-- 
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 just hanging sometimes

2022-07-28 Thread Alexander Gribanov via rsync
чт, 28 июл. 2022 г. в 00:01, Alexander Gribanov :

> ср, 27 июл. 2022 г. в 16:55, :
>>
>>> On Wed, 27 Jul 2022 13:30:32 +0300 Alexander Gribanov via rsync wrote:
>>> > Rsync starts, goes as in the log below and just hangs like this for
>>> minutes
>>> > or maybe even hours and nothing changes...
>>>
>>> This may happen when windows is involved.
>>>
>>> Try to add the --whole-file option.
>>>
>>
>> Thank You very much, so far it helped to solve the problem...
>> In the documentation it is said:
>> -W, --whole-file copy files whole (w/o delta-xfer algorithm)
>> When I tried just to add the letter "W" to my options, it didn't work,
>> but with "--whole-file" it worked...
>>
>
>  Well, it seems that after some files the same problem appears again...
> Just sometimes I get on the rsync-client something like "connection reset
> by peer" instead of hanging deadly...
>
> Are there any ideas about how to get more debug info in order to
> understand, what is the real problem?
>

Well, actually You were right, I found antivirus Dr.Web with expired trial
license,
after I deleted it completely from the computer, rsync started to work
perfectly and the speed was doubled :)
Thank You very much, some piece of information for Your knowledge database
:) Good luck.
-- 
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


Relative path problem

2022-07-27 Thread Alexander Gribanov via rsync
Hello!

I have external HDD for backups, but under Windows it may get different
drive letter on different computers, so I would like to use relative path
instead of full path like ../Backup instead of /cygdrive/g/Backup

In this case I have in the root folder of the drive 2 folders:
cygwin-rsync - here rsync and bat-scripts for backup all needed modules
Backup - here where all backup files should be stored

So when I connect the drive, I go to the folder cygwin-rsync and run there
backup.bat...
it contains a command like this:
bin\rsync.exe -vvrlth --progress --delete-before --password-file
password.txt u...@myhost.com::Module1 ../Backup/Module1
This should works (destination folder is one folder up and then Backup
folder, etc), but instead it says that:
rsync: mkdir "/../Backup/Module1" failed: No such file or directory (2)
I don't understand why it adds a slash "/" at the beginning of the
destination path?
Is it a bug or I'm doing something wrong? Thank You very much.

Here is the full log:
g:\cygwin-rsync>bin\rsync.exe -vvrlth --progress --delete-before
--password-file password.txt u...@myhost.com::Module1 ../Backup/Module1
opening tcp connection to myhost.com port 873
sending daemon args: --server --sender -vvltre.LsfxC . Module1/  (5 args)
receiving file list ...
3310 files to consider
rsync: mkdir "/../Backup/Module1" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(675) [Receiver=3.1.2]
-- 
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


Rsync just hanging sometimes

2022-07-27 Thread Alexander Gribanov via rsync
Hello!

I just encountered a weird situation and don't even know how to find out
what happened?
There is nothing in the rsync-server logs, nothing on the screen, maybe
should I add some more keys (options) to get more detailed information?

I just successfully synchronized one module and got this problem on the
second module...
Rsync starts, goes as in the log below and just hangs like this for minutes
or maybe even hours and nothing changes...

Here is the full output:
g:\cygwin-rsyncd>bin\rsync.exe -vvrlth --progress --delete-before
--password-file password.txt u...@myhost.com::Module2-Lectures
cygdrive/g/Backup/Module2-Lectures
opening tcp connection to myhost.com port 873
sending daemon args: --server --sender -vvltre.LsfxC . Module2-Lectures/
 (5 args)
receiving file list ...
[Receiver] expand file_list pointer array to 524288 bytes, did move
53937 files to consider
deleting in .
delta-transmission enabled
First-Folder/Second-Folder/
First-Folder/Second-Folder/file-1.zip
120.49M   5%   57.25MB/s0:00:33
-- 
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 just hanging sometimes

2022-07-27 Thread Alexander Gribanov via rsync
Hello!

ср, 27 июл. 2022 г. в 16:55, :

> On Wed, 27 Jul 2022 13:30:32 +0300 Alexander Gribanov via rsync wrote:
> > Rsync starts, goes as in the log below and just hangs like this for
> minutes
> > or maybe even hours and nothing changes...
>
> This may happen when windows is involved.
>
> Try to add the --whole-file option.
>

Thank You very much, so far it helped to solve the problem...
In the documentation it is said:
-W, --whole-file copy files whole (w/o delta-xfer algorithm)
When I tried just to add the letter "W" to my options, it didn't work, but
with "--whole-file" it worked...


> --
> francis.montag...@inria.fr, DSI-SP, Tel: (33) 04 92 38 79 11, Bur: C111
> INRIA Sophia, 2004, route des Lucioles - BP 93 06902 Sophia Antipolis Cedex
>
-- 
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 just hanging sometimes

2022-07-27 Thread Alexander Gribanov via rsync
>
> ср, 27 июл. 2022 г. в 16:55, :
>
>> On Wed, 27 Jul 2022 13:30:32 +0300 Alexander Gribanov via rsync wrote:
>> > Rsync starts, goes as in the log below and just hangs like this for
>> minutes
>> > or maybe even hours and nothing changes...
>>
>> This may happen when windows is involved.
>>
>> Try to add the --whole-file option.
>>
>
> Thank You very much, so far it helped to solve the problem...
> In the documentation it is said:
> -W, --whole-file copy files whole (w/o delta-xfer algorithm)
> When I tried just to add the letter "W" to my options, it didn't work, but
> with "--whole-file" it worked...
>

 Well, it seems that after some files the same problem appears again...
Just sometimes I get on the rsync-client something like "connection reset
by peer" instead of hanging deadly...

Are there any ideas about how to get more debug info in order to
understand, what is the real problem?
-- 
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