Discussion:
problems with ignore/ignore not (yes I read the manual)
Nobody
2004-10-19 19:01:49 UTC
Permalink
Hi!


I've got some problems creating a profile that fits my needs:
I really don't see the use of the current implementation
of ignore/ignorenot.
I CAN create an example where the current behaviour
is of some use AND I see that it's very difficult to implement
an efficient and more intuitive behaviour.

But my problem is still this:

I need a profile for an often changing directory tree which
I can't edit every other day.
So it has to propagate new directories automatically.

Am I correct that there is no way to automate this
directory tree?

/root
/dir 1
/dir 2
/ignore dir 1
/ignore file 1
/backup_this_directory <-----
/ignore file 2
/ignore dir 2
/ignore file 3
/dir 3

All files/directories that are created in "ignore dir 1" should
be ignored BUT "backup_this_directory"
And since there COULD be new files in /root
I can't just say:
path = dir 1
path = dir 2
path = ignore dir 1/backup_this_directory
path = dir 3

What can I do?


Thanks in advance


Ulf




------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/26EolB/TM
--------------------------------------------------------------------~->


Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/unison-users/

<*> To unsubscribe from this group, send an email to:
unison-users-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Anthony Thyssen
2004-10-20 02:00:53 UTC
Permalink
Nobody on wrote...
|
| Hi!
|
|
| I've got some problems creating a profile that fits my needs:
| I really don't see the use of the current implementation
| of ignore/ignorenot.
| I CAN create an example where the current behaviour
| is of some use AND I see that it's very difficult to implement
| an efficient and more intuitive behaviour.
|

Problem... Ignore a whole directory, except a single file.

Say you want to
Say you are syncronising directory "a" (EG path = a )
But you want to ignore directorty "a/b" except the file "a/b/c/d"

The problem is if you want unison to update file "a/b/c/d",
you can NOT ignore ANY of the parent directories above that file!!!

Assuming their are no 'dot' files you also have to specifically ignore
(as "*" does not include a files or directories like ".xvpics")

path = a

# Do not ignore directory "a/b", just its contents...
ignore = Path a/b/*

# Don't ignore the parent directory of the file.
ignorenot = Path a/b/c

# But everything else in that directory
ignore = Path a/b/c/*

# Eacept the file/directory we are interested in synchronizing
ignorenot = Path a/b/c/d

It's a real pain to have to repeat this sequence down the whole directory path
leading up to the file, but that is the way it works.

If you have multiple files, or directory paths you can combine
the ignorenot's together. EG that last could be...

# do not ignore file "d" and sub-directories "e" and "f"
ignorenot = PATH a/b/c/{d,e,f}

# Ignore the contents of those directories
ignore = PATH a/b/c/{e,f}/*

# Don't ignore these specific files in those sub-directories
ignorenot = PATH a/b/c/e/this
ignorenot = PATH a/b/c/f/that


As I said a real pain, but it works.

This has put online in the file...
http://www.cit.gu.edu.au/~anthony/info/apps/unison.hints

Anthony Thyssen ( System Programmer ) http://www.cit.gu.edu.au/~anthony/
-----------------------------------------------------------------------------
Light thinks it travels faster than anything, but it is wrong.
No matter how fast light travels, it finds the darkness always got
there first, and it is waiting for it. -- Terry Pratchett - ``Reaper''
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/


------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/26EolB/TM
--------------------------------------------------------------------~->


Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/unison-users/

<*> To unsubscribe from this group, send an email to:
unison-users-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Nobody
2004-10-20 10:22:25 UTC
Permalink
Post by Anthony Thyssen
Problem... Ignore a whole directory, except a single file.
...
Post by Anthony Thyssen
As I said a real pain, but it works.
This has put online in the file...
http://www.cit.gu.edu.au/~anthony/info/apps/unison.hints
Thanx a lot!


Bye,

Ulf



------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/26EolB/TM
--------------------------------------------------------------------~->


Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/unison-users/

<*> To unsubscribe from this group, send an email to:
unison-users-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Continue reading on narkive:
Loading...