{"id":16772601,"url":"https://github.com/jonlabelle/pwsh-daily-backup","last_synced_at":"2025-03-16T16:33:35.636Z","repository":{"id":191476208,"uuid":"474504555","full_name":"jonlabelle/pwsh-daily-backup","owner":"jonlabelle","description":"Perform simple, daily backups of folders.","archived":false,"fork":false,"pushed_at":"2024-06-01T14:29:55.000Z","size":134,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T03:29:25.307Z","etag":null,"topics":["backup","powershell"],"latest_commit_sha":null,"homepage":"https://www.powershellgallery.com/packages/DailyBackup","language":"PowerShell","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/jonlabelle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-03-27T01:13:29.000Z","updated_at":"2024-09-11T03:05:43.000Z","dependencies_parsed_at":"2024-06-01T16:17:15.566Z","dependency_job_id":"19d998b2-ebec-4405-9c96-db271093d981","html_url":"https://github.com/jonlabelle/pwsh-daily-backup","commit_stats":null,"previous_names":["jonlabelle/pwsh-daily-backup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fpwsh-daily-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fpwsh-daily-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fpwsh-daily-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fpwsh-daily-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonlabelle","download_url":"https://codeload.github.com/jonlabelle/pwsh-daily-backup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243896556,"owners_count":20365395,"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":["backup","powershell"],"created_at":"2024-10-13T06:43:19.784Z","updated_at":"2025-03-16T16:33:35.575Z","avatar_url":"https://github.com/jonlabelle.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShell Daily Backup\n\n[![ci/cd](https://github.com/jonlabelle/pwsh-daily-backup/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/jonlabelle/pwsh-daily-backup/actions/workflows/ci-cd.yml)\n[![PowerShell Gallery](https://img.shields.io/powershellgallery/v/DailyBackup)](https://www.powershellgallery.com/packages/DailyBackup)\n\n\u003e PowerShell module for performing simple daily backups.\n\n## Installation\n\n```powershell\nInstall-Module -Name DailyBackup\n```\n\n## Updating\n\n```powershell\nUpdate-Module -Name DailyBackup\n```\n\n## Usage\n\n```console\nNAME\n    New-DailyBackup\n\nSYNOPSIS\n    Perform a daily backup.\n\nSYNTAX\n    New-DailyBackup [-Path] \u003cString[]\u003e [-Destination] \u003cString\u003e -DailyBackupsToKeep \u003cInt32\u003e [-WhatIf] [-Verbose]\n\nDESCRIPTION\n    Create a new daily backup storing the compressed (.zip) contents in a\n    destination folder formatted by day ('yyyy-MM-dd').\n\nPARAMETERS\n    -Path \u003cString[]\u003e\n        The source file or directory path(s) to backup.\n\n        Required?                    true\n        Position?                    1\n        Default value\n        Accept pipeline input?       true (ByValue, ByPropertyName)\n        Accept wildcard characters?  false\n\n    -Destination \u003cString\u003e\n        The root directory path where daily backups will be stored.\n        The default destination is the current working directory.\n\n        Required?                    false\n        Position?                    2\n        Default value                .\n        Accept pipeline input?       false\n        Accept wildcard characters?  false\n\n    -DailyBackupsToKeep \u003cInt32\u003e\n        The number of daily backups to keep when purging old backups.\n        The oldest backups will be deleted first.\n        This value cannot be less than zero.\n        The default value is 0, which will not remove any backups.\n\n        Required?                    false\n        Position?                    named\n        Default value                0\n        Accept pipeline input?       false\n        Accept wildcard characters?  false\n\n    -WhatIf [\u003cSwitchParameter\u003e]\n        When present, backup operations will not be performed.\n\n        Required?                    false\n        Position?                    named\n        Default value\n        Accept pipeline input?       false\n        Accept wildcard characters?  false\n\n    \u003cCommonParameters\u003e\n        This cmdlet supports the common parameters: Verbose, Debug,\n        ErrorAction, ErrorVariable, WarningAction, WarningVariable,\n        OutBuffer, PipelineVariable, and OutVariable. For more information, see\n        about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).\n```\n\n## Examples\n\nTo perform a daily backup of directories `C:\\Users\\Ron\\Documents` and\n`C:\\Users\\Ron\\Music`, and store them as `C:\\Users\\Ron\\iCloudDrive\\{yyyy-MM-dd}\\{basename}.zip`,\nkeeping only the latest 7 backups.\n\n```powershell\nImport-Module DailyBackup\n\nNew-DailyBackup `\n    -Path 'C:\\Users\\Ron\\Documents', 'C:\\Users\\Ron\\Music' `\n    -Destination 'C:\\Users\\Ron\\iCloudDrive' `\n    -DailyBackupsToKeep 7 `\n```\n\n\u003e **NOTE** If running multiple backups on the same day, the previous backup(s)\n\u003e will be destroyed and overwritten with the current backup.\n\u003e TODO: Maybe consider using the -Force option instead.\n\n## Author\n\nJon LaBelle\n\n## License\n\n[MIT License](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlabelle%2Fpwsh-daily-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonlabelle%2Fpwsh-daily-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlabelle%2Fpwsh-daily-backup/lists"}