rsync cvs

2008-02-12 Thread PREM KUMAR
Hi
I am in new in rsync cvs. I want to know how to configure the rsync cvs. we
have two site we want sync on both site . If i do sync one site all the copy
come to overwrite. I am using this command'

rsync -az --delete --exclude '#cvs.*' --exclude 'CVSROOT/config' --exclude
'CVSROOT/history' --exclude 'CVSROOT/updatelog' [EMAIL PROTECTED]:
/home/cmadmin/

Please let me know how resolve.

Thanks and Regards

Prem
-- 
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 cvs

2008-02-12 Thread Matt McCutchen
On Tue, 2008-02-12 at 14:41 +0530, PREM KUMAR wrote:
 I am in new in rsync cvs. I want to know how to configure the rsync
 cvs. we have two site we want sync on both site . If i do sync one
 site all the copy come to overwrite. I am using this command'
 rsync -az --delete --exclude '#cvs.*' --exclude 'CVSROOT/config'
 --exclude 'CVSROOT/history' --exclude 'CVSROOT/updatelog'
 [EMAIL PROTECTED]: /home/cmadmin/
 
 Please let me know how resolve.

Rsync is designed for one-way copying; for two-way synchronization, use 
Unison ( http://www.cis.upenn.edu/~bcpierce/unison/ ) instead.  Even
so, Unison does file-level synchronization without any regard for the
special structure of CVS repositories, so it may corrupt the
repositories, especially if a change to the same file is committed on
both sites.  You may be able to find a specialized solution for
synchronizing CVS repositories; see this message:

http://readlist.com/lists/nongnu.org/info-cvs/1/5785.html

Or you could switch to a distributed version control system, which has
built-in support for repository synchronization.  My personal favorite
is git ( http://git.or.cz/ ).

Matt

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


Snapshot of rsync CVS repository?

2007-10-24 Thread Matt McCutchen
Wayne,

I would like to import the entire rsync CVS repository into git for my
own use.  I can do this by fetching revisions one by one from the
pserver, but it's abominably slow and probably bogs down the server
unacceptably.  Is there somewhere I can download a snapshot of the
repository (which I could then import locally)?

Matt

-- 
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: Snapshot of rsync CVS repository?

2007-10-24 Thread Wayne Davison
On Wed, Oct 24, 2007 at 07:44:15PM -0400, Matt McCutchen wrote:
 Is there somewhere I can download a snapshot of the
 repository (which I could then import locally)?

There is not currently a way to access the full repository anonymously.
Folks who are interested can contact me.  (I'll be in touch, Matt.)

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


Attention Small Stock Players for rsync-cvs

2005-12-11 Thread Brennan
A Must Watch ALERT Monday Dec 12th
Cash Now Corporation,

Symbol: CHNW
Price: .23
Up 0.14 (127.27%) on Thursday Dec 8th alone
Active (strong)

Volume Has Been Pretty Good. PR Program This Weekend Apprising Potential 
Investors of This One. A new PR campiagn will start Thursday. Get in before 
this starts for the best gains

News

Great news just released. This should really start to move!

The News

1) Payday Loan and Check-Cashing Leader Cash Now Offering Financing on 
Premium Autos for Those With Credit Challenges
   Market Wire (Thu, Dec 8)


2)Payday Loan Leader Cash Now Re-Launches Infomercials, Fueling Expansion of 
Licensees and Further Organic Growth
  Market Wire (Wed 10:00am)

3) Payday Loan Leader Cash Now Strengthens Infrastructure to Handle Increase 
in Business -- 'Scaling for the Future'
  Market Wire (Wed 10:00am)


DiscI_imer: Statements regarding fi_ancial matters in this pr_ss re1ease 
other than historical facts are ``f0rw_rd-lO0king statements'' within the 
meaning of se(tion 27 A of the S_curities A(t of 193 3, Se(tion 21 E of the 
Se(urities Ex(hange A(t of 1934, and as that term is defined in the Pr_vate 
Se(urities Litig_tion Ref orm A(t of 1995. The (ompany intends that such 
statements about the (ompany's future expe(tations, in(luding future 
revenues and e_rnings, and all other f0rward-l0Oking statements, be subje(t 
to the safe har bors created thereby. Since these statements (future ope 
rational results and s ales) involve ri sks and un(ertainties and are 
subject to (hange at any time, the (ompany's actu al re sults may differ 
materi ally from ex pected results.
___
rsync-cvs mailing list
rsync-cvs@lists.samba.org
https://lists.samba.org/mailman/listinfo/rsync-cvs


Re: rsync, --cvs-exclude option.

2005-04-07 Thread Wayne Davison
On Thu, Apr 07, 2005 at 02:28:03AM +0530, Molumuri, Janardhan wrote:
 But --cvs-exclude means excluding only CVS dir right

This reveals that you haven't read the man page -- please give it a try.

http://rsync.samba.org/ftp/rsync/rsync.html

The one thing that it doesn't mention is that rsync will not know about
any exceptions made to cvs's default ignore rules (which could only be
discovered by reading the names in the CVS/Entries file -- something
that rsync doesn't do).

..wayne..
-- 
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, --cvs-exclude option.

2005-04-07 Thread Wayne Davison
On Wed, Apr 06, 2005 at 11:54:51PM -0700, Wayne Davison wrote:
 The one thing that it doesn't mention is that rsync will not know about
 any exceptions made to cvs's default ignore rules (which could only be
 discovered by reading the names in the CVS/Entries file -- something
 that rsync doesn't do).

An interesting question is:  should rsync do this?  On the one hand, it
makes an existing option (--cvs-ignore) work more correctly.  On the
other hand, it binds rsync even more tightly to a single version-control
program, and perhaps we should start transitioning over to having folks
translate their version-control-specific exception-lists into
.rsync-filter files and use the -F option.  E.g., a simple perl script
could parse the CVS/Entries file into + NAME entries, and then
word-split the items in the .cvsignore file into - NAME entries, and
save the whole thing as a local .rsync-filter file.

The code to support direct reading of CVS/Entries files is pretty easy
to do, so I've attached a patch that turns the names in the file into
include rules on a per-directory basis -- allowing files that were
explicitly added into CVS to override a cvsignore rule.

Comments?

..wayne..
--- exclude.c   7 Apr 2005 18:06:06 -   1.115
+++ exclude.c   7 Apr 2005 18:06:34 -
@@ -442,6 +442,14 @@ void *push_local_filters(const char *dir
set_filter_dir(dir, dirlen);
}
 
+   if (ex-match_flags  MATCHFLG_CVS_IGNORE
+strlcpy(dirbuf + dirbuf_len, CVS/Entries,
+   MAXPATHLEN - dirbuf_len)  MAXPATHLEN - dirbuf_len) {
+   /* Start by adding include rules for all the names in 
CVS/Entries. */
+   parse_filter_file(lp, dirbuf,
+ MATCHFLG_NO_PREFIXES | MATCHFLG_INCLUDE,
+ XFLG_CVS_ENTRIES);
+   }
if (strlcpy(dirbuf + dirbuf_len, ex-pattern,
MAXPATHLEN - dirbuf_len)  MAXPATHLEN - dirbuf_len) {
parse_filter_file(lp, dirbuf, ex-match_flags,
@@ -958,6 +966,7 @@ void parse_filter_file(struct filter_lis
char line[MAXPATHLEN+MAX_RULE_PREFIX+1]; /* +1 for trailing slash. */
char *eob = line + sizeof line - 1;
int word_split = mflags  MATCHFLG_WORD_SPLIT;
+   int slash_parse = xflags  XFLG_CVS_ENTRIES ? 1 : 0;
 
if (!fname || !*fname)
return;
@@ -1002,6 +1011,29 @@ void parse_filter_file(struct filter_lis
continue;
break;
}
+   switch (slash_parse) {
+   case 1:
+   if (ch == '/') {
+   s = line;
+   slash_parse = 2;
+   continue;
+   }
+   break;
+   case 2:
+   if (ch == '/') {
+   slash_parse = 3;
+   continue;
+   }
+   break;
+   case 3:
+   if (ch == '\n' || ch == '\r') {
+   slash_parse = 1;
+   goto double_break;
+   }
+   continue;
+   default:
+   break;
+   }
if (word_split  isspace(ch))
break;
if (eol_nulls? !ch : (ch == '\n' || ch == '\r'))
@@ -1011,6 +1043,7 @@ void parse_filter_file(struct filter_lis
else
overflow = 1;
}
+   double_break:
if (overflow) {
rprintf(FERROR, discarding over-long filter: %s...\n, 
line);
s = line;
--- rsync.h 28 Mar 2005 17:08:47 -  1.261
+++ rsync.h 7 Apr 2005 18:06:34 -
@@ -115,6 +115,7 @@
 #define XFLG_FATAL_ERRORS  (10)
 #define XFLG_OLD_PREFIXES  (11)
 #define XFLG_ANCHORED2ABS  (12)
+#define XFLG_CVS_ENTRIES   (13)
 
 #define PERMS_REPORT   (10)
 #define PERMS_SKIP_MTIME   (11)
-- 
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, --cvs-exclude option.

2005-04-06 Thread Molumuri, Janardhan
Hi Martin,

Yes we can add --include=*.exe, 

But --cvs-exclude means excluding only CVS dir right, But currently it is 
excluding other also.

I am confused.


static char default_cvsignore[] =
/* These default ignored items come from the CVS manual. */
RCS SCCS CVS CVS.adm RCSLOG cvslog.* tags TAGS
 .make.state .nse_depinfo *~ #* .#* ,* _$* *$
 *.old *.bak *.BAK *.orig *.rej .del-*
 *.a *.olb *.o *.obj *.so *.exe
 *.Z *.elc *.ln core
/* The rest we added to suit ourself. */
 .svn/;

Thanks,
-janardhan.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Martin Scharrer
Sent: Thursday, April 07, 2005 2:20 AM
To: rsync@lists.samba.org
Subject: Re: [rsync-announce] Rsync 2.6.4 released


Please open a new thread for your questions. 
See also below.

On Thursday 31 March 2005 10:44, Molumuri, Janardhan wrote:
 When using --cvs-exclude option rsync is unable to sync *.exe files.
 
 Its throwing the following error.
 
 [sender] excluding file Update.exe because of pattern *.exe
 
 any ideas?

Add a --include=*.exe. 
This worked in my short test.

 Regards,
 -janardhan.
 P.S. I am using rsync-2.6.3 version.
I'm too. But a emerge -uvaD world on my gentoo box is already running...

best
Martin

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
--
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: patch to avoid race condition in rsync CVS

2004-02-25 Thread Wayne Davison
OK, here's a patch that tries to deal with the case of the rename
resulting in a copy.  It also attempts to deal with the possibility
that the source of the copy might not have read permissions set, and
the destination of the copy might not have write permissions.  This
passes make check, but no other tests have been performed.

Comments?

..wayne..
--- backup.c23 Feb 2004 07:03:03 -  1.27
+++ backup.c25 Feb 2004 21:42:44 -
@@ -130,8 +130,8 @@ failure:
 /* robustly move a file, creating new directory structures if necessary */
 static int robust_move(char *src, char *dst)
 {
-   if (robust_rename(src, dst, 0755) != 0  (errno != ENOENT
-   || make_bak_dir(dst)  0 || robust_rename(src, dst, 0755) != 0))
+   if (robust_rename(src, dst, 0755)  0  (errno != ENOENT
+   || make_bak_dir(dst)  0 || robust_rename(src, dst, 0755)  0))
return -1;
return 0;
 }
--- rsync.c 25 Feb 2004 21:20:59 -  1.133
+++ rsync.c 25 Feb 2004 21:42:44 -
@@ -235,15 +235,19 @@ void finish_transfer(char *fname, char *
if (make_backups  !make_backup(fname))
return;
 
+   /* Change permissions before putting the file into place. */
+   set_perms(fnametmp, file, NULL, 0);
+
/* move tmp file over real file */
ret = robust_rename(fnametmp, fname, file-mode  INITACCESSPERMS);
-   if (ret != 0) {
+   if (ret  0) {
rprintf(FERROR, %s %s - \%s\: %s\n,
ret == -2 ? copy : rename,
full_fname(fnametmp), fname, strerror(errno));
do_unlink(fnametmp);
-   } else {
-   set_perms(fname,file,NULL,0);
+   } else if (ret == 1) {
+   /* The file got copied, so set the permissions again. */
+   set_perms(fname, file, NULL, 0);
}
 }
 
--- t_stub.c11 Sep 2003 04:48:13 -  1.4
+++ t_stub.c25 Feb 2004 21:42:44 -
@@ -26,6 +26,7 @@
  * functions, so that module test harnesses can run standalone.
  **/
 
+int am_root = 0;
 int modify_window = 0;
 int module_id = -1;
 struct exclude_struct **server_exclude_list;
--- util.c  17 Feb 2004 23:13:10 -  1.132
+++ util.c  25 Feb 2004 21:42:44 -
@@ -28,6 +28,7 @@
 #include rsync.h
 
 extern int verbose;
+extern int am_root;
 
 int sanitize_paths = 0;
 
@@ -262,6 +263,8 @@ int copy_file(char *source, char *dest, 
return -1;
}
 
+   if (!am_root  !(mode  0400))
+   mode |= 0400;
ofd = do_open(dest, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, mode);
if (ofd == -1) {
rprintf(FERROR,open %s: %s\n,
@@ -353,8 +356,8 @@ int robust_unlink(char *fname)
 #endif
 }
 
-/* Returns 0 on success, -1 on most errors, and -2 if we got an error
- * trying to copy the file across file systems. */
+/* Returns 0 on successful rename, 1 if we successfully copied the file
+ * across filesystems, -1 on most errors, and -2 if copy_file() failed. */
 int robust_rename(char *from, char *to, int mode)
 {
int tries = 4;
@@ -371,10 +374,12 @@ int robust_rename(char *from, char *to, 
break;
 #endif
case EXDEV:
+   if (!am_root  !(mode  0200))
+   do_chmod(from, (mode  CHMOD_BITS) | 0200);
if (copy_file(from, to, mode) != 0)
return -2;
do_unlink(from);
-   return 0;
+   return 1;
default:
return -1;
}
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

FW: rsync-cvs mail list archiving broken??

2002-11-05 Thread Green, Paul
Thanks!  

If I can be of any help, please let me know. While I don't have a lot of
free time, either, I enjoy working on open-source software and have several
years of experience porting it to our system.  I'd be happy to try to lend a
hand from time to time, applying well-formed patches or looking at bugs.
Maybe my slack and busy periods would happen at different times from the
other maintainers...  I have access to a number of different operating
system environments to test things, not just my own. (Tho I guess the build
farm obviates the need for that, to a degree).  I want to fix rsync so that
temp file names are not longer than the original name (while still unique).
Our system has a name limit of 32 bytes, and so adding 5 or 6 chars is not a
good idea.

Thanks
PG

-Original Message-
From: Martin Pool [mailto:mbp;samba.org] 
Sent: Tuesday, November 05, 2002 5:37 PM
To: Green, Paul
Cc: [EMAIL PROTECTED]
Subject: Re: rsync-cvs mail list archiving broken??


On 10 Oct 2002, Green, Paul [EMAIL PROTECTED] wrote:
 No new CVS messages have appeared on the rsync-cvs archives since August
 30th.  This seems rather odd-- perhaps a daemon stopped working?   If
there
 has truly been no activity since that date, I apologize for
 disturbing you.

I think there really have been no commits since then:

  http://cvs.samba.org/cgi-bin/cvsweb/rsync/?sortby=date#dirlist

We are all slackers and/or overworked. :-(

I did see your Stratus (sp?) patch, and it looks harmless and useful.
I have a lot on at the moment but I don't mind merging it when I or
somebody else gets a chance.

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