Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm a Eclipse's user and I want synchronize my workspace on Ubuntu One. The problem is because the Eclipse creates a metadata inside of workspace, this meta have some configurations of computer that use this program.

So, when I sync my workspace folder, this meta go with all my projects, and when I download it in another computer, Ubuntu One overrides the meta folder and crashes my Eclipse.

There is some way of share a folder on Ubuntu One, but eliminate some internal folders?

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

There is a hidden configuration option, which you can add a list of Python (not shell) expressions to, for ignoring specific file extensions for example. In the ~/.config/ubuntuone/syncdaemon.conf file you can add the following:

[__main__]
ignore = \A.*\.metadata\Z

This should keep the .metadata folder from being synchronized. If the file already exists, and has an existing [__ main __] (without spaces) section, don't add another one.

You should stop ubuntuone-syncdaemon by running u1sdtool -q in a terminal, first. Then make your changes, and run u1sdtool -c to restart and connect the syncdaemon.

share|improve this answer
    
Nice answer! Can you provide more info on that trick? I'm confused about the \A-\Z syntax. –  Rafał Cieślak Mar 22 '12 at 18:07
    
@rafalcieslak docs.python.org/library/re.html#regular-expression-syntax \A is "match only at start" and \Z is "match only at end" similar to ^ and $ in other regular expression implementations, respectively. –  dobey Mar 22 '12 at 18:10
    
Right! great thanks! –  Rafał Cieślak Mar 22 '12 at 18:36
    
Thank you!!!! Work like a charm!!! For someone who want try this, you will need reboot your pc!! –  Guilherme Franco Mar 23 '12 at 17:48
    
@GuilhermeFranco Ah, actually you don't need to reboot. You can run u1sdtool -q in a terminal to quit the syncdaemon, and u1sdtool -c to start it back up after making the changes. Should have put that in the answer too. –  dobey Mar 23 '12 at 20:28
show 2 more comments

You could do a cron job that recursively copies, thus leaving out the .whatever files. Then you can sync the whole thing of the copy. I don't use ubuntuone(I'm skeptical about all things cloud), so I'm not "up" on its configuration options, but I use a similar approach for some of the stuff I throw on github.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.