{"id":19472874,"url":"https://github.com/sangahco/pmis-common-script","last_synced_at":"2025-07-11T03:33:37.715Z","repository":{"id":96450319,"uuid":"79882387","full_name":"sangahco/pmis-common-script","owner":"sangahco","description":"Common scripts used on a PMIS server","archived":false,"fork":false,"pushed_at":"2024-11-08T04:18:00.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T05:54:53.835Z","etag":null,"topics":["bash","mysqldump","rsync"],"latest_commit_sha":null,"homepage":null,"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/sangahco.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":"2017-01-24T05:40:26.000Z","updated_at":"2024-11-08T04:18:04.000Z","dependencies_parsed_at":"2024-11-08T05:19:59.006Z","dependency_job_id":"823c7c85-cace-4e36-b891-af15a01e9c73","html_url":"https://github.com/sangahco/pmis-common-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangahco%2Fpmis-common-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangahco%2Fpmis-common-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangahco%2Fpmis-common-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangahco%2Fpmis-common-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sangahco","download_url":"https://codeload.github.com/sangahco/pmis-common-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240692737,"owners_count":19842323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","mysqldump","rsync"],"created_at":"2024-11-10T19:16:05.186Z","updated_at":"2025-02-25T15:25:17.879Z","avatar_url":"https://github.com/sangahco.png","language":"Shell","readme":"# PMIS Common Script\n\nSome of this script can be added to crontab for scheduling the execution of those script, \ndaily or weekly.\n\nEvery user in the system has its own crontab scheduler, \nso before continuing always check the current user,\nand think if this user should run the script or maybe someone else, \nthan just type in console the following command:\n\n    $ crontab -e\n    \n    \nAt the top of the crontab file always put the following lines:\n\n    SHELL=/bin/bash\n    BASH_ENV=/home/\u003cUSERHERE\u003e/.bashrc\n    \nDoing this we tell to crontab that the following scripts have to be run using the `bash` shell\nand it should use the environment in `/home/\u003cUSERHERE\u003e/.bashrc`.\n\nThan add the scripts you want to schedule the run with these lines:\n\n    # daily schedule\n    00 02 * * * /home/oracle/script/dbbackup.sh\n    \n    # weekly schedule (on sunday)\n    10 02 * * 0 /home/sangah/script/hub/docker-auto.sh restart","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsangahco%2Fpmis-common-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsangahco%2Fpmis-common-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsangahco%2Fpmis-common-script/lists"}