A Clojure library designed to sync files from one location to the other.
(require '[avisi.rsync :as rsync])
(rsync/sync "s3://aws-codedeploy-us-east-1/latest" "/tmp")
protocol | example url |
---|---|
file | file:///tmp/put-it-here |
s3 | s3://my-bucket/my-object |
If you want to validate your input parameters, turn on spec support:
(require '[clojure.spec.test :as stest])
(require '[avisi.rsync :as rsync])
(stest/instrument `rsync/sync)
This is free and unencumbered software released into the public domain.
See LICENSE for more details.