Translating user names during transfer.
Is there a way to translate file ownership during transfer. For example, can it be done such that all files owned by user1 end up being owned by user2, and all files owned by user3 end up being owned by user4. The actual problem we're trying to solve is that some, but not all, users don't exist on the target system so we'd like the ownership for users which do exist to remain but to have a default owner (or, even better, set of owners) for the rest. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | 2011 May 21 is the Day of Judgement. EMail: d...@mielke.cc | Canada K2A 1H7 | 2011 Oct 21 is the End of the World. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- 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
Default user when name not defined.
Have I missed an option somewhere? Is there a way to define a default user which is to be used when the actual user doesn't exist at the receiving end? Right now the action is to copy the user by number, but this is unsafe in certain environments, and it'd be much better to be able to name a default user. The same, of course, applies to groups as well. Thanks. -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- 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: Default user when name not defined.
[quoted lines by Wayne Davison on 2006/03/13 at 09:30 -0800] offset for numeric IDs, such as --id-offset=5000. This would map any ID 5000 to ID+5000, and any ID = 5000 to ID-5000 (assuming that either --numeric-ids was specified or that no matching name was found). I think I like the latter idea better than the former. No, that'd still be unsafe. It needs to be predictable so that access rights aren't being inadvertently granted to those who shouldn't have them. Being able to specify a specific name would achieve this. -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- 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: Default user when name not defined.
[quoted lines by Wayne Davison on 2006/03/13 at 10:05 -0800] An ID offset is predictable: you simply specify an offset that elevates the ID numbers to a value above what you use on your systems for real users. The only potential problem I can see is if you might have unexpected unreal IDs in a backup transfer -- i.e. if you did a backup operation to a system that is going to do a backup operation. To combat that, the option could be changed to something like --id-offset=+5000 when backing up, and --id-offset=-5000 when restoring, and that would prevent a backup copy from ever turning a 5000 ID into one 5000 unexpectedly. Perhaps this what you meant? No. I'm talking about replicating a set of files on a system which is controlled by others and whereon I can't set policy. Simply relocating a block of userids would simply relocate the wrong access grants from one set of users to another set of users. -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- 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 2.6.7pre1 is now available
[quoted lines by Jamie Lokier on 2006/02/09 at 18:55 +] I think the hyphen is out of place; it looks very wrong to my eye, but I'm not a grammarian so don't have a fine explanation. You're quite right ... read in should be two separate words as there should not be a hyphen between a verb and a preposition. In the same way, past-tense looks quite wrong too. Again, you're right. A hyphen shouldn't be used to separate an adjective from the noun it modifies. For example, you'd never say I live in a brown-house. -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- 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 2.6.7pre1 is now available
[quoted lines by Wayne Davison on 2006/02/08 at 21:07 -0800] You can read all about the latest improvements and bug-fixes in the NEWS file: http://rsync.samba.org/ftp/rsync/preview/rsync-2.6.7pre1-NEWS The itemized output now uses 'S' for a special file instead of clumping them together with the 'D' for devices. Is this a Windows thing? On Unix-like systems, unless I'm misunderstanding something, there's no such thing as a device file, i.e. a device is either character special or block special. The new option --human-readable (-h) changes the output of ... I thought -h was the short option for --help. Wouldn't it be better to leave it that way, if only for convention's sake? -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Very large memory block.
Using rsync-2.6.6, I'm getting: unable to alloc 417794083 bytes Under what circumstances would rsync allocate a block that large? Must it be able to allocate a block as large as the largest file or something? Is there a way to limit it? -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Dynamically determined include/exclude list.
Is there a way to define a module within rsyncd.conf such that its include/exclude list is dynamically determined by executing a host command, e.g. find? If it can't be done today, is it the sort of feature which would be considered for future development? -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- 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: Dynamically determined include/exclude list.
[quoted lines by Wayne Davison on 2005/11/10 at 12:09 -0800] In the CVS version of rsync, you could specify a pre-xfer exec command that could run anything you like (such as find). Does this then write the output of, say, find to a file which is picked up later (during the transfer) by something like include from? However, the only way that could affect what gets included/excluded in the already-started transfer would be for you to use per-directory filter files. For example, if you have this filter rule in your config file: What I'm looking for is the ability to only transfer files which meet a certain set of criteria, e.g. only files which are owned by a certain user. -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
--backup leaves window where file doesn't exist.
When using --backup, the sequence (as monitored by strace) is: rename(/path/to/file, backup-dir/filebackup-suffix) rename(/path/to/.file.xx, /path/to/file) This, of course, leaves a momentary window wherein file can't be found. Might it be possible to replace the first rename() with link() instead? This, of course, could only be done when the backup directory is on the same volume. -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- 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: --backup leaves window where file doesn't exist.
[quoted lines by Chris Shoemaker on 2005/09/15 at 09:59 -0400] what about when backup-dir is not on same filesystem as original? link will give EXDEV, I think. Then, as I see it, rsync should go back to using rename but generate a warning. -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- 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: --backup leaves window where file doesn't exist.
[quoted lines by Dave Mielke on 2005/09/15 at 10:09 -0400] [quoted lines by Chris Shoemaker on 2005/09/15 at 09:59 -0400] what about when backup-dir is not on same filesystem as original? link will give EXDEV, I think. Then, as I see it, rsync should go back to using rename but generate a warning. I should, of course, have thought a bit more about my answer before presenting it. The rename() system call itself doesn't support crossing a file system boundary. What rsync does if the backup-dir is on a different file system is copy the file over. In that case, therefore, it's already safe. The only change, therefore, should be to replace the first rename() with link(). Since both yield EXDEV, I doubt any more complex change is necessary. -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Logging of attribute changes when no data is transferred?
How can I get rsync to write a log record (like --log-format does for data transfer) when no content needs to be transferred but attributes (owner, group, mode, ...) are changed? -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html