Solved

Truecrypt with Dropbox Automation ?

Posted on 2010-11-08
7
1,098 Views
Last Modified: 2012-05-10
Hello Gurus,

Im being using Dropbox for some while now and I must say that I am really happy about it and I feel "secure" about my data being accessible without having to back it up...

But my concern is security and privacy.. Ive been reading about it and it seems that the combination truecrypt+dropbox is great since dropbox works on a byte diff sync so he doesn't upload the whole file again and again !!!
I tried it and created a truecrypt volume with 75Mb (for testing). the first time it took over 1 hour to sync. ( we have slow connection).
then when it was done..I opened that volume and added a small file (around 500k).
when I closed the volume I noticed that within 1-2 minutes the dropbox had finished.. So I am assuming that it works. !!! your comments are more than welcome here...

Now to my real problem...
Since using truecrypt is the solution ... I need to be able to automate it...
So what I need is a script that would open that truecrypt volume... mount it and copy the appropriate files to it and then close and dismount the volume so that the syncing can occur.

any idea how I can do this ?

thanks

Pierre Ammoun\
0
Comment
Question by:ammounpierre
  • 4
  • 2
7 Comments
 
LVL 27

Expert Comment

by:Tolomir
Comment Utility
Well you need a batchjob for that.

See also http://www.truecrypt.org/docs/?s=command-line-usage

Of cause you have to modify

driverletter "x"
archive file "C:\myData.tc"
source folder: "C:\My Project"
password: password

Tolomir
0
 
LVL 27

Expert Comment

by:Tolomir
Comment Utility
you can use any other command line sync tool. For parameters use

xcopy /? on command line
0
 

Author Comment

by:ammounpierre
Comment Utility
If I am to automate this , this is what I would need

1-Mount the volume using the proper command.

2-before copying the files (I would rather use robocopy) I need to make sure that the volume was mounted... How Can I check for that ?
Maybe look for a specific file in that volume ?

If exist % FILE... then proceed else ..error

please help
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 27

Expert Comment

by:Tolomir
Comment Utility
you could use the "pause" command in the batchfile.

Robocopy is fine, using the parameter /MIR will mirror source and target.

---
Just seeing the original code is gone...

Tolomir

echo off
truecrypt /v myvolume.tc /lx /a /p MyPassword /q
if not exist x:\donotdelete.txt goto close
pause
robocopy C:\source X:\mirror /MIR
echo Transfer done
pause
truecrypt /q /dx 
:close

Open in new window

0
 
LVL 2

Expert Comment

by:furball4
Comment Utility
You might want to do some more testing to make sure that Dropbox always identifies file changes in the TC file. I had a 4GB TC file and, while I didn't try it with Dropbox, my backup provider Backblaze didn't appear to notice certain small changes.
0
 
LVL 27

Accepted Solution

by:
Tolomir earned 500 total points
Comment Utility
See: Dropbox will always notice when anything has changed inside your Truecrypt file. Dropbox uses the same mechanisms as for any other file. The same advantages of byte-level synchronization apply.

http://forums.dropbox.com/topic.php?id=5760

Tolomir
0
 
LVL 2

Expert Comment

by:furball4
Comment Utility
Makes sense.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now