aaron.duncan@centrelink.gov.au
2004-Dec-22 02:48 UTC
possible bug with --files-from and --no-relative options
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 925 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20041222/36f828dc/attachment.gif
Wayne Davison
2004-Dec-22 09:27 UTC
possible bug with --files-from and --no-relative options
On Wed, Dec 22, 2004 at 01:46:48PM +1100, aaron.duncan@centrelink.gov.au wrote:> if it is indeed a bug, then hopefully it may raise it to someone's > attention for fixing in a future release.Good catch! Rsync needs to send the --no-relative option to the remote rsync when it has sent the --files-from option (it avoids doing that when --files-from was not sent to the other side because it allows a sender to send a files-from-generated list to an older rsync version). I've just checked-in a fix for this into the CVS version. I'll also attach the patch, which should be easy to apply to 2.6.3 or earlier (though I didn't check to see if it applies cleanly to older versions). Thanks for the very complete bug report! It made it a snap to figure out what was wrong and fix it. ..wayne.. -------------- next part -------------- --- options.c 8 Dec 2004 17:29:54 -0000 1.191 +++ options.c 22 Dec 2004 09:08:17 -0000 @@ -1236,6 +1236,8 @@ void server_options(char **args,int *arg args[ac++] = "--files-from=-"; args[ac++] = "--from0"; } + if (!relative_paths) + args[ac++] = "--no-relative"; } *argc = ac;
kbala@midascomm.com
2004-Dec-22 09:45 UTC
How to rsync only one month data rather mirroring the remote machine complete data
Hi, Scenario: we have a backup server which backup the data from some set of remote machine. Accidently we have deleted the backup directory and in remote machine more than 1 year data is available. We are only intrested in one month data rather transfering all the datas. ( may be transfer the data from remote machine which are created after time t1.) Regards, Bala