Minor - format code.
Fixing 'recycle_documents' function when selecting 'full_backup'

see #7112
Improving queries, fixing PHP warnings, updating docs.