Skip to content

RedSkiesIO/cryports-inotify-rsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cryports-inotify-rsync

This script runs as a service on the gitlab server it uses inotify to see when new files are added to the $ARTIFACTS_DIR (these are outputs from build pipelines) then runs a rsync command to send the arifacts to the cryports webserver.

Install Instructions

  1. clone repo to the home of the gitlab-runner (simply because the users keys are synced to the cryport webserver)

    $ git clone git@gitlab.engr.atlas:cryptos/cryports-inotify-rsync.git

  2. make the cryport-rsync.sh file executable

    $ cp cryport-rsync.s /usr/local/bin/cryport-rsync $ chmod u+x /usr/local/bin/cryport-rsync

  3. install inotify deps with

    $ apt-get install inotify-tools -y

  4. copy the cryport-sync.service to /etc/systemd/system/

    $ cp cryport-sync.service /lib/systemd/system/

  5. reload systemd and start the service

    $ systemctl daemonm-reload $ systemctl start cryport-sync.service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages