{"id":20153688,"url":"https://github.com/anupsarkar-dev/.net-ssh-sftp-file-sync","last_synced_at":"2025-07-28T19:41:35.756Z","repository":{"id":135783870,"uuid":"487330790","full_name":"anupsarkar-dev/.NET-SSH-SFTP-File-Sync","owner":"anupsarkar-dev","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-02T19:28:47.000Z","size":8516,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T12:24:27.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/anupsarkar-dev.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":"2022-04-30T16:47:48.000Z","updated_at":"2022-05-02T19:38:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"472d44d5-e874-47f2-9d74-d1bb8dbbb394","html_url":"https://github.com/anupsarkar-dev/.NET-SSH-SFTP-File-Sync","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/anupsarkar-dev%2F.NET-SSH-SFTP-File-Sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anupsarkar-dev%2F.NET-SSH-SFTP-File-Sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anupsarkar-dev%2F.NET-SSH-SFTP-File-Sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anupsarkar-dev%2F.NET-SSH-SFTP-File-Sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anupsarkar-dev","download_url":"https://codeload.github.com/anupsarkar-dev/.NET-SSH-SFTP-File-Sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241592985,"owners_count":19987468,"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":"2024-11-13T23:20:33.136Z","updated_at":"2025-03-03T01:23:44.202Z","avatar_url":"https://github.com/anupsarkar-dev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote SSH/SFTP \n#####  Features\n\n- Every 1 minute service connects to sftp and checks if there are new or modified files.\n- Service downloads and syncs all the new files to local path.\n- If remote file modified,  same local file also gets updated.\n- All file and directory info is stored in Datatabse (postgresql).\n- EF core code first migration used.\n- Project developed using Service oriented architecture (Repository pattern, Unit of work). \n- Solution  is divided with foud sub projects, such as Web, Core, Domain \u0026 Infrasruction.\n- For background job , Hangfire is used\n- For Logging, Serilog is used.\n- SSH server is configurable from AppSettings.json\n\n### Database Migration\nFor database context and migration , refer to project MediaFon.FileManager.Infrastructure.\n\n` cd  MediaFon.FileManager.Infrastructure`\n\n#### Apply Migration \n` dotnet ef database update`\n\n### App Settings\nChange SFTP Server configuration from appsetting.json\n```\n{\n  \"SSH_Settings\": {\n    \"SFTP_SERVER\": \"192.168.0.109\",\n    \"SFTP_USER\": \"root\",\n    \"SFTP_PASS\": \"Password\",\n    \"SFTP_PORT\": 22,\n    \"UserDefinedRemoteWorkingDirectory\": \"/C:/SFTP\", // Starting forward slash before 'C:/' is required\n    \"BackgroundJobInterval\": 1,\n    \"LocalFileStoreLocation\": \"LocalFileStorage\" // Folder should be within the Web Application directory\n  }\n}\n```\n\n### Start Application\nMediaFon.FileManager.Web is the start up project to run the application.\n\n### Api Enpoints URL \n#### https://localhost:7193/swagger/index.html\n\n### Background Jobs Realtime Dashboard\n#### https://localhost:7193/hangfire\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanupsarkar-dev%2F.net-ssh-sftp-file-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanupsarkar-dev%2F.net-ssh-sftp-file-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanupsarkar-dev%2F.net-ssh-sftp-file-sync/lists"}