After running 'sudo apt-get update && sudo apt-get upgrade' on my raspberry pi 3 running raspbian jessy, I get:
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/g/ghostscript/libgs9-common_9.06~dfsg-2+deb8u5_all.deb rename failed, Structure needs cleaning (/var/cache/apt/archives/partial/libgs9-common_9.06~dfsg-2+deb8u5_all.deb -> /var/cache/apt/archives/libgs9-common_9.06~dfsg-2+deb8u5_all.deb). E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
A quick search on the net and here revealed that this probably is related to a corrupted filesystem on the SD card. As this is my fileserver and I would prefer not reconfiguring it: Could I just make a backup with dd and then restore on a new SD card or would this also copy the filesystem corruption?