browsermedia / bcms_content_syncing

A BrowserCMS module that provides rake/capistrano tools to synchronize content between local and production databases.
GNU Lesser General Public License v3.0
4 stars 0 forks source link

Is there a plan to add a sync:uploads task? #2

Open heimdull opened 13 years ago

heimdull commented 13 years ago

I started thinking that it would be a good thing to add a sync:uploads is this is the plans for this module? A simple downloads uploads, uploads would do but I guess there should be a rename locally so to put the new uploads into the correct place?

maybe something like this:

desc "Sync remote uploads directory" task :uploads do timestamp = Time.now.tof system "mv tmp/uploads tmp/uploads#{timestamp}" download("#{current_path}/tmp/uploads", "tmp/uploads", :via => :scp, :recursive => true) end

peakpg commented 13 years ago

Not planned, but it sounds like a great idea as a feature.