Natara User Forums: Feature Request: Command Line File Sync - Natara User Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Feature Request: Command Line File Sync

#1 User is offline   carrel 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 48
  • Joined: 22-January 06
  • Location:Belvedere

Posted 15 July 2009 - 06:15 PM

I have been having lots of fun with my new Pre. Today I got a samba server running on it. What that means is that when I get home, my Pre's disk (NVRAM) is visible on the network as a share that is visible to the windows machines as a network place. So I'd like to have a script that runs on the machine with the Bonsai desktop that automatically sync's the files. Then the files would sync nightly without me having to hook up that annoying USB cable. To do this I need to be able to run the Bonsai program with a command line option that tells it not to start the GUI, but just do the file sync and exit. And it would be nice if it would do the right thing if Bonsai was already running and open on the desktop.

Thoughts?? Is there a better way this could run if the file to sync to was on a network file system?? I guess another option would be a timed sync. Could bonsai be configured to sync every thirty minutes (or whatever period is specified)? It would need to gracefully handle the file NOT being present since the file server (the Pre) isn't always there.

Will both the desktop and the PalmOS client notice if their data file changes and they are running?

Dave
0

#2 User is offline   Richard Murphy 

  • Natara Staff
  • PipPipPipPipPipPipPip
  • Group: Developers
  • Posts: 1291
  • Joined: 26-January 05
  • Gender:Male
  • Location:Naperville
  • Devices::T-Mobile Dash, Dell Axim X51v, iPaq rx3715
  • OS:Win7 x64, WM6, WM 2003SE

Posted 16 July 2009 - 09:41 AM

View Postcarrel, on Jul 15 2009, 07:15 PM, said:

So I'd like to have a script that runs on the machine with the Bonsai desktop that automatically sync's the files...

I plan to add a command line option to Bonsai for syncing. For now, you could use the tool found in this forum thread. It can be executed with command line parameters. It does not notify Bonsai Desktop to save outlines before syncing or to reload after syncing. The planned command line option for Bonsai will handling outline saving and reloading.

View Postcarrel, on Jul 15 2009, 07:15 PM, said:

Could bonsai be configured to sync every thirty minutes (or whatever period is specified)?

I do not think a timed sync would be a good idea. It will force a outline save when run which might be annoying if you are editing the outline (syncing takes time for really large outlines). The option to sync at outline open and save seem to be a better way to go. Also, with the command line option, you can force a timed sync externally if you really want this.

View Postcarrel, on Jul 15 2009, 07:15 PM, said:

Will both the desktop and the PalmOS client notice if their data file changes and they are running?

With Bonsai 5, the desktop will check the outline file for changes when Bonsai application is brought to the foreground and when you initially modify the outline. The Palm OS app does not have any checks that I am aware of.
Richard Murphy
Natara Software, Inc
http://www.natara.com
0

#3 User is offline   tonyb 

  • Senior Member
  • PipPipPipPipPip
  • Group: Members
  • Posts: 219
  • Joined: 30-June 03
  • Gender:Male
  • Location:London, UK
  • Devices::Non-U3 USB
  • OS:WinXP

Posted 16 July 2009 - 02:16 PM

View PostRichard Murphy, on Jul 16 2009, 04:41 PM, said:

I do not think a timed sync would be a good idea. It will force a outline save when run which might be annoying if you are editing the outline (syncing takes time for really large outlines). The option to sync at outline open and save seem to be a better way to go. Also, with the command line option, you can force a timed sync externally if you really want this.


I think timed sync would actually be a useful feature, although I wouldn't put it high on my priority list. The saving/syncing time annoyance could always be resolved by turning off timed sync for the given outline.

Having said that, command line sync gets around this problem as you can always schedule the command line sync to run every 30 minutes or whatever schedule you like...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users