cancel
Showing results for 
Search instead for 
Did you mean: 

Symbolic Links in a Directory

 
SOLVED
Go to solution
Highlighted
Occasional Contributor

Symbolic Links in a Directory

Firstly apologies, I know this is a simple one and the man should help but I still can't seem to get it to work.

We have one none standard unix server and it doesn't have a directory called backup which is what all our scripts point to.

Basically, everytime the script writes to /backup, I actually want the data to go to /home/backup as there is lots of space available there.

10 points to anyone who gives me the syntax.

TIA
Ian
3 REPLIES 3
Highlighted
Honored Contributor
Solution

Re: Symbolic Links in a Directory

cd /
ln -s /home/backup /backup

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Highlighted

Re: Symbolic Links in a Directory

Ian,

Assuming you want backup to be off root (i.e. /backup) and the directory /home/backup already exists

ln -s /home/backup /backup

Thats it!

Duncan

I am an HPE Employee
Accept or Kudo
Highlighted
Occasional Contributor

Re: Symbolic Links in a Directory

Thanks,

I was doing the link the other way round.