Operating System - HP-UX
1753629 Members
6085 Online
108798 Solutions
New Discussion юеВ

Symbolic Links in a Directory

 
SOLVED
Go to solution
Ian Hepples
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
MarkSyder
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

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
Ian Hepples
Occasional Contributor

Re: Symbolic Links in a Directory

Thanks,

I was doing the link the other way round.