Junctions: A weird experience to me.
Ha.... After lot of fight I am out of problem. Guys this really good experience to me. Such things you may know but for me its new.
Part of my regular work is, deliver code to Production (Live) server. Before delivering I will take backup of files from server and replace them with my files. Its very common thing I do it almost every day. While taking backup I will copy all files in Live server to a temp folder, zip it and push it to my company ftp.
As usual yesterday also I want to take backup, but by mistake I have copied some image folder which I don't do normally. After copying that folder, I deleted it from temp folder because I don't want it. Live server has very much less space I want to remove from recycle bin also. So I emptied recycle bin. Came out and did normal regular work.
Suddenly I got mail from client saying images are missing (These images are very much important to them the size of this folder is 800MB: You can think how many JPEG's are there). I surprised, one more thing the same images are used by 3 different projects (each project internally have one folder for images), the images in all projects are disappeared.
After doing some research we found that if we delete one file from one of these 3 folders it will be deleted from all folders(It stays until removed from recycle bin). If we copy some file to this folder it will appear in all three folders. The people who know unix it is not new. But it is new to windows users.
Do you want to know how it happens???
It is because of hard links. Hard links are called as Junctions in windows. It is an undocumented feature of windows. By reading all above message you may not know how it is a feature. The good thing with this is If you don't have space in C drive and lot of drive volume is used by your program files , you can simply move all of them to D drive, and make a hard link in C drive. Problem solved, You get lot of space in C drive an all programs works as usual.
Want to know more on it
http://shell-shocked.org/article.php?id=284
We home some tools to do it easily, read above link to know about them.
Part of my regular work is, deliver code to Production (Live) server. Before delivering I will take backup of files from server and replace them with my files. Its very common thing I do it almost every day. While taking backup I will copy all files in Live server to a temp folder, zip it and push it to my company ftp.
As usual yesterday also I want to take backup, but by mistake I have copied some image folder which I don't do normally. After copying that folder, I deleted it from temp folder because I don't want it. Live server has very much less space I want to remove from recycle bin also. So I emptied recycle bin. Came out and did normal regular work.
Suddenly I got mail from client saying images are missing (These images are very much important to them the size of this folder is 800MB: You can think how many JPEG's are there). I surprised, one more thing the same images are used by 3 different projects (each project internally have one folder for images), the images in all projects are disappeared.
After doing some research we found that if we delete one file from one of these 3 folders it will be deleted from all folders(It stays until removed from recycle bin). If we copy some file to this folder it will appear in all three folders. The people who know unix it is not new. But it is new to windows users.
Do you want to know how it happens???
It is because of hard links. Hard links are called as Junctions in windows. It is an undocumented feature of windows. By reading all above message you may not know how it is a feature. The good thing with this is If you don't have space in C drive and lot of drive volume is used by your program files , you can simply move all of them to D drive, and make a hard link in C drive. Problem solved, You get lot of space in C drive an all programs works as usual.
Want to know more on it
http://shell-shocked.org/article.php?id=284
We home some tools to do it easily, read above link to know about them.

