<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1451577399394_2480">Hi All,</div><div id="yui_3_16_0_1_1451577399394_2444">I'm trying to create a monthly snapshot release process with each new repo/snapshot having all the packages in Oracle Linux Latest repo until the beginning of the each month.</div><div id="yui_3_16_0_1_1451577399394_2444"><br></div><div id="yui_3_16_0_1_1451577399394_2444">I tried to use the following json:</div><div id="yui_3_16_0_1_1451577399394_2444" class="">{ "source_repo_id" : "rc_test1",</div><div id="yui_3_16_0_1_1451577399394_2444" class="">  "criteria": {</div><div id="yui_3_16_0_1_1451577399394_2444" class="">    "type_ids" : ["rpm"],</div><div id="yui_3_16_0_1_1451577399394_2444" class="">    "filters" : {</div><div id="yui_3_16_0_1_1451577399394_2444" class="">      "unit" : { "build_time": {"$lte": "2015-08-01"}}</div><div id="yui_3_16_0_1_1451577399394_2444" class="">    }</div><div id="yui_3_16_0_1_1451577399394_2444" class="">  }</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">}</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">And the following command:</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class=""> curl -k -i -H "Accept: application/json" -X POST --data-binary "@/home/adm_RaduCoroi/ansible/pulp/copy_between_repos_based_on_build_time.json"  https://admin:admin@lab-a-pulp001.test-lab.local//pulp/api/v2/repositories/rc_test1/actions/associate/</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">HTTP/1.1 202 ACCEPTED</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">Date: Thu, 31 Dec 2015 15:31:46 GMT</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">Server: Apache/2.2.15 (Oracle)</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">Content-Length: 172</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">Connection: close</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">Content-Type: application/json; charset=utf-8</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class=""><br id="yui_3_16_0_1_1451577399394_2529" class=""></div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/8846ffdf-9d77-4fb5-93fa-ee417ab1bd05/", "task_id": "8846ffdf-9d77-4fb5-93fa-ee417ab1bd05"}], "result": null, "error": null}</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">Unfortunately nothing was copied between the test repos as build_time might not be part of the metadata.</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">I know that if I can create a schedule to get all rpms from the source to the destination but to go back in time without manual parsing of the RPM headers I will like to be able to filter based on build_time or similar info.</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">Thank you very much,</div><div id="yui_3_16_0_1_1451577399394_2444" dir="ltr" class="">Radu</div></div></body></html>