-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different paths for different hosts #7
Comments
Interesting idea; should be not too difficult to implement. Do you assume that the home dirs are strictly the same or that some content is specific to each computer? In the former case, we can keep your config scheme as is, while in the latter we will probably need to add host-specific include/exclude filters. |
It would be nice to have host-specific *clude filters, but I'll make that a separate issue. |
This should be solved by e957205. The behavior is the same as before if the module root is a string (i.e. use it on all hosts), and I followed the behavior you defined in your first comment: use host-specific root if defined, fails if host is not defined. Note that I'm using the hostname as returned by socket.gethostname: depending on the system, it may not be the FQDN. Let me know if it works for you or if I need to look for both |
Let's say I want to synchronise my home directory on two computers (
alfa
, andbravo
), but my username (and therefore, the path of my home dir) are different.Perhaps a
sneakersync.cfg
like this:And if I try to sync with a third computer (
charlie
), it should die with an error like so:The text was updated successfully, but these errors were encountered: