Showing posts with label backup. Show all posts
Showing posts with label backup. Show all posts

Monday, January 4, 2010

Return to password manager and backups


It is possible to access Keychain from Java, but it might not work very well. Problem could be that only part of Keychain is accessible. Apple mentions it here.

If I could use the Bouncy Castle APIs to create a password store, then this program could read the archives on my mobile phone: TinyEncryptor

I tried MiniCommander which is already on the phone but it doesn't handle encrypted ZIP files.

I remember that I also found ways to export Keychains by automator or maybe it was applescript. But I can't remember where I put that info now... nor how to automate sending files to the phone via Bluetooth, automated by a script (check rest of this blog though).

Or, how about KeePass, open source, multi-platform - but is it as good as Keychain? Well, I guess I don't really use Keychain all that much, and it looks better than truecrypt because it structures data. I can also get it on my mobile. (There is another J2ME version but it's not looking as good.)

And some clever person has figured out how to get Auto-Type to basically work using some URL-handling trickery. Very clever.

Wednesday, August 27, 2008

Backup using SMB Windows sharing

I'm trying to back up all my photos from the Mac to Windows.

I enable a share in Windows and try to connect to it from OS X by using the Connect to Server option in Finder. Connecting to smb://limpet/Music brings something up, asking for the workgroup (DHG), username and password, but when I look at the folder contents there is nothing. I can't copy anything into it, and also I know there are files there on the Windows PC that I should be seeing. I tried this also for another share and the same result.

I tried browsing at the bottom of the Connect to Server dialog. It finds me the group Dhg and the computer Limpet (with a capital now). The next box over says Connect... To see the avialable shares for server "Limpet", click Connect. I do, and after a while it asks me to select from the shares available on Limpet. There are Authenticate Again, OK and Cancel options. I choose OK, but it just returns me to the dialog. Oh, there is a folder on the desktop.

All the folders I have opened correctly tell me how much free space I have on the Windows drive, but they are empty and I can't put anything into them.

Actually, the easiest way to connect is from the Network in Finder.

I tried fiddling with the Windows Firewall. File and Printer Sharing is only enabled for computers on the local network (this is XP, Windows Firewall -> Exceptions -> Edit -> Change Scope), so I enable it for all computers. No effect. I turn off Windows Firewall altogether and it doesn't work still.

If you drag a connected share to the trash, it doesn't eject. But if you hit the eject symbol in Finder, it does. That's pretty shoddy.

It turns out that I was using the wrong username!! Now it works fine (and really quick). And dragging to the eject/trash icon works too.

So now I can connect to my work laptop and backup everything onto it - relief!

I had a problem where copying files from Mac to Windows stopped, saying I did not have the correct permissions to perform the operation. Turned out that some of the files I was copying OVER were read only, so it couldn't complete.

Tuesday, August 19, 2008

More about Automator

Looking for more info on Automator and Folder Actions, I found this page which explains it.

http://www.simplehelp.net/2007/01/30/folder-actions-for-os-x-explained-with-real-world-examples/

I also found this folder sync action which uses rsync in the background to synchronise two folders. Maybe useful in the future.

http://www.apple.com/downloads/macosx/automator/syncfoldersaction.html

I made an AppleScript that starts an Automator action and attached it to Proximity's In Range action - Proximity can't run an Automator action directly.

display dialog "In range"
tell application Automator

end tell

This apple page is a tutorial on how to create workflows using applescript.

http://developer.apple.com/documentation/AppleApplications/Conceptual/AutomatorTutorialAppleScript/WhatYouWillCreate/chapter_2_section_1.html#//apple_ref/doc/uid/TP40002010-CH202-BAJDHAEH

Proxi looks like it is the ideal tool for looking for hotkeys and triggers, such as tracks changing in iTunes and so on. It appears to be free as in beer.

http://proxi.griffintechnology.com/wiki/index.php/Main_Page

I found this page that helped provide advice about executing Automator actions from Applescript:

Basically you save the workflow as a plugin, and choose a Script menu plugin. Then it gets saved in /Users/xxxx/Library/Scripts/Bluetooth backup.app. I put that in, in quotes for a tell application line, and it asked me to browse to the application. Now it just appears like below (and runs okay):

tell application "Bluetooth backup"
open
end tell

Now I can have my phone automatically take a backup of my passwords when it comes in range. Unfortunately it does it all the time, I will have to set it up to only do it, say, once a week.

This article seems to say how to unmount TrueCrypt volumes using applescript - there isn't any proper applescript interface to it:

http://discussions.apple.com/thread.jspa?messageID=7750841

However, the right click menu of the TrueCrypt icon (sitting on my Dock) has options to mount all the favourite volumes, so it's quite easy to open the password wallet.

Monday, August 18, 2008

Backup file to phone via Bluetooth Object Push Automater action

It's possible to make an Automator action that takes a file and sends it to a mobile using Bluetooth.

http://www.macosxhints.com/article.php?story=20071010200518755

points to this file which can be loaded into Automator (open Automator and on the file mene, choose Import Action...)

http://geekmuse.googlepages.com/BlueActionMove.action.zip

Unfortunately the phone (Sony Ericsson W880i asks for confirmation.

However, it is possible to just run this automator action and back up files wirelessly. I'm using this with a TrueCrypt volume which holds passwords, so it can be easily backed up.

Somewhere I remember having a program that would detect a bluetooth device coming in range and would run a script.