Backup icon indicating copy to clipboard operation
Backup copied to clipboard

Enhancement: Disable Backup of symbolic Links on Linux

Open Bootscreen opened this issue 12 years ago • 5 comments

hy,

is it possible to disable the backup and following of symbolic links on linux? because of this i have the following error:

2012-04-25 14:52:00 [INFO] java.io.FileNotFoundException: ./plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web/bukkit/plugins/dynmap/web (Too many levels of symbolic links)

the situation on my server: i use dynmap with an external webserver. in the plugin folder of dynmap i have a symlink to the webserver folder and on the webserver folder i have a sym link to the root folder of bukkit. the problem is when your bukkit came to the dynmap plugin folder it follows the symlink to the webserver, and in this folder he follows the symlink back to the bukkit folder.

the best thing is to disable the following of symlink because i don't want to backup my webserver (i set dynmap to highres and the backup of 6gb of images uses to much time and the backup is to big)

greetings bootscreen

Bootscreen avatar Apr 25 '12 13:04 Bootscreen

add dynmap to the plugins exclude list?

tgxn avatar May 07 '12 06:05 tgxn

oh, no i over read this -.-

but when i exclude it the dynmap configs wouldn't be backuped and i want it. can you make an option for backing up symlinks or not?

Bootscreen avatar May 07 '12 10:05 Bootscreen

Maybe, I'll add this as a enhancement.

tgxn avatar May 07 '12 23:05 tgxn

exclude dynmap/web/tiles. or dynmap/web this will exclude any levels under that, please let me know if this is working in the case.

tgxn avatar Jul 02 '12 00:07 tgxn

I've had a look into this, and it seems that detecting symlinks can be very hit-and-miss. http://stackoverflow.com/questions/813710/java-1-6-determine-symbolic-links

Because of this, I'd have to advise you to try and just exclude the directory. If you continue to have issues, then I might add a option to exclude directories below a certain depth, but for now let me know how you go.

Please close this if you are happy with this outcome.

tgxn avatar Jul 24 '12 08:07 tgxn