[solved] Symlinking directories

#1
I want to sync the contents of /home/banana/srcds/orangebox/garrysmod/cache/*.dua to /home/bananatree/html/redirect/cache/. I did symlink it, but it kept reporting a 404 file not found error - did I miss something?
 
Last edited by a moderator:

NiteWave

Administrator
#6
ok. how about the parent directories' permission?
#ls -ald /home/
#ls -ald /home/banana/
#ls -ald /home/banana/srcds/
#ls -ald /home/banana/srcds/orangebox/
#ls -ald /home/banana/srcds/orangebox/garrysmod/
 
#12
maybe. the file's permission ?
#ls -ald /home/bananatree/html/redirect/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
#ls -ald /home/banana/srcds/orangebox/garrysmod/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
 
#14
maybe you can create a directory link only, not many file links
instead of:
Code:
ln -s /home/banana/srcds/orangebox/garrysmod/cache/*.dua /home/bananatree/html/sdb/redirect/cache/
just do:
#rm -rf /home/bananatree/html/sdb/redirect/cache/
#ln -s /home/banana/srcds/orangebox/garrysmod/cache/ /home/bananatree/html/sdb/redirect/cache/
 
#15
maybe you can create a directory link only, not many file links
instead of:
Code:
ln -s /home/banana/srcds/orangebox/garrysmod/cache/*.dua /home/bananatree/html/sdb/redirect/cache/
just do:
#rm -rf /home/bananatree/html/sdb/redirect/cache/
#ln -s /home/banana/srcds/orangebox/garrysmod/cache/ /home/bananatree/html/sdb/redirect/cache/
Code:
root@us:/home/banana/srcds/orangebox# ln -s /home/banana/srcds/orangebox/garrysmod/cache/* /home/bananatree/html/sdb/redirect/cache/
root@us:/home/banana/srcds/orangebox# ls /home/bananatree/html/sdb/redirect/cache/       5e8b4e1f2c4da62fa2af9e962201d93f.dua  c231c1542ebf0f1dd9ece322be324cad.dua
6afa5cc7a1de5a0df435669c6fc2a09b.dua
http://bananatree.im/sdb/redirect/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua

still a 404

EDIT:

Code:
root@us:/home/banana/srcds/orangebox# ls -ald /home/bananatree/html/sdb/redirect/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
lrwxrwxrwx 1 root root 81 Sep 11 22:58 /home/bananatree/html/sdb/redirect/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua -> /home/banana/srcds/orangebox/garrysmod/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
 
Last edited:
#17
Code:
root@us:/home/banana/srcds/orangebox# ls -ald /home/banana/srcds/orangebox/garrysmod/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
-rw-r--r-- 1 banana banana 222190 Sep 11 22:58 /home/banana/srcds/orangebox/garrysmod/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
 
Top