rsync being remotely nice?

2004-11-13 Thread Lapo Luchini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Is there any command line option to change the remote rsync command?

My idea would be to use nice rsync instead of rsync remotely, to
backup servers that are under heavy load...

Lapo

- --
Lapo Luchini
[EMAIL PROTECTED] (PGP  X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkGV+U4ACgkQaJiCLMjyUvuMEACfSG4HXwvgMK/wHF0/4w3Ya6wX
eEIAnRI4NEP0kLu/UWXCwUmJfnfUVkgv
=8U7v
-END PGP SIGNATURE-
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Archive Delete Mode

2004-11-13 Thread Robert Boucher
Patch to add an archive mode that includes deletion.
-Rob
Adds an archive mode that includes the delete option.

--- orig/options.c  2004-09-23 13:39:05.0 -0400
+++ options.c   2004-11-13 09:56:27.0 -0500
@@ -39,6 +39,7 @@
 int whole_file = -1;
 
 int archive_mode = 0;
+int archive_delete_mode = 0;
 int keep_dirlinks = 0;
 int copy_links = 0;
 int preserve_links = 0;
@@ -233,6 +234,7 @@
   rprintf(F, -q, --quiet decrease verbosity\n);
   rprintf(F, -c, --checksum  always checksum\n);
   rprintf(F, -a, --archive   archive mode, equivalent to 
-rlptgoD\n);
+  rprintf(F, -A, --archive-deletearchive mode with delete, equivalent 
to -rlptgoD --delete\n);
   rprintf(F, -r, --recursive recurse into directories\n);
   rprintf(F, -R, --relative  use relative path names\n);
   rprintf(F, --no-relative   turn off --relative\n);
@@ -366,6 +368,7 @@
   {verbose, 'v', POPT_ARG_NONE,   0,   'v', 0, 0 },
   {quiet,   'q', POPT_ARG_NONE,   0,   'q', 0, 0 },
   {archive, 'a', POPT_ARG_NONE,   archive_mode, 0, 0, 0 },
+  {archive-delete,  'A', POPT_ARG_NONE,   archive_delete_mode, 0, 0, 0 },
   {server,   0,  POPT_ARG_NONE,   am_server, 0, 0, 0 },
   {sender,   0,  POPT_ARG_NONE,   0,  OPT_SENDER, 0, 0 },
   {recursive,   'r', POPT_ARG_NONE,   recurse, 0, 0, 0 },
@@ -699,7 +702,7 @@
return 0;
}
 
-   if (archive_mode) {
+   if (archive_mode || archive_delete_mode) {
if (!files_from)
recurse = 1;
 #if SUPPORT_LINKS
@@ -712,6 +715,9 @@
preserve_devices = 1;
}
 
+   if (archive_delete_mode)
+   delete_mode = 1;
+
if (relative_paths  0)
relative_paths = files_from? 1 : 0;
 
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: rsync being remotely nice?

2004-11-13 Thread Wayne Davison
On Sat, Nov 13, 2004 at 01:08:46PM +0100, Lapo Luchini wrote:
 My idea would be to use nice rsync instead of rsync remotely, to
 backup servers that are under heavy load...

I tried using --rsync-path='nice rsync' and it worked fine for me.

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


Re: Archive Delete Mode

2004-11-13 Thread Wayne Davison
On Sat, Nov 13, 2004 at 10:02:14AM -0500, Robert Boucher wrote:
 Patch to add an archive mode that includes deletion.

Such a patch probably won't make it into rsync, but rsync could enable
the popt alias mode that would allow people to customize their rsync
options, and thus make typing personalized rsync commands easier.  Rsync
would need this patch:

--- options.c   11 Nov 2004 01:45:25 -  1.187
+++ options.c   13 Nov 2004 18:25:13 -
@@ -548,6 +548,7 @@ int parse_arguments(int *argc, const cha
/* The context leaks in case of an error, but if there's a
 * problem we always exit anyhow. */
pc = poptGetContext(RSYNC_NAME, *argc, *argv, long_options, 0);
+   poptReadDefaultConfig(pc, 0);
 
while ((opt = poptGetNextOpt(pc)) != -1) {
/* most options are handled automatically by popt;

At which point you could create a ~/.popt file that contains any alias
you wanted to create, such as these:

rsync alias -A -a --delete
rsync alias --archive-delete -A

Those lines create both the -A and --archive-delete options that you
specified (though you probably only really need the first line, since
I doubt that you'll want to type the second one).

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


Re: Database file rsync - any way to tell it to rsync against the last file?

2004-11-13 Thread Wayne Davison
On Fri, Nov 12, 2004 at 03:27:57PM -0600, Michael Bourgon wrote:
 Is there any way to tell it that I want to rsync mike_db_20041110.bak,
 using mike_db_20041109.bak as a source, so that when I'm done I still
 have both files?

One solution that rsync supports out of the box is to use custom named
directories with the same file name.  For instance, change the files to
be these:

20041109/mike_db.bak
20041110/mike_db.bak

You could then run an rsync command like this:

  rsync -av --link-dest=/path/20041109 20041110/ remote:/path/20041110/

(The repeated 20041110 dir is necessary to make the lookup in the link-
dest dir work right.)

There is also a diff in the patches dir named fuzzy.diff that lets you
specify the --fuzzy option when you want rsync to try to find a matching
basis file in the current directory (it must have the same suffix and be
named similarly to the transferred file).  Using an rsync modified with
that patch would work with the filenames you're currently using.  I'm
considering adding --fuzzy for the next release, but I'd like to see it
improved a bit first.

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


[Bug 2033] New: no error check for do_fork in do_recv

2004-11-13 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2033

   Summary: no error check for do_fork in do_recv
   Product: rsync
   Version: 2.6.3
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P3
 Component: core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
 QAContact: [EMAIL PROTECTED]


There is no error check in the call to do_fork in do_recv in main.c.

We do a daily rsync of a large tree (250GB), and occasionally it fails. This is
often caused by a fail of this fork call and it helps to know this.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2033] no error check for do_fork in do_recv

2004-11-13 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2033





--- Additional Comments From [EMAIL PROTECTED]  2004-11-13 14:02 ---
Created an attachment (id=771)
 -- (https://bugzilla.samba.org/attachment.cgi?id=771action=view)
proposed patch


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2033] no error check for do_fork in do_recv

2004-11-13 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2033


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2004-11-13 14:51 ---
Thanks!  This is now fixed in the CVS version.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


rsync bug

2004-11-13 Thread michael
I discovered that if etc/ is in an exclude file ,anything with etc will  
also be excluded,e.g. /usr/etc , /usr/local/etc ,and so on.Command i used:

rsync -av  -e ssh / mike:/ --exclude-from=/home/michael/excludes_mike  
--delete

and /home/michael/excludes_mike read at first
dev/
mnt/
proc/
tmp/
home/michael/Shared/*
home/michael/Incomplete/*
backup/
etc/
Later when i removed /etc from this list,changing it to
mnt/
proc/
tmp/
home/michael/Shared/*
home/michael/Incomplete/*
backup/
etc/HOSTNAME
etc/fstab
etc/inittab
etc/ssh/
etc/ssl/
etc/hotplug.d/
etc/hotplug/
every file with etc (not belonging to /etc )in its name was sync-ed,which  
must mean they had been previously excluded.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


CVS update: rsync

2004-11-13 Thread Wayne Davison

Date:   Sat Nov 13 22:32:34 2004
Author: wayned

Update of /data/cvs/rsync
In directory dp.samba.org:/tmp/cvs-serv12802

Modified Files:
main.c 
Log Message:
Tweaked the error code for a pipe() failure.


Revisions:
main.c  1.221 = 1.222
http://www.samba.org/cgi-bin/cvsweb/rsync/main.c?r1=1.221r2=1.222
___
rsync-cvs mailing list
[EMAIL PROTECTED]
http://lists.samba.org/mailman/listinfo/rsync-cvs