Connect from your PC
Use MDrive in a browser or sync a project with a folder on your computer.
Use a web browser
- Sign in to MDrive. If registration is open, choose Create account to start.
- Select a project and open My files. If you have permission to create projects, use New project to make one.
- Choose New, then Upload file, to send a file from your PC. To save a copy to your PC, open the file and choose Download.
Sync a local folder
You’ll need the MDrive command-line client and write access to the project. Sync sends changes in both directions, including deletions.
- The sync client is installed from the private MDrive source repository. If you need access, email MTreeAI support with your GitHub username to request access to the sync client. While you wait, you can use MDrive in your browser. Once you have access, download or clone the source and open a terminal in that folder. Install the client with Python 3.11 or newer:
python -m pip install . - Sign in to the app, open Account settings, then under Devices (mdrive sync) enter a device name and your password and choose Create device token.
- Use the app’s HTTPS address, without a trailing slash, as
APP_URL. While signed in, open that address with/api/v2/projectsappended and copy theidnext to your project’s name. Use it asPROJECT_IDbelow. - Run these commands in your terminal. Paste the device token when
loginprompts for it. ReplacePATH_TO_FOLDERwith the local folder you want to sync.mdrive sync login --server APP_URL mdrive sync init --server APP_URL --project PROJECT_ID "PATH_TO_FOLDER" mdrive sync run "PATH_TO_FOLDER"initruns the first sync. Keeprunopen for ongoing sync, or runmdrive sync once "PATH_TO_FOLDER"for a single pass.
Import from Google Drive or OneDrive
Use this option when the provider is enabled and you have write access to the destination project.
- Sign in, select the destination project and folder in My files, then open Connections.
- Under Google Drive or OneDrive, choose Connect read-only, then approve access with the provider.
- Choose Browse beside the connected account. Select Import snapshot for a file or Import folder for a folder.