Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

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.