Import, Export, and Backup
MDash copies imported content into its browser vault. It does not maintain a live connection to the original file, folder, repository, or URL.
Open Add (+ ▾) beside the MDash logo or in the Vault panel and choose Import File, Import Folder, or Import from URL. To choose the destination first, right-click a writable folder or open its More menu (⋯) on the folder row, then choose Import Here. Vault Organizer also provides Import Here for its current folder and folder context menus.
Table of Contents
Choose the Right Transfer
| Goal | Best Choice | What It Preserves |
|---|---|---|
| Add one document | Import File | The supported source file |
| Bring in a collection | Import Folder | Supported files and subfolders |
| Copy public text from the web | Import from URL | Supported remote source at the time of import |
| Send a styled document | Export → HTML | A rendered copy with fonts, math, and diagrams |
| Save a printable document | Export → PDF | Pages from the browser’s print dialog |
| Share a single document by link | Export → Share by URL | A read-only snapshot of the document |
| Share a built-in guide | Export → Share Guide | A short link to the current public guide |
| Keep a readable external copy | Export Folder as ZIP | Live files and folders, without Trash or settings |
| Create a complete restore point | Download Backup or Back Up to Drive | The vault, including Trash, with optional settings |
Import a File
Choose Import File from Add, or press Ctrl/⌘ + O. You can also choose Import File when no file is open. MDash accepts Markdown, plain text, and many common code formats. See Supported Files for format details.
Each imported file is limited to 5 MB. MDash checks the filename and size before changing the vault. Use a supported text or source file.
The Import File dialog prefills the name and location. Rename the file or choose another writable folder before importing. Dropping a single file opens the same dialog.
When the destination already contains the same name, MDash compares the incoming and existing files before changing the vault. Choose Keep Both, Replace when available, or Cancel. Identical files offer Use Existing. Change the name or location to import a separate copy. Import replacements preserve the existing file identity and Created date and can be undone immediately after import. Files and folders cannot replace each other.
File Dates
Newly imported files use the import time for Created and Modified in Properties. Replacing an existing file keeps its Created Date and sets Modified to the replacement time. These dates describe the vault copy; original filesystem dates are not preserved. Restoring an MDash backup keeps the dates saved in that backup.
Import a Folder
Bring an existing Markdown collection or a small code project into MDash. The import keeps the paths of supported files.
- Open Add → Import Folder, or use Import Here → Import Folder on a writable destination folder.
- Select the source folder in the system picker. MDash scans it before changing the vault.
- In Review Import, check Location, the incoming items, and the ready and skipped totals. If items were skipped, choose View Skipped Items to see why. MDash skips invalid names, including names ending with a dot, and excludes the contents of invalid folder branches.
- If the folder name already exists, choose Keep Both or Merge when available. If you see Review Conflicts, open it and review the decisions described under Resolve Import Conflicts.
- When prompted, choose the import button, such as Import 2 Files. If every file keeps the existing copy, choose Finish. Open or save the report from the completion summary.
For example, this source folder contains a brief, a script, and an image:
Project/
├── docs/
│ └── Brief.md
├── src/
│ └── app.js
└── assets/
└── diagram.png
After import, the vault contains Project/docs/Brief.md and Project/src/app.js. MDash skips the unsupported PNG and leaves out assets/. Open app.js to inspect its source.
Limits and Skipped Files
A folder import accepts up to 5,000 supported files and 50 MB of supported content, with a 5 MB limit per file. These import limits are separate from full-vault backup and restore, which have no MDash-imposed size limit.
Unsupported files, files over the individual limit, and files beyond the count or total-size limits are skipped. Their reasons appear in the review and report. If the scan exceeds 25,000 entries, the import stops before changing the vault. MDash creates parent folders only for files that it imports, so it leaves out empty branches and branches with no supported, readable files.
You can also drop files or a single folder into MDash. A dropped folder preserves its own name and subfolders without adding an extra containing folder. Several dropped folders, or a mixture of files and folders, cannot be imported together. If your browser cannot read a dropped folder, use Import Folder instead.
Resolve Import Conflicts
If a writable Project/ already exists in the destination, choose Merge to combine the folders, or Keep Both to import a numbered folder such as Project 2/. Matching nested writable folders merge automatically. For a protected folder or a file with the same name, choose Keep Both or Cancel.
Suppose your vault already contains ArCaptcha/README.md, and you are merging another copy of ArCaptcha/ with an updated README. Review the comparison before choosing.
| Decision | Result | Use It When |
|---|---|---|
| Keep Existing | Keep the vault copy and skip this incoming file | The vault README contains the version you need |
| Keep Both | Import a separate numbered file, such as README 2.md | You want to compare or combine the versions yourself |
| Replace Existing | Put the incoming content into the existing file | You have reviewed the change and want the imported version |
Identical files keep the existing copy by default. Different files need an explicit decision. Use All, Unresolved, Different, or Identical and the filename filter to focus the review. Resolve Remaining applies a decision to unresolved conflicts across the complete review, including those hidden by a filter. Unsupported decisions stay unresolved. Reset Decisions restores the defaults. The Help button explains the available decisions.
Files and folders share a naming namespace, so a folder named Guide.md/ can conflict with a file named Guide.md. They cannot replace each other. Choose a separate copy or keep the existing item. Protected items cannot be replaced; Keep Both can create a copy beside one when the containing folder is writable. Numbered names account for existing items and the complete incoming batch.
Import replacement keeps the existing file identity and Created date. It does not put the previous content in Trash. Use Undo Import immediately to recover the previous version. To recover one file from an earlier backup, restore the backup in a separate browser profile and export the file you need. Restoring a full backup replaces the destination vault. See Resolve Conflicts for the recovery options after moving, copying, or restoring over a file.
Progress, Reports, and Undo
The progress dialog shows the current relative path, completed file count, transferred size, created folders, and replacements. The summary distinguishes imported files, read failures, skipped files, and deliberate Keep Existing decisions. When every incoming item keeps the existing copy and there are no issues, the summary shows No Changes Needed.
Choose View Import Report to inspect the outcome, or Save Import Report to create a Markdown record in MDash Reports/Import Reports. The report includes the source, destination, completion time with UTC offset, and per-file outcomes. Global Search excludes the root report folder by default; enable Reports or search that folder directly to find saved reports.
Undo Import reverses only that import while preserving unrelated later changes and saved reports. It stops when imported items have changed or newer items would conflict, so it cannot overwrite subsequent work. Canceling before saving leaves the vault unchanged. If the destination changes during review, MDash asks you to review conflicts again before replacement.
Migrate an Existing Markdown Folder
Choose Import Folder to bring an existing Markdown collection into MDash while preserving supported subfolders and text files. Review Wiki-Links after migration because short wiki-links resolve by basename, while explicit paths identify a specific file.
Check these items after migration:
- Attachments and other binary files are skipped.
- Application-specific syntax may remain as plain text or unsupported Markdown.
- Duplicate basenames can make wiki-link resolution ambiguous.
- Imported source, including frontmatter, is kept as text. Review Frontmatter and Metadata before editing complex YAML through the metadata dialog.
Back up the original folder before migration and keep it until you have reviewed the imported copy.
Import from a URL
Choose Import from URL and enter a public source. The remote server must allow the browser request.
| Source | What MDash Imports |
|---|---|
| Supported raw text or code URL | One file, using the returned source |
| GitHub file URL | That file's raw content |
| Public GitHub repository URL | Supported files from the repository's default branch, under a folder with its repository name |
| Gist URL | The first Markdown file, or the first file when no Markdown file exists |
Repository imports preserve supported paths and use the same review, conflict decisions, reports, and Undo workflow as local folder imports. GitHub may limit anonymous requests or return an incomplete listing for large repositories. If MDash cannot list the repository, try importing a smaller local folder or a single raw file URL. A gist import brings in one file. Use public sources that the browser can fetch without signing in.
For example, enter https://github.com/anini/ArCaptcha. In Review Import, choose Vault under Location to bring its supported files into a root-level ArCaptcha/ folder. To import a single GitHub file from a branch name containing /, use the raw file URL if the GitHub file URL fails.
Fetched content becomes an independent vault copy. Later changes at the URL do not update the imported file.
Supported Files
MDash supports Markdown, plain text, and a wide range of source file formats. See the complete file reference for every supported extension and special filename.
| File Type | Examples | How It Opens |
|---|---|---|
| Markdown | .md, .markdown, .mdx | Editable Markdown with a rendered preview |
| Plain text | .txt, .text, README, LICENSE | Editable plain source |
| Source code and markup | .ts, .py, .html, .css, .svg | Editable source with syntax highlighting |
| Data and configuration | .csv, .json, .yaml, .env.local | Editable source with highlighting where available |
| Build files and dotfiles | Dockerfile.dev, Makefile, CMakeLists.txt, .gitignore | Editable source with highlighting where available |
File, folder, drag-and-drop, and URL imports use the same filename rules. Matching is case-insensitive. If a supported filename such as README is hidden in the system picker, choose All Files. An imported README opens as plain text. Use README.md for Markdown preview.
Local text imports accept UTF-8 and UTF-16 files with a byte order mark. The import report lists unreadable files. Save files with older encodings as UTF-8 before importing them.
MDash skips raster images such as PNGs and JPEGs, as well as PDFs, office documents, audio, video, and archives. You can insert a remote image by URL. The image stays at its original location. SVG files open as editable XML source.
Export a Document
The Export menu supports:
- Markdown for the stored Markdown source, or [File Type] File for a code or text file with its original filename and extension.
- HTML for a styled document with included styles, document and code fonts, math fonts, and rendered diagrams. Code and text files are rendered as highlighted or plain source. Linked images remain external.
- PDF through the browser print dialog.
- Share by URL for a small compressed document, including its filename and source type.
Open Export (⤓) for the active document. On a phone, it’s in the top bar. You can also use a file's Vault or tab menu without switching documents. Code and text files use a specific source label such as JSON File, HTML File, or Text File. HTML, PDF, and Share by URL are available for Markdown, code, and text files.
HTML export includes metadata from Markdown frontmatter. Its included styles, fonts, math, and diagrams work without a CDN or network connection after download. Linked images still need their original source, and relative image paths need the referenced files alongside the export. Ordinary links retain their destinations. Code exports use the same Shiki grammar and theme colors as Preview. Frontmatter and Metadata lists the fields MDash recognizes.
In Settings, under Theme, choose Exported HTML Theme. Light is the default. Dark creates a dark document, and Match MDash captures MDash's current appearance at export time, including when the application follows System. The downloaded file keeps that theme on other devices. The setting also applies to rendered diagrams and does not change the application theme or PDF presentation.
Exports automatically include the existing font subsets and styles needed by the rendered content, including closed collapsible sections. Only the selected code font is included when needed. The selected text size and code ligature preference are preserved. Unsupported characters and System Monospace still use fonts available on the recipient's device. Font copyright and license notices are included in the HTML. If a font cannot be retrieved while exporting, the download continues with fallback fonts and a brief notification.
PDF and slide PDF exports prepare the same embedded fonts before opening the browser print dialog. PDF layout, font storage, file size, and document properties depend on the browser print engine.
HTML exports preserve collapsible sections and their authored initial state. PDF exports expand all sections, including the table of contents, so hidden content is included in the static document.
In standalone exports, wiki-links to headings in the same document stay clickable. Wiki-links to other vault files appear as text. Regular Markdown links keep their authored destinations.
The Export menu remains available in Editor, Split, Stacked, and Preview views.
Text alignment is preserved in MDash's rendered HTML, PDF, and shared-document views. Markdown and ZIP exports preserve the stored source, including compact <div align="..."> wrappers. Other Markdown viewers may require blank lines after the opening tag and before the closing tag, or may strip HTML alignment entirely. See the Markdown Guide for a compatibility example. Choose HTML when you want a polished copy to share. Keep any linked images available to readers.
Share by URL
Choose Export → Share by URL, then Copy Link. If your browser supports native sharing, you can also choose Share…. If automatic copying fails, MDash selects the URL so you can copy it manually. The Export menu shows the share size and applicable limit.
The link captures the document as it was when the dialog opened. Anyone with the complete URL can read or forward the snapshot, and you cannot revoke the link. See Share by URL for privacy details.
Choose Download HTML in the sharing dialog to save a readable copy you can attach to a message. MDash warns when the full link exceeds 4,000 characters, since some messaging apps may cut long links short. Use the HTML copy if the link gets cut or the file exceeds the share limit. The shared reader can open a complete share link without access to local vault storage.
For a built-in MDash guide, choose Export → Share Guide to copy or share the short public link. The link opens the current version of the guide on the MDash website.
Valid same-document heading links work in the shared reader. Links to other vault files appear as text with a tooltip explaining why the destination is unavailable. Open in MDash opens an identical local copy or adds the shared document to the recipient's vault, with its source links intact.
Export a Folder or Vault
Choose Export Folder as ZIP on a regular folder, or open Settings, then Backup, and choose Export Vault as ZIP. The ZIP mirrors the live folder structure and includes Markdown, text, and code files. Items in Trash and interface settings are not included.
Back Up and Restore Your Vault
A full JSON backup is the most complete MDash restore point. Download it as a file or save it to your Google Drive when that optional integration is configured. Both destinations use the same format. A ZIP is a readable copy of live files and folders that you can open in other tools.
Backups are readable JSON, including files in Trash. MDash does not encrypt them. Keep downloaded copies in a trusted location. A backup preserves a snapshot; later edits and deletions do not change it.
Create a Full Backup
- Open Settings → Backup.
- Enable Include Settings in New Backups if you want appearance, editor, panel, workspace, search-option, and reminder preferences in the backup.
- Under Local File, choose Download Backup and save the JSON file outside the browser.
The backup includes your files and folders, their stored dates, and Trash. Bundled guides come with the app and are recreated when you restore. Backups do not truncate large vaults. The local backup date records when MDash created a download. Check that the file saved where you intended.
Favorites, Recent files, open tabs, expanded folders, offline assets, and the browser's storage-protection approval are not part of the backup. Google authorization, account selection, backup activity dates, and Drive identifiers are not restored from a JSON backup. Linked remote images are not downloaded into it.
Back Up to Google Drive
- In Settings → Backup, choose Connect Google Drive and authorize your account. Check the selected account before continuing. Connecting does not upload or restore a vault.
- Choose whether to Include Settings in New Backups, then choose Back Up to Drive.
- Keep MDash open until the upload completes. The Drive backup date changes only after a successful upload.
If MDash cannot tell whether an upload completed, reconnect if needed and choose Check Backup. This checks the previous file without uploading another snapshot. A verified manual backup updates its recorded date; a recovery copy does not reset the reminder. If the file is absent, choose Back Up to Drive to create a new backup. Keep the tab open until the check resolves. If you closed it or cleared browser data, review the backups in Drive before uploading again.
MDash creates a visible MDash Backups folder in your account on your first upload. Each backup is a separate dated JSON file; older snapshots are not overwritten or automatically deleted. Open Backup Folder opens the folder in Drive, where you can download or delete copies. Backups consume your Google storage.
If you share your MDash Backups folder, people with access can also read the backups inside it, including document content and Trash.
Google access is limited to files created or explicitly authorized for MDash. The authorization library loads when you use a Drive action. After a reload or when authorization expires, choose Reconnect Google Drive to use the same account again. The integration performs manual backup and restore only, without automatically synchronizing your working vault.
Choose Disconnect to stop using the current Google connection. If MDash cannot revoke access, you can remove it in your Google Account. Existing backups stay in Drive. Resetting local MDash data also leaves those cloud files intact. A new browser can reconnect to the same account and discover backups created through this integration without knowing the old browser's folder ID.
If Drive backup is unavailable in your installation, use a downloaded JSON backup. The site operator must configure the optional Google integration.
Backup Reminders
Backup Reminder defaults to Never. Choose Weekly or Monthly to start a reminder interval. Creating a downloaded backup or successfully uploading the current browser's vault restarts the interval. Open Settings takes you directly to the Backup tab. Snooze Backup Reminder postpones the reminder for one interval.
Restore a Full Backup
Restoring replaces the destination vault, including Trash. Keep a recovery copy if it contains work you want to keep.
- Make sure your current work is saved and close other MDash workspace tabs. In Settings → Backup, choose Restore from File and select an MDash JSON backup, or connect Google and choose Restore from Drive.
- For Drive, select a snapshot and choose Review Backup. Check the source and size details. Latest marks the newest upload. Choose the snapshot that contains the work you want to restore.
- MDash validates the backup before showing Restore Backup?. Check the filename, date, and file and folder counts. If the backup contains interface preferences, enable Restore Settings to apply them.
- Create Recovery Backup starts checked. With this option on, choose Download Recovery Backup for a local file and check that the download saved. For Drive, MDash uploads the recovery copy to the same account when you confirm the restore.
- Choose Restore Backup and keep MDash open until it finishes.
Restoration preserves your file identities and dates. MDash applies saved interface settings when you select Restore Settings. The restored vault includes the README and guides from the version of MDash you’re running. Once the workspace is available offline, you can restore from a local file and open the bundled guides.
If the recovery backup fails, restoration stops. Retry or explicitly turn off Create Recovery Backup before trying again. MDash can request a recovery download but cannot verify that you saved it. Changes to the current vault during recovery preparation stop replacement so newer work is not silently discarded.
The Drive list contains backups created through MDash's integration. To restore a JSON file uploaded to Drive manually, download it in Drive and choose Restore from File. MDash does not browse arbitrary Drive folders or import Google Docs through this backup feature.
The storage replacement runs as one transaction. An invalid backup or a failed replacement transaction leaves the existing stored vault intact. If a later refresh fails after replacement has succeeded, the backup has already been restored; follow the message to reload the workspace.
Large Backups and Browser Storage
MDash imposes no backup or restore file-size limit and no fixed vault-size limit. Your browser and device still need enough memory to read and validate the JSON and enough storage for the restored vault. Large backups can take longer or fail when those resources are unavailable. Keep the original backup file and close other heavy applications if you need to retry.
Browser storage can be cleared or lost through site-data removal, profile deletion, or device loss. Protect Local Storage can reduce automatic eviction, but it does not replace an independent backup. See Privacy and Local Storage for the storage model and protection controls.
Recover Files from Trash
If the item is still in Trash, choose Restore to bring it back. See Recover Items from Trash for restoring several files or folders. To recover a permanently deleted file from a backup, restore the backup in a separate browser profile and export the file you need.
Troubleshooting
- If a picker closes without importing, confirm that the file type and size are supported.
- If URL import fails, try the raw file URL and check whether the server permits cross-origin browser access.
- If PDF output differs from Preview, enable background graphics and confirm the selected page size.
- If a restored link resolves incorrectly, look for duplicate Markdown basenames.
- If Google authorization expires or is revoked, reconnect from Backup settings and retry the manual action.
- If a Drive upload fails, the previous backup date stays unchanged. Check your connection and available Google storage before retrying.
- If restore reports another workspace tab or a changed vault, preserve your work, close the other workspace tabs, and review the backup again. If MDash reports a save conflict, see Resolve Changes from Another Tab before reloading.
Related Guides
Annex: Complete File Reference
This list covers files you can import or create in the vault. If you want to highlight an example within Markdown, see the separate language tag reference.
Show All Supported Extensions and Filenames
| File Type | Extensions or Names |
|---|---|
| Markdown | .markdown, .md, .mdx |
| Plain text | .cfg, .conf, .config, .org, .text, .txt |
| Configuration dotfiles | .babelrc, .browserslistrc, .dockerignore, .editorconfig, .eslintrc, .gitattributes, .gitignore, .gitmodules, .htaccess, .npmignore, .npmrc, .nvmrc, .prettierignore, .prettierrc, .stylelintrc, .tool-versions |
| Environment files | .env, .env.dev, .env.dev.local, .env.development, .env.development.local, .env.example, .env.local, .env.prod, .env.prod.local, .env.production, .env.production.local, .env.sample, .env.staging, .env.staging.local, .env.stg, .env.stg.local, .env.template, .env.test, .env.test.local |
| Build filenames | cmakelists.txt, dockerfile, dockerfile.dev, gemfile, makefile, rakefile |
| Extensionless documentation | CHANGELOG, CHANGES, COPYING, LICENCE, LICENSE, NOTICE, README |
| Source Format | Extensions |
|---|---|
| AsciiDoc | .adoc |
| Astro | .astro |
| Batch | .bat, .cmd |
| C | .c, .h |
| C# | .cs |
| C++ | .c++, .cc, .cpp, .cxx, .h++, .hh, .hpp, .hxx |
| Clojure | .clj |
| CMake | .cmake |
| CSS | .css |
| CSV | .csv |
| Dart | .dart |
| Diff | .diff, .patch |
| Dockerfile | .dockerfile |
| Elixir | .ex, .exs |
| Environment Variables | .env |
| Erlang | .erl |
| Fish | .fish |
| Go | .go |
| GraphQL | .gql, .graphql |
| Haskell | .hs |
| HCL | .hcl |
| HTML | .htm, .html |
| INI | .ini |
| Java | .java |
| JavaScript | .cjs, .js, .mjs |
| JSON | .json |
| JSON Lines | .jsonl, .ndjson |
| JSON5 | .json5 |
| JSONC | .jsonc |
| JSX | .jsx |
| Julia | .jl |
| Kotlin | .kt, .kts |
| LaTeX | .tex |
| Less | .less |
| Log | .log |
| Lua | .lua |
| Makefile | .mk |
| Nginx | .nginx |
| Nim | .nim |
| Perl | .pl |
| PHP | .php |
| PowerShell | .ps1, .psd1, .psm1 |
| Properties | .properties |
| Protocol Buffers | .proto |
| Python | .py, .pyi, .pyw |
| R | .r |
| reStructuredText | .rst |
| Ruby | .rb |
| Rust | .rs |
| Sass | .sass |
| Scala | .scala |
| SCSS | .scss |
| Shell | .bash, .sh, .zsh |
| SQL | .sql |
| Svelte | .svelte |
| SVG | .svg |
| Swift | .swift |
| Terraform | .tf, .tfvars |
| TOML | .toml |
| TSV | .tsv |
| TSX | .tsx |
| TypeScript | .cts, .mts, .ts |
| Vue | .vue |
| Web App Manifest | .webmanifest |
| XML | .atom, .rss, .xml, .xsd, .xsl, .xslt |
| YAML | .yaml, .yml |
| Zig | .zig |