lundi 5 janvier 2015

Double symlink (for partition and server)


I hope this is not a duplicate, I searched but couldn't find an answer.


I'm using Linux Mint. I have a Data partition that mounts automatically on boot. I've created symlinks from this partition on my /home/user folder.


The problem is I have a 'www' folder on my Data partition (it's a backup of websites I need to restore), and I need to make a symlink of it on /home/user. I also need to symlink-it to /var/www/html so I can make changes to files/folders up in my server. Is it possible? what would be the best way to do it?


Previously I kept the 'www' folder directly on /home/user so I only needed one symlink. But now that I have a separate Data partition I don't know how to go about it. I could have only one symlink for the server, but I would have to manually copy/backup whatever new info was added, and I'd rather do that automatically, if there's a way.


Thank you in advance.



Aucun commentaire:

Enregistrer un commentaire