Skip to content

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

@heimdull

Description

@heimdull

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.to_f
system "mv tmp/uploads tmp/uploads_#{timestamp}"
download("#{current_path}/tmp/uploads", "tmp/uploads", :via => :scp, :recursive => true)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions