This project aims to help companies automate your transfer process using Aspera Connect Server and Aspera Ascp Client. This is a simple way to transfer large files or sync remote folders, over the LAN/WAN, with ascp client. Jenkins is very useful to schedule, manage and monitor long running transfers.
$ cd ~/
$ git clone https://github.com/wmarinho/aspera-sync.git
$ cd aspera-sync
$ sudo sh bin/install-ascp.sh
$ sh bin/install-jenkins.sh
$ sh bin/init-jenkins.sh --httpPort=8080 &
ASPERA_SERVER=demo.asperasoft.com
ASPERA_USER=asperaweb
ASPERA_PASS=demoaspera
#ASPERA_PRIVATE_KEY=$HOME/.ssh/id_rsa
ASCP_MAX_RATE="-l 300M"
ASCP_OPTIONS="-d -k 3 -p --precalculate-job-size --file-checksum=md5"
$ sh bin/transfer.sh {source_path} {target_path} {max_rate}
$ sh bin/transfer.sh
Starting transfer with [email protected] ...
Syncing [email protected]:/ -->> /home/user/
Running: ascp -d -k 3 -p --precalculate-job-size --file-checksum=md5 --file-manifest-path=/home/user/aspera-sync/logs --file-manifest=text -l 300M [email protected]:/ /home/user/
Syncing has completed successfully!!
There is a default job configured (aspera-sync). It can be used to create custom jobs using this template. For details about how to work with jenkins, access http://jenkins-ci.org/.