Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Make sure you have the latest files on your computer.

Table of Contents
minLevel1
maxLevel7

FreeFileSync

Use FreeFileSync to copy files from Google Drive (in the cloud) to your local MATLAB folder (usually “C:\matlab”). It's best to have two profiles:

  • CSPM - only files in CSPM (saves time when only CSPM files have been updated)

  • matlab - all files in SPM12 and other MATLAB programs (used when more than CSPM is updated)

Setup (new as of August 2022)

Summary: Install FreeFileSync, add shared folder in your Google Drive, create the two profiles in FreeFileSync.

Install FreeFileSync

This is free software; it will ask for a donation to avoid the banner each time the software is run.

It’s simplest to create a Taskbar shortcut (download, install, search for “freefilesync” from Start menu, right-click Add to Taskbar”)

Add shared folder to your Google Drive

Ask Paul to share the UCLA Google Drive matlab folder with your Google account. Add that folder with the following steps:

  1. In a browser, go to your Google Drive

  2. Shared with me

  3. Right-click over the shared folder “matlab2share”

  4. Add shortcut to Drive

  5. Select “My Drive” or a subfolder

  6. ADD SHORTCUT

This shared folder will now show up under “My Drive” (or a subfolder if you selected that).

...

Linking cloud account
  • From the SynbackPro menu (top-left), go to Linked Cloud Accounts

  • Enable Google Drive

  • Link to your Google Account

You can try running the profiles. If it does not return any files on Google Drive, go to the next step (checking and refreshing connection).

Image RemovedImage Removed

Will look like this when done:

Image Removed
Checking and refreshing connection to Google Drive
  • Steps 1-4 (see snapshot): Select the profile, Modify, click on folder icon, connect to Google Drive (“Yes”)

    • This may ask you to select a Google Drive account; use the same as above

You should see multiple folders, when in matlab or CSPM profiles (snapshots on right)

If there are no folders (example on right), first make sure the profile is using your Google account - steps 1-4 below. Second, after connecting, you may need to delete the cloud db (see further down).

...

IF you are not seeing the folders (see right example)

Reminder:

...

No Folders - navigate to parent

...

Now go back (double-click) to “matlab2share”

...

You should see folders - this means it’s connected

...

If it’s the CSPM profile, navigate to the CSPM folder:

matlab2share => spm12 => toolbox => CSPM

  • Delete database (required if the profile was run with 0 results)

  • Image Removed
Image Removed

Examples of folders that should be visible:

Image RemovedImage Removed

Example of problem with connection - no folders visible

Image Removed

Running

If only CSPM files are changed, can just run CSPM profile (faster).

...

Troubleshooting

Sometimes SyncBackPro gets messed up; delete cloud db to force re-read from cloud.  

...

Updating

...

Create profiles

Create an “Update” profile from the cloud (left) to the local folder (right)

See video; in short: click on cloud icon, Add connection to your Google Account, select matlab2share (or mat;ab2share\spm12\toolbox\CSPM for CSPM profile), on right click “Browse” to select local folder; save profile.

...

Direct link to Google Drive

This link takes you to Google Drive in a browser, where all the files are available for download; as of Aug 2022, you need to have permission for your Google Account to access this folder. The browser interface works best if you sign in to your account; you should be able to download a compressed folder with everything (or one file at a time). Uncompress then copy to C:\matlab.

The CSPM files need the matlab => spm12 folder, which contains SPM12, toolboxes (like SUIT), and CSPM (in matlab => spm12 => toolbox => CSPM).

...

(obsolete) Old way

(obsolete) Usual

Normally, if you have Google Drive running:

  • Open  SyncBackPro

  • Run the profile to copy from Google Drive

    • for only spm12 and CSPM updates: select the profile "spm12 - Google ..." or 

    • for all matlab updates: select the profile "matlab - Google drive...". 

  • You should get a confirmation dialog for files that will be replaced. If nothing shows up, no files will be updated.

(obsolete) Troubleshooting

If you want to check you have the latest files, start from the end by working through these steps:

  1. Look for the most recent file in your local matlab folder (usually c:\matlab\spm12\toolbox\CSPM)

    • Sort by "Date modified" and look at date of the latest "MATLAB code" or "MATLAB Figure" (the "MATALAB Data" or "Microsoft Access Table" files are your local settings, and get changes each time you use CSPM).

    • If this file is not up-to-date, SyncBack has not copied the latest file from the Google Drive matlab folder on your computer.

  2. Look for the most recent file in your Google Drive matlab folder (Google Drive\matlab\spm12\toolbox\CSPM)

    • If this is not up-to-date, the Google Drive sync program has not downloaded the latest files from the cloud

  3. Check that Google Drive is running on your computer (little icon on the bottom right)

    • To start, search for Google Drive in the Start menu

  4. Check that you are "Signed in" to Google Drive (icon not grayed out)

  5. Check that Google Drive is not still synchronizing; if you just started this process, it will take an hour or more to synchronize all of the matlab folder.

    • Click on icon, and look for Sync Complete message at bottom right of popup. 

  6. Check that Paul has copied the file to the cloud

  7. SOS

...