Results 1 to 6 of 6
I need to create this link between the two directories shown below.... So I assume everything that is put into the outgoing directory is copied to
# pwd
/home/e-smith/files/users/admin/home
ls ...
- 02-07-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 1
Urgent help.. on a very simple problem, linking 2 directories.
I need to create this link between the two directories shown below.... So I assume everything that is put into the outgoing directory is copied to
# pwd
/home/e-smith/files/users/admin/home
ls -l
lrwxrwxrwx 1 root root 29 Jun 25 2008 outgoing -> /var/spool/asterisk/outgoing/
Can anyonbe tell me how I create this link ?
Many thanks.
J
- 02-07-2011 #2
Link
I think that you're trying to create a symbolic link.
To do that:
ln -s /home/e-smith/files/users/admin/home/outgoing /var/spool/asterisk/outgoing
Good luck!
- 02-07-2011 #3
If your intention is to have files in BOTH directories (ie: copies) , then a link is the wrong way.
A solution to such a problem might be gfs, or drbd, or a incrond that triggers rsync, or a cronjob.
But actually, this might be overkill.
What do you want to achieve?
Do you want to just look at the files? Then maybe that user can be added to an appropiate group.You must always face the curtain with a bow.
- 02-08-2011 #4Just Joined!
- Join Date
- Oct 2008
- Posts
- 6
If you want to create a symbolic link than you can follow the solution given by "rafatmb"
Other than this you can create a hard link also
# ln /home/e-smith/files/users/admin/home/outgoing /var/spool/asterisk/outgoing
Using this you are unable to see the link, but you can confirm that these two files are link files by checking their inode numbers.
- 02-08-2011 #5
Link
Just to clarify: symbolic links you can use when the folders are one different disks/partitions. The hardlink you must have the both folders on some partition.
- 02-08-2011 #6
Plus, you cant hardlink directories
You must always face the curtain with a bow.


Reply With Quote