{"id":27155920,"url":"https://github.com/cloudsteak/projectsafer","last_synced_at":"2025-04-08T19:57:17.449Z","repository":{"id":42184329,"uuid":"510612283","full_name":"cloudsteak/projectSafer","owner":"cloudsteak","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-05T08:21:34.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2023-03-20T13:45:13.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudsteak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-05T06:22:40.000Z","updated_at":"2022-07-05T06:28:16.000Z","dependencies_parsed_at":"2022-09-01T17:32:40.179Z","dependency_job_id":null,"html_url":"https://github.com/cloudsteak/projectSafer","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudsteak%2FprojectSafer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudsteak%2FprojectSafer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudsteak%2FprojectSafer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudsteak%2FprojectSafer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudsteak","download_url":"https://codeload.github.com/cloudsteak/projectSafer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247918921,"owners_count":21018044,"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":[],"created_at":"2025-04-08T19:57:16.824Z","updated_at":"2025-04-08T19:57:17.429Z","avatar_url":"https://github.com/cloudsteak.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/cloudsteak"],"categories":[],"sub_categories":[],"readme":"# Project Safer\n\nBackup the specified directories\n\n## \u003ca id=\"config\"\u003e\u003c/a\u003eConfiguration\n\n```json\n{\n  \"sourceDir\": [\n    {\n      \"name\": \"MaxForLive\",\n      \"path\": \"/Users/myUser/Music/Ableton/User Library/M4L\",\n      \"type\": 0\n    },\n    {\n      \"name\": \"Music Projects\",\n      \"path\": \"/Users/myUser/Music/Ableton/Projects\",\n      \"type\": 1\n    },\n    {\n      \"name\": \"Development\",\n      \"path\": \"/Users/myUser/Development\",\n      \"type\": 1\n    }\n  ],\n  \"destinationDir\": \"/Users/myUser/Library/CloudStorage/OneDrive-Personal/BackUp/ProjectSafer/\",\n  \"configuration\": {\n    \"logDir\": \"/Users/myUser/Desktop\"\n  }\n}\n```\n\n- **sourceDir**: Here you can define multiple sources where you can configure the backup according to the follwowings\n  - **name**: Backup entry name and sub directory name under backup destination directory. (and archive name, if it is a stand alone backup)\n  - **path**: Path of the files and directories\n  - **type**: Type of backup\n    - **0**: Stand alone backup. Save only the specified directory content recursively\n    - **1**: Parent backup. Backup all directories under the directory you specified in _path_ parameter. (This backup only the first level directories. Creates archive files for each any every first level directory. The first level directories are backed up recursively)\n- **destinationDir**: Backup root directory\n- **configuration**: Other global configurations\n  - **logDir**: Path of log file (**ProjectSafer.log**). If it is an empty string the log is located beside the backup.js file.\n\n## Usage\n\n1. Clone solution with git\n\n2. Navigate to solution directory\n\n3. Install pakages\n\n```bash\n    npm install\n```\n\n4. Configure your backup elements according to [Configuration](#config) section.\n\n5. Run backup\n\n```bash\n    npm start\n```\n\n\n## Others\n\nIf you have an axisting backup file, this will rename it to bak then create a new archive.\n\n## Donation\n\nIf you feel this is a useful tool, please [Buy Me A Coffee](https://www.buymeacoffee.com/cloudsteak). \n\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudsteak%2Fprojectsafer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudsteak%2Fprojectsafer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudsteak%2Fprojectsafer/lists"}