Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 5 FTP users that upload files (and subdirectories) in their home directory, i need to mirror theese directories beetween them and with a "master" directory (accessible from a 6th user). Files can contain spaces or others special caracters. All the files are in the same filesystem, and i want to use hard link because i don't want to waste 5 time the space of a single file.

I tried with find but i cannot handle spaces in it.

share|improve this question
    
Re "I tried with find but i cannot handle spaces in it.": You were doing it the wrong way, then. Post the command that you tried. – grawity Apr 11 '11 at 18:05

Hardlink the directory

 ln [OPTION]... TARGET... DIRECTORY     (3rd form)

Spaces should be processed using "name with space" or name\ with\ space I guess.

share|improve this answer
    
Directories cannot be hardlinked on any modern filesystem without resorting to black magic. – grawity Apr 11 '11 at 18:04
    
In my system it's not possible to hard-link one directory... Directories can only be soft-linked. – Aleritty Apr 13 '11 at 7:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .