tgxn / Backup

A Backup plugin for the Bukkit Server API.
http://bukkitbackup.com
GNU General Public License v3.0
23 stars 14 forks source link

Enhancement: Disable Backup of symbolic Links on Linux #97

Open Bootscreen opened 12 years ago

Bootscreen commented 12 years ago

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

tgxn commented 12 years ago

add dynmap to the plugins exclude list?

Bootscreen commented 12 years ago

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?

tgxn commented 12 years ago

Maybe, I'll add this as a enhancement.

tgxn commented 12 years ago

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 commented 12 years ago

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.