No BSD License  

Highlights from
File synchronization tool

5.0

5.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 15.82 KB File ID: #14557

File synchronization tool

by Jesse Norris

 

09 Apr 2007 (Updated 30 May 2007)

Update recently modified files between two computers using a USB memory stick.

| Watch this File

File Information
Description

This file is designed to synchronize data between two computers using a USB key. I wrote this bit of code to carry school related work back and forth between my home and office computers and keep complete copies of all data on both.

It only updates files that have been modified since the last update.

Be aware that a file with a more recent modified date automatically overwrites existing files. If you attempt to overwrite an existing file with an older file, however, a message is displayed to confirm the overwrite.

To execute, simply run "filesync" from the Matlab command line.

MATLAB release MATLAB 7.3 (R2006b)
Other requirements Windows operating system. Although it could be modified easily for other operating systems.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
12 Apr 2007 Jay Simon

Nice idea, but doesn't run, at least with version R14 on PC. For example, line 42:

textscan(genpath(basedir),'%s','delimiter',';');

crashes because textscan has no fileid argument.

13 Apr 2007 Jay Simon

Some but not all of the runtime errors were resolved running v7.3. I will go through the code and modify as necessary to run on my XP machine. Curious to know if this code is crashing only on my system.

23 Apr 2007 Jay Simon

Updated version runs fine.

Please login to add a comment or rating.
Updates
16 Apr 2007

1. Updated to make tracing through the file simpler.

2. Added additional warning and error messages.

3. Removed dependence on Matlab function 'textscan,' which was reported to cause an error on earlier versions of Matlab.

30 May 2007

The Matlab genpath command skips class method directories (i.e. those beginning with the @ symbol) and 'private' directories.

I've included a genpath sub-function in the filesync m-file to copy modifications that occur in these directories.

Tag Activity for this File
Tag Applied By Date/Time
path Jesse Norris 22 Oct 2008 09:08:12
directories Jesse Norris 22 Oct 2008 09:08:12
files Jesse Norris 22 Oct 2008 09:08:12
usb memory stick Jesse Norris 22 Oct 2008 09:08:12
usb key Jesse Norris 22 Oct 2008 09:08:12
file synchronization Jesse Norris 22 Oct 2008 09:08:12

Contact us at files@mathworks.com