Small DropBox Tip

Ph
Philipp
Posts: 184
Joined: Fri Jan 20, 2012 8:42 pm
Platform: Mac + Windows
Location: Germany
Contact:

Fri Jan 27, 2012 10:12 am Post

Pausing dropbox from synching.

Normally it is not so wise to have the original Scrivener-Project in the dropbox folder, as there are constant updates to the files and pushing around which actually means changing the directory structure. So dropbox is always synching around which could be dangerous.

Same goes when working with eclipse and Java btw when I'm working for android and my workspace is set to a dropbox-folder.

So, what I do in these cases of non-stop changes to files and structures I simply set the synchronisation status to pause, before launching up scrivener or eclipse.

Then I do all my stuff and when I'm done and closed Scrivener or eclipse I unpause the synching again and have a clean synch.

You can reach this option by doing a rmb on the dropbox-icon and the appendix-Icon changes to reflect the status.

With this option set it is now safe to have the backups and the projects thmeselves inside of dropbox.

This is a new feature which didn't exist in dropbox 1.2.3xx but now in the new 1.2.51 it's there.


That's all folks...

User avatar
AmberV
Posts: 23702
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Fri Jan 27, 2012 9:12 pm Post

Yes, pausing is a good thing! I keep forgetting to add this point to the manual as an optional step instead of tuning auto-save frequency, and you reminded me so it'll be in the next revision. :)
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

Ph
Philipp
Posts: 184
Joined: Fri Jan 20, 2012 8:42 pm
Platform: Mac + Windows
Location: Germany
Contact:

Fri Jan 27, 2012 9:38 pm Post

You're welcome! And don't forget to mention to unpause again like I forgot to do and had to reboot the computer to sync :roll:

User avatar
AmberV
Posts: 23702
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Fri Jan 27, 2012 11:00 pm Post

The other advantage of pausing is that it compresses your Scrivener session into a single version on Dropbox. All of the internal files will be updated at the same point and with one version. If you leave it unpaused while editing, edited files rapidly go through versions as each auto-save event happens and it makes reverting a project much more difficult. Now we just need to get DB to implement folder level version control!
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

Ph
Philipp
Posts: 184
Joined: Fri Jan 20, 2012 8:42 pm
Platform: Mac + Windows
Location: Germany
Contact:

Fri Jan 27, 2012 11:13 pm Post

Now we just need to get DB to implement folder level version control!

+1 8)

Qu
QuantumGood
Posts: 18
Joined: Mon Jun 18, 2012 11:38 pm
Platform: Windows
Contact:

Tue Jun 19, 2012 10:54 pm Post

Thanks for the tip, Philipp!

Me
Mex5150
Posts: 8
Joined: Sun Jun 30, 2013 12:37 am
Platform: Linux

Sun Jun 30, 2013 3:34 pm Post

Hi,

Perhaps I'm missing something, but as far as I'm aware DropBox only synchronises only when there is something to synchronise. Therefore if you have a file/files open locally, and nowhere else, DropBox is effectively on pause anyway, the only difference is you don't need to un-pause it when you finish.

~Mex

Ph
Philipp
Posts: 184
Joined: Fri Jan 20, 2012 8:42 pm
Platform: Mac + Windows
Location: Germany
Contact:

Sun Jun 30, 2013 6:06 pm Post

Hi Mex,

Scrivener saves every 2 seconds of non-typing to prevent any loss. As every page and folder are actually single files, it could happen, that many files are changed in a short period of time. So it may happen, that while Dropbox syncs one file, it is already outdated, thus forcing dropbox to resync again.
This MAY cause file problems when this happens too often in too short a time.

So, it is a simple precaution to stop automatic syncing whilst actively working with a scrivener project.

Me
Mex5150
Posts: 8
Joined: Sun Jun 30, 2013 12:37 am
Platform: Linux

Mon Jul 01, 2013 6:04 pm Post

Aha!

I was under the impression the tip was to stop the local copy from being synchronised with a remote copy while you were using it. I have only ever used DropBox to recover a file once (in years of heavy use), so it didn't even cross my mind that was what the tip was for. Thanks ;^>

~Mex

ka
karenfritz
Posts: 1
Joined: Wed Jul 31, 2013 10:39 pm
Platform: Windows

Wed Jul 31, 2013 10:44 pm Post

I travel quite a bit and don't have infinite data on my cell phone account, so I have been exiting dropbox when on the road and only allowing it to sync when I have wifi. I'll try the pause feature instead!

User avatar
robertdguthrie
Posts: 3075
Joined: Mon Nov 09, 2009 10:06 pm
Platform: Mac
Location: St. Louis, MO, USA
Contact:

Thu Aug 01, 2013 1:11 am Post

If you're forgetful like me (and will not even notice that dropbox is paused), the other way to make Scrivener + Dropbox safer is to increase that 2 second save interval to about 10 seconds. That's enough time for most internet connections to upload some text files before the save interval is triggered again.
Often wrong, rarely in doubt.
Time for a change... I'm now rdale; same dog-avatar, same dog... channel?

Go
Gordon Robb
Posts: 51
Joined: Tue Nov 27, 2012 2:04 pm
Platform: Windows

Thu Aug 01, 2013 8:56 am Post

Great tip. I'll try to remember it :)

Or more likely remember to pause, but not to un-pause :)

Me
Mex5150
Posts: 8
Joined: Sun Jun 30, 2013 12:37 am
Platform: Linux

Thu Aug 01, 2013 12:34 pm Post

Hi All

Just had a thought (I'm a Linux guy, so not sure about the mac/windoze), but it should be possible to to write a script to pause DropBox syncronisation, start Scrivener, then resume syncronisation after you quit Scrivener. So insteaed of starting Scrivener normally, run the script instead and it will do it all for you.

If I get time later (and remember) I'll have a play about and see what I can knock up.

-Mex

Ni
Niran
Posts: 73
Joined: Wed Jun 20, 2007 1:28 pm

Thu Aug 01, 2013 2:02 pm Post

Dropbox for Mac Os X does not have a CLI, although Dropbox for Linux does.

User avatar
AmberV
Posts: 23702
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Thu Aug 01, 2013 10:20 pm Post

What is being described could be done on a Mac as well (although GNU/Linux and Mac OS X use a different approach to UNIX, they are very similar in capabilities). On a Mac, to execute a Cocoa application you use the `open` command with the W flag to force it to wait until the resource has been closed. So a line in the script with `open -W /Applications/Scrivener.app` would suffice, and lock the script's execution until Scrivener reports a successful shutdown, allowing any further actions in the script to then be taken. The question is whether Dropbox can be controlled externally from a script---it might be easier to just quit it from the script, and then relaunch it afterward. Another possibility could be using the AppleScript scripting bridge to tell Dropbox to pause, if it has access for doing so.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles