Cyberduck Mountain Duck CLI

#932 closed enhancement (worksforme)

Smart / Magic Uploads (Limited or Partial Synchronization)

Reported by: jamescat Owned by: dkocher
Priority: normal Milestone:
Component: core Version: 2.6.2
Severity: normal Keywords: synchronization magic-upload bookmarks
Cc: Architecture:
Platform:

Description

This is probably going to be related to the solution for #158, however, this is definitely not a duplicate. It's related in so much that this feature will require supporting the "local download folder" that #158 would add as a bookmark setting, and then will build on it with additional functionality.

Basically, I would like to see a feature like Interarchy's "Auto-Upload" bookmarks. (It could be called Smart-Sync or Magic Uploads or some such, which I think would be a better name than Auto-Uploads anyway, since there's nothing especially "automatic" about them other than determining a path component.)

If you are not familiar with them, you set up a special bookmark that keeps track of a remote site (including folder path) and matches that folder to a local folder... much like synchronization does, but keeping the setting in the bookmark.

However, instead of synchronizing every file, only files dragged onto the application icon (or for Cyberduck, I would hope the bookmark icon as well) are uploaded to their relative positions on the server. - It's a kind of "limited" or "partial" sync, if you want to look at it that way. (Hmm, "PODS"? Partial, On-Demand Sync? ... Well, I dunno. But something memorable and descriptive.)

If that isn't clear, take as example the following site mapping for one of these new "Magic Upload" bookmarks:

Remote server: ftp.example.com
Remote path: /var/www/
Local path: /Users/james/Sites/Devel/example.com/

The remote folder currently has only an index file, like so:

/var/
    www/
        index.html

And say the local folder's hierarchy looks like this:

... (parent path components) ...
example.com/
    index.html
    img/
        logo.png
        homepghdr.jpg
        photos/
            trip01.jpg
            family01.jpg
            ...
    js/
        main.js
        dom.js
        ...
    help.html
    contact.html
    ...

When I drag the 2 files /Users/james/Sites/Devel/example.com/img/photos/family01.jpg and /Users/james/Sites/Devel/example.com/js/dom.js onto the Dock icon, Cyberduck (and all other FTP clients, except Interarchy in Auto-Upload mode) currently uploads them creating the following site structure:

/var/
    www/
        index.html
        family01.jpg
        dom.js

This is all well and good if that's what you want, of course. But it isn't always what you want to have happen.

What the new "PODS" or "Magic Upload" setting would do is look at the two base folders (remote and local) of the bookmark and use them as a common reference point for doing our limited sync operation ... "magically" producing the following folder structure:

/var/
    www/
        index.html
        img/
            photos/
                family01.jpg
        js/
            dom.js

Of course, any file outside of the local folder hierarchy (one that's on your Desktop, for instance) would treat the connection / bookmark as a normal connection.

So, if I then dragged the file /Users/james/Desktop/newphoto03.jpg onto the bookmark or Dock icon, the file would be placed in the current working directory on the server as usually happens, and thereby produce this structure:

/var/
    www/
        index.html
        img/
            photos/
                family01.jpg
        js/
            dom.js
        newphoto03.jpg

I hope that makes sense, and that you will work to implement this feature in an upcoming release. I think it would be of great use to any number of users. For myself, it is nearly the only reason I paid for the Interarchy 7 upgrade back when that version came out. And I would love to use Cyberduck instead, since I prefer OSS anyway - but I simply can't make myself leave this one feature behind after having used it for so long now. :-)

Even though I don't often use Cyberduck at the current time, I would be more than happy (ecstatic, really) to help test out this feature if you start working on it. - In fact, I'd be happy to help code it, if I can be of any assistance at all... but I'm really a PERL / AppleScript coder, not an Obj-C coder, so that I doubt I'll be of that much use in respect to the actual code. - Well, not unless you want someone along just to slow you down, that is! ;-)

Thank you!

Change History (3)

comment:1 Changed on Oct 18, 2006 at 1:28:51 PM by jamescat

  • Summary changed from Smart / Magic Uploads (Limited or Partial Syncronization) to Smart / Magic Uploads (Limited or Partial Synchronization)

comment:2 Changed on Mar 2, 2008 at 3:53:58 PM by dkocher

  • Milestone 2.9 deleted

comment:3 Changed on Nov 26, 2010 at 4:37:28 PM by dkocher

  • Resolution set to worksforme
  • Status changed from new to closed

I think this kind of works if yo set the Default Path of a bookmark.

Note: See TracTickets for help on using tickets.
swiss made software