{"id":30219142,"url":"https://github.com/mastert/memories-importer-script","last_synced_at":"2026-04-16T02:32:16.580Z","repository":{"id":74728804,"uuid":"406774669","full_name":"masterT/memories-importer-script","owner":"masterT","description":"Simple bash script to import media using Elodie.","archived":false,"fork":false,"pushed_at":"2024-06-11T13:31:55.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-01T13:05:55.059Z","etag":null,"topics":["bash","elodie","script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masterT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-15T13:24:32.000Z","updated_at":"2024-06-11T13:31:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e7743ee-c060-479e-9869-c2df6dfde413","html_url":"https://github.com/masterT/memories-importer-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masterT/memories-importer-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masterT%2Fmemories-importer-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masterT%2Fmemories-importer-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masterT%2Fmemories-importer-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masterT%2Fmemories-importer-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masterT","download_url":"https://codeload.github.com/masterT/memories-importer-script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masterT%2Fmemories-importer-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31868495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","elodie","script"],"created_at":"2025-08-14T07:47:59.852Z","updated_at":"2026-04-16T02:32:16.573Z","avatar_url":"https://github.com/masterT.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Memories Importer Script\n\nSimple `bash` script to import media using [Elodie](https://github.com/jmathai/elodie).\n\nUsage:\n\n```\nimport.sh SOURCE DESTINATION\n```\n\nEnvironment variables:\n\n|Name|Description|Default|\n|----|-----------|-------|\n|`ELODIE`|The path to the `elodie` script.|`elodie`|\n|`ELODIE_APPLICATION_DIRECTORY`|The path to the `elodie` application that hold the `config.ini` configuration file and the database.|`~/.elodie/config.ini`|\n\n## Example\n\n```\n$ ls -A1 /mnt/data/memories/import\nhackerman.png\n```\n\n```\n$ import.sh /mnt/data/memories/import /mnt/data/memories/library\nImport 2021-09-15T12-40-34\nmkdir: created directory '/mnt/data/memories/import/imports'\nmkdir: created directory '/mnt/data/memories/import/imports/2021-09-15T12-40-34'\nrenamed '/mnt/data/memories/import/hackerman.png' -\u003e '/mnt/data/memories/import/imports/2021-09-15T12-40-34/hackerman.png'\n/mnt/data/memories/import/./imports/2021-09-15T12-40-34/hackerman.png -\u003e /mnt/data/memories/library/2020-12-Dec/Unknown Location/2020-12-28_22-35-31-hackerman.png\n****** SUMMARY ******\nMetric      Count\n--------  -------\nSuccess         1\nError           0\n```\n\n```\n$ ls -A1R /mnt/data/memories/import\n/mnt/data/memories/import:\nimports\n\n/mnt/data/memories/import/imports:\n2021-09-15T12-40-34\n\n/mnt/data/memories/import/imports/2021-09-15T12-40-34:\nimport.log\n```\n\n### CRON\n\nUsing [CRON job](https://en.wikipedia.org/wiki/Cron) to run every minute with [file locking](https://en.wikipedia.org/wiki/File_locking) to prevent overlapping:\n\n```\n* * * * * ELODIE=... ELODIE_APPLICATION_DIRECTORY=... /usr/bin/flock -n /var/lock/import.lockfile /.../import.sh /mnt/data/memories/import /mnt/data/memories/library \u003e /var/log/.../import.log 2\u003e\u00261\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastert%2Fmemories-importer-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmastert%2Fmemories-importer-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastert%2Fmemories-importer-script/lists"}