vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Restoring attachments (https://vborg.vbsupport.ru/showthread.php?t=323375)

RichieBoy67 09-01-2016 06:51 PM

Restoring attachments
 
Hello,

Here is the scenario.

A client has deleted his entire file system. I have a back up of the file system but the back was made before attachments were moved from the database to the file system.

Counters were never updated and the database was never repaired so in theory those attachments should still be on that database as overhead? Right?

Is there any way to switch back from serving the attachments from the file system to the database at this point?

Yes, ouch.. deleting an entire file system is not good.

Thanks!

Dave 09-01-2016 07:43 PM

Shouldn't the "Move attachments from database to filesystem" operation work just fine in this scenario?

RichieBoy67 09-01-2016 07:50 PM

I am trying to go the other way. The site is set to serve from the file system but those files have been deleted. They are still in the database though.

I know, it is very confusing. lol

--------------- Added [DATE]1472767284[/DATE] at [TIME]1472767284[/TIME] ---------------

Actually I think that worked. I just ran the process and it looks like the attachments were still there. Glad I did not update those tables!

--------------- Added [DATE]1472768969[/DATE] at [TIME]1472768969[/TIME] ---------------

So I just ran into something unbelievable. My client had godaddy transfer his site to a new server and they did not move the database. I did not even know until I went into phpadmin and found that there were no databases there..

Unbelievable. I do not think Godaddy looks at the config at all...They just move the files.

--------------- Added [DATE]1472777755[/DATE] at [TIME]1472777755[/TIME] ---------------

Looks like those attachments are gone after all..

muffel 09-02-2016 08:57 AM

I have also a question, with is similar with this...
We have a forum, where all attachments are in the database.

I want to download all attachments in our forum to a special folder on the server... where I also can then see, from which user this attachment is. Is there a workaround for this?

Thank you!

Lynne 09-02-2016 07:14 PM

muffel, you should post a new thread about your question since what you want is totally different from the OP's post.

RichieBoy67 09-03-2016 05:07 AM

I answered my own question anyways. I basically wanted to know if it was possible to restore data from mysql overhead and it does not look possible.

--------------- Added [DATE]1472886533[/DATE] at [TIME]1472886533[/TIME] ---------------

Quote:

Originally Posted by muffel (Post 2575445)
I have also a question, with is similar with this...
We have a forum, where all attachments are in the database.

I want to download all attachments in our forum to a special folder on the server... where I also can then see, from which user this attachment is. Is there a workaround for this?

Thank you!

If you serve your attachments from the file system they should already be in a folder.

If your files are in the database then move them to a new directory in your file system.


All times are GMT. The time now is 02:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01299 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete