Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions stixcore/processing/pipeline_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,18 @@ def main():

if CONFIG.getboolean("Pipeline", "sync_tm_at_start", fallback=False):
logger.info("start sync_tm_at_start")
# let rsync do the filename matching: a shell glob over the incomming dir
# expands to too many arguments and fails with "Argument list too long"
res = subprocess.run(
f"rsync -av /data/stix/SOLSOC/from_edds/tm/incomming/*PktTmRaw*.xml {str(tmpath)}", shell=True
) # noqa
[
"rsync",
"-av",
"--include=*PktTmRaw*.xml",
"--exclude=*",
"/data/stix/SOLSOC/from_edds/tm/incomming/",
f"{str(tmpath)}/",
]
)
logger.info(f"done sync_tm_at_start: {str(res)}")

soop_path = Path(CONFIG.get("Paths", "soop_files"))
Expand Down
Loading