{"id":21437842,"url":"https://github.com/mkorthof/wb-wrap","last_synced_at":"2026-05-17T02:47:42.332Z","repository":{"id":114078815,"uuid":"141421466","full_name":"mkorthof/wb-wrap","owner":"mkorthof","description":"Wrapper for Windows 7 Backup ","archived":false,"fork":false,"pushed_at":"2021-04-29T18:09:15.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-24T07:09:28.740Z","etag":null,"topics":["backup","backup-cli","backup-script","powershell","powershell-script","windows","windows-10","windows-7"],"latest_commit_sha":null,"homepage":null,"language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkorthof.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-07-18T10:47:16.000Z","updated_at":"2023-12-20T19:48:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"d111bd37-14cd-4664-b0e6-cc68e9fbf6cc","html_url":"https://github.com/mkorthof/wb-wrap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mkorthof/wb-wrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fwb-wrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fwb-wrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fwb-wrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fwb-wrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkorthof","download_url":"https://codeload.github.com/mkorthof/wb-wrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fwb-wrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33125847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"online","status_checked_at":"2026-05-17T02:00:05.366Z","response_time":107,"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":["backup","backup-cli","backup-script","powershell","powershell-script","windows","windows-10","windows-7"],"created_at":"2024-11-23T00:29:44.747Z","updated_at":"2026-05-17T02:47:42.319Z","avatar_url":"https://github.com/mkorthof.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wb.cmd\n## Wrapper for Windows Backup and Restore\n\nThis wrapper is meant to work with \"Windows Backup and Restore\".\n\nIn Windows 10 this is available as: `\"Control Panel\\All Control Panel Items\\Backup and Restore (Windows 7)\"`\n\nThis PowerShell script adds the following functionlity:\n\n- Allows creating multiple system images using dated dirs\n- Deletes oldest backup folder(s) until there is enough space\n- Runs normal backup (using sdclt.exe)\n- Logging to \"wb.log\", located in same dir as script\n\nFirst some checks are done to make sure you have Admin rights, the Backup Drive is available etc. Then if a Backup folder exists like `\"Z:\\WindowsImageBackup\\COMPUTERNAME\"` it will be renamed to `\"COMPUTERNAME_yyMMdd\"`.\nIf the new Backup is e.g. 200GB and your Backup Drive only has 100GB free, older Backup folders will be removed until there is enough free space (so 200GB at least).\nNow a normal Windows Backup with progress window will be started using the settings you configured using the GUI (via Control Panel). In case anything goes wrong the script will let you know and abort. Any messages go to a separate console window and to `wb.log`.\n\n### Usage\n\nJust start `wb.cmd`\n\nFor easy execution this PowerShell script is embedded in a Batch .cmd file using a \"polyglot wrapper\".\nIt also can be renamed to wb.ps1. More info:\n- https://blogs.msdn.microsoft.com/jaybaz_ms/2007/04/26/powershell-polyglot\n- https://stackoverflow.com/questions/29645\n\n### Configuraton\n\nAll config is done by editting `wb.cmd`.\n\nEither set `$backupDrive` to a static drive letter (e.g. \"D\") or a UUID: \"\\\\?\\Volume{c1affc50-7554-11e9-8f9e-2a86e4085a59\".\nTo list UUIDS you can use this CLI command: `mountvol`.\n\n`$backupDrive = \"\\\\?\\Volume{c1affc50-7554-11e9-8f9e-2a86e4085a59}\\\"`\n\nor:\n\n`$backupDrive = \"D\"`\n\nSet Volume Label of Backup Drive:\n\n`$backupLabel = \"My Backups\"`\n\nIs the Backup Drive encrypted with BitLocker [0/1]\n\n`$blDrive = 1`\n\nDisk space options: % free space needed, bytes, max number of folders to remove.\n\n`$minPercentFree = 12.5`\n\n`$minBytesFree = 375809638400` (= 375GB)\n\n`$maxRemove = 3`\n\nBoth minPercentFree and minBytesFree (actually \"OR\") are used to check against current free disk space, as long as either one checks out no folders will be removed. You could look at your current backup folder to calculate these.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkorthof%2Fwb-wrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkorthof%2Fwb-wrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkorthof%2Fwb-wrap/lists"}