adam-stokes / ogc

🦔 OGC
https://adam-stokes.github.io/ogc/
6 stars 3 forks source link

too much stuff rsync'ed #15

Open pjbertels opened 2 years ago

pjbertels commented 2 years ago

This was my rsync command ... instead of excluding be explicit about what needs to be included.

INFO     <Command "/usr/bin/rsync -avz -e 'ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i                                      sh.py:646
                    /Users/pbertels/.ssh/ogc2_id_rsa_4096' . ubuntu@104.155.167.167:/home/ubuntu/ogc --exclude=.git --exclude=.venv --exclude=artifacts", pid          
                    690>: process started

This is what it is doing ...

           INFO     <Command "/usr/bin/rsync -avz -e 'ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i                                      sh.py:646
                    /Users/pbertels/.ssh/ogc2_id_rsa_4096' . ubuntu@34.170.225.45:/home/ubuntu/ogc --exclude=.git --exclude=.venv --exclude=artifacts", pid            
                    99648>: process started                                                                                                                            
[16:15:59] ERROR    Unable to rsync: (out) b'building file list ... done\ncreated directory                                                             deployer.py:172
                    /home/ubuntu/ogc\n./\n.env\n.gitignore\n.pre-commit-config.yaml\n.pylintrc\nDEBUGGING.md\nEarthfile\nREADME.md\ncmds.txt\ncmds_clou                
                    d\ncmds_dash\ncmds_perf_toml\ndocker-compose.yml\nmkdocs.yml\nmonitoring.txt\nogc.log\nogc.log.2022-06-13\npoetry.lock\npoll_funct\                
                    npyproject.toml\ntest.py\n.ci/\n.ci/Jenkinsfile\n.ci/jobs/\n.ci/jobs/defaults.yml\n.ci/jobs/folders.yml\n.ci/jobs/observability-per                
                    f-mbp.yml\n.ci/scripts/\n.ci/scripts/check\n.ci/scripts/common\n.ci/scripts/setup\n.ci/scripts/test-basic\n.ci/scripts/test-perf\n.                
                    ci/scripts/test-unit\n.github/\n.github/CODEOWNERS\n.ogc-cache/\n.ogc-cache/ogc-5dad91e2-elastic-agent-ubuntu\n.ogc-cache/ogc-ffc1b                
                    9be-elastic-agent-ubuntu\n.pytest_cache/\n.pytest_cache/.gitignore\n.pytest_cache/CACHEDIR.TAG\n.pytest_cache/README.md\n.pytest_ca                
                    che/v/\n.pytest_cache/v/cache/\n.pytest_cache/v/cache/lastfailed\n.pytest_cache/v/cache/nodeids\n.pytest_cache/v/cache/stepwise\ncl                
                    usters/\nclusters/ogc01/\nclusters/ogc01/SwarmL_0_100.ndjson\nclusters/ogc01/ek-65a6c450-6058-11ed-aea0-25ec7cc34ced.p\nclusters/og                
                    c01/ek-6e344680-6060-11ed-aea0-25ec7cc34ced.p\nclusters/ogc01/ek-8fcb9c10-6071-11ed-aea0-25ec7cc34ced.p\nclusters/ogc01/ek-d1b22f40                
                    -6071-11ed-aea0-25ec7cc34ced.p\nclusters/ogc01/ogc01.p\nclusters/ogc01/fixtures/\nclusters/ogc01/fixtures/base_dashboard.ndjson\ncl                
                    usters/ogc01/fixtures/first_policy.json\nclusters/ogc01/fixtures/harness-16g.toml\nclusters/ogc01/fixtures/harness.toml\nclusters/o                
                    gc01/fixtures/perf.toml\nclusters/ogc01/fixtures/perf.toml.bak\nclusters/ogc01/fixtures/template_perf.yml.tmpl\nclusters/ogc01/fixt                
                    ures/template_perf16.yml.tmpl\nclusters/ogc01/fixtures/template_perf32.yml.tmpl\nclusters/ogc01/fixtures/template_perf8.yml.tmpl\nc                
                    lusters/ogc01/fixtures/ogc/\nclusters/ogc01/fixtures/ogc/elastic-agent/\nclusters/ogc01/fixtures/ogc/elastic-agent/functions.mako\n                
                    clusters/ogc01/fixtures/ogc/elastic-agent/ubuntu/\nclusters/ogc01/fixtures/ogc/elastic-agent/ubuntu/01-elastic-agent\nclusters/ogc0                
                    1/fixtures/ogc/elastic-agent/ubuntu/teardown\nclusters/ogc01/fixtures/package_policies/\nclusters/ogc01/fixtures/package_policies/i                
                    nputs-elastic_agent.json\nclusters/ogc01/fixtures/package_policies/inputs-endpoint.json\nclusters/ogc01/fixtures/package_policies/i                
                    nputs-fleet_server.json\nclusters/ogc01/fixtures/package_policies/inputs-nginx.json\nclusters/ogc01/fixtures/package_policies/input                
                    s-osquery_manager.json\nclusters/ogc01/fixtures/package_policies/inputs-osquery_manager.json_141\nclusters/ogc01/fixtures/package_p                
                    olicies/inputs-system.json\nclusters/ogc01/fixtures/package_policies/inputs-system1.json\nclusters/ogc01/fixtures/package_policies/                
...
pjbertels commented 2 years ago

We can just close this with a good config example.