Versions Compared

Key

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

...

Make sure you have the latest files on your computer.

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.

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

 

...

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).

...

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.

...

Running a profile

If you get a conflict, you can right-click and force the copy (use the direction arrows, select the one from left to right).

Direct link to Google Drive

This link takes you to Google Drive (matlab folder) in a browser (CSPM folder here), 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).