You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A script given an "ontology acronym" and a range of submission ids ( from "submission id" to "submission id" ), removes all the data (triple store) and files of the submissions inside that range.
Use case
From "stageportal" server, inside the "/srv/ontoportal/ncbo_cron" folder. The following command :
show you the list of all submissions that will be affected(removed).
ask you to confirm (by typing "y'" for yes or "n" for no) if you want to remove (the data and files) of all the submission between 2 (included) and 5 (included).
Important: after the script a cache refresh is needed to see the result.
Details
The arguments "from" and "to" are reversible, i.e. --from 2 --to 5 is equal to --from 5 --to 2
The script delete the submission folder(files) then the data
Only the archived "submissions" (not used in production) can be removed
The text was updated successfully, but these errors were encountered:
The bug was that I used the wrong ruby function to remove files, I used rm_r , that remove only files. Instead of remove_dir that remove dirs and there contents
The need
A script given an "ontology acronym" and a range of submission ids ( from "submission id" to "submission id" ), removes all the data (triple store) and files of the submissions inside that range.
Use case
From "stageportal" server, inside the "/srv/ontoportal/ncbo_cron" folder. The following command :
Will :
Details
--from 2 --to 5
is equal to--from 5 --to 2
The text was updated successfully, but these errors were encountered: