I got a weird hardlink at centos 6.5 vps server. It's man made, I assume, but I'm not the one who did it.
df tells some info.
[root@root]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/simfs 209715200 128660820 81054380 62% / none 4194304 4 4194300 1% /dev none 4194304 0 4194304 0% /dev/shm /dev/simfs 209715200 128660820 81054380 62% /var/www/username/data/www/test.site.biz/photo ls -li tells nothing useful
[root@vz65646 test.site.biz]# ls -li total 7952 79435160 drwxr-xr-x 2 someuser someuser 8130560 Oct 25 20:52 photo Hardlinked folder is photo. By mistake I rm -rf test.site.biz which led to bad stuff happen. Namely, photo directory in other place went clean.
I assume restoring data is not possible. Yet, I'd like to figure out what happened out here so I won't repeat the same mistake twice.
Any hints are much appreciated.
findmnt, if you see square brackets it is almost certainly a bind mount. But it's possible to do bind mounts which are not of a subdirectory, and they wouldn't have the square brackets.