Two Areas on a Server: File Space and the Database—Don’t Confuse Them

Views:
Create Time: 2026/11/30
Web hosting space is for storing files and programs, while the database stores articles, settings, and user data—these are two separate things, and they require different backup methods. If you don’t distinguish between these two, you’re most likely to run into problems when migrating to a new server.

When purchasing server space, the configuration list usually includes two sets of numbers: 5 GB of disk space and 100 MB of database space. Beginners often mistake these for the same thing, but they are actually completely different, and the symptoms of problems with each are also different.

I. What Is Stored in the File Space?

Program files, templates, images, style sheets, scripts, and user-uploaded attachments are all stored in the file space. You can view them via FTP or the file manager in the hosting control panel; they’re organized directory by directory, and opening them reveals the source code.

The key feature of this section is that it’s “visible.” Once the domain is bound, the application is uploaded, and the database is connected, you can open the site by entering the domain name in your browser.

There’s one common source of waste worth mentioning: don’t store videos or large audio files on your main website’s hosting space.

  • A few minutes of high-definition video can easily take up several hundred megabytes, quickly using up your data allowance.
  • It uses up bandwidth during playback, causing other pages on the same server to slow down as well.
  • These types of files are better suited for object storage or video platforms, and should be embedded on the page.

II. What Is Stored in the Database?

Article content, section structure, website settings, user accounts, and order history—all of this “content” is stored in a database. MySQL is the most common database used for corporate websites, while smaller sites may also use SQLite.

Think of it as a set of interlocking tables: an article is a row in one table, and a section is a row in another table, with the two linked by their IDs. When you publish an article in the admin panel, you’re making changes to the database—nothing in the file system is altered.

Therefore, the program and the database must work together. If you only back up the files and not the database, the restored site will be an empty shell—the section structure will still be there, but all the articles will be gone, and the pages will look just as they did when the program was first installed. Conversely, if you only back up the database, the templates and images will be lost, and the pages will become a jumble of unstyled text.

III. When it comes to backups, both sides need to do them

A cloud server does not mean automatic backups. Most cloud hosting providers offerSnapshotSnapshots can help recover from incidents like “the entire machine crashing,” but they are point-in-time copies of the entire system. If you accidentally delete an article and then roll back, all other changes made during that time period will also be reverted.

Therefore, you should set up a separate export process for the database: choose one method—such as the built-in backup feature in the admin panel, exporting via phpMyAdmin, or scheduled backups through the hosting control panel—and stick with it. Then, download the exported file to your local machine.

The same applies to file storage. Use FTP to download a copy of the entire site to your local computer so you can compare it if something goes wrong. You don’t need to do this often—once after modifying a template or adding a new section is enough.

IV. There is another scenario: You cannot access FTP

Some website-building platforms do not provide FTP accounts or database exports; instead, both content and templates are locked within the platform’s backend. These services are easy to get started with and have low monthly fees, but the cost of migration is high—switching providers is essentially like starting from scratch.

The way to tell is simple: Before signing, ask, “Can I export the database? Can I get FTP access?” If the answer to both is “no,” you’ll need to think carefully about how many years you plan to use this site.

For custom-developed websites, the source code and database are typically delivered together; it’s safer to include this provision in the contract.

It’s not hard to distinguish between these two; just remember this: file storage holds “what things look like,” while the database holds “what content is written.” Whether you’re moving, switching servers, or making backups, just follow this rule.

When we hand over a site, we provide the source code, database export, and FTP access permissions all at once—so the person taking over doesn't have to ask for them again.

For web design in Wuxi, turn to Zongye Technology.


Helping You Build an Outstanding "Internet Plus" Enterprise
Zongye Official Account