Index of /examples/matlab/Tutorials/Archive/Previous/orig/misc/howto-sync-files

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[DIR]bin/ 2021-04-16 08:59 -  
[   ]dotfiles.zip 2014-10-24 05:45 4.0K 

How to configure and run file-syncing macros in MobaXterm on Windows platform

Some MATLAB programmers prefer to develop codes on their own PC but run jobs on the SCC cluster. That requires upkeeping of multiple copies of the same file on the two platforms. Keeping these copies up-to-date requires effort and potentially create file sychonization issues which can lead to unintended consequences. Demonstrated below is a procedure to facilitate a more robust way to ensure files on the PC and the SCC are in sync.

The README file (you are reading it) explains and demonstrates the procedure for creating the necessary Linux configuration file to facilitate file syncing between a folder on your PC with another on the SCC.

Note that while a MATLAB example is used for demonstration, the procedure in general is not limited to MATLAB. Note also these notations throughout this page:

MobaXterm basics

Before we go on to the main topic, let's review the following MobaXterm file structure layout and naming. When you launch MobaX by clicking on the MobaX icon, the only window tab that appears, by default, is your /home/mobaxterm folder (the tab label indicates that).

Copy zip file from the SCC to your PC

  1. Find out where your local PC matlab folder path is in MobaXterm representation. It should have the general form of /drives/c/windows/....
  2. On the SCC, decide where you want to copy your PC's matlab folder over. Make note of the path (e.g., /usr3/graduate/userID/... or /project/project-name/userID/...).
  3. Go to /home/mobaxterm
    [...] -> cd
  4. Copy dotfiles.zip from the SCC to /home/mobaxterm
    [...] -> scp -rp yourUserID@scc1.bu.edu:/project/scv/examples/matlab/misc/howto-sync-files/dotfiles.zip .
    dotfiles.zip    100% 4195     3.6KB/s   00:00
  5. Unzip the dotfiles.zip file
    [...] -> unzip dotfiles.zip
    Archive:  dotfiles.zip
      inflating: .aliases
      inflating: .bash_profile
      inflating: README.html
       creating: bin/
      inflating: bin/mysync
      inflating: bin/rsync-test
  6. Run the .bash_profile
    [...] -> source .bash_profile
  7. Make sure that the following command shows the path for mysync
    [...] -> which mysync
    /home/mobaxterm/bin/mysync
  8. Go to the ~/bin directory
    [...] -> cd bin
  9. Use either MobaTextEditor (aliased to medit) or the vi editor to change the source and destination in the template mysync with your own
    [...] -> medit mysync

Information on file syncing




Note: Research Computing Services (RCS) example programs are provided "as is" without any warranty of any kind. The user assumes the entire risk of quality, performance, and repair of any defects. You are encouraged to copy and modify any of the given examples for your own use.