Skip to content

Instantly share code, notes, and snippets.

@ADoebeling
Last active July 5, 2016 04:37
Show Gist options
  • Save ADoebeling/ad13a97a71ef3cb98fe0d932f4db74e1 to your computer and use it in GitHub Desktop.
Save ADoebeling/ad13a97a71ef3cb98fe0d932f4db74e1 to your computer and use it in GitHub Desktop.
How to export *.atch-Files from FudForum 2.6.0 / eGroupware 1.0 with with original filename/extension?
# 1.) Generate Bash-Script in MySQL
SELECT concat("mv ", id, ".atch \"", original_name, "\"") FROM phpgw_fud_attach
# 2.) Export as plain-text
# 3.) Insert result into rename.sh and add chmod +x
# 4.) Run rename.sh :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment