Download syncMe Beta 0.1 Here (1452)

To get two synced is pretty easy once you have the networking figured out. You might want to put the scripts in your /Users/local/bin/ directory but you can put them where ever you like. Add the path to the synced directories in BOTH scripts. Now you are ready to sync. To test run the script in the terminal:

1
2
3
4
5
6
7
8
9
10
11
$ syncMe.sh
Initializing local sync folder
Initializing remote sync folder none->1.0
Setting Remote Delete Lock
Checking Remote Sync Lock
Checking for remote Deletions
Deleted files in Sync
Clearing Remote Delete Lock
Receiving
receiving file list ... done
EngineeringProjects/mySync/

sent 38 bytes received 398811 bytes 159539.60 bytes/sec
total size is 55629350557 speedup is 139474.71
building file list … done
EngineeringProjects/mySync/DDNS_PortForwarding.png
EngineeringProjects/mySync/DDNS_PortForwarding.vsd

sent 516249 bytes received 2302 bytes 345700.67 bytes/sec
total size is 55629350567 speedup is 107278.46

Thats it! Do the same steps on the remote side for a full bi-directional sync. If you want to delete files

1
2
$ syncDel.sh deleteme
Removing deleteme

When the remote initializes a sync the file deletme will be deleted. Last thing is to automate the sync with a cronjob. On the terminal type contab -e and add

1
2
RUNNINGFROMCRON=1
*/15 * * * * /usr/local/bin/syncMe.sh

This set a variable so the script knows its being run from a cronjob and will not ask for user input and will sync the folder every 15 minutes.  And there you have it, virtually unlimited sync space for free!

Projects Home


Be Sociable, Share!