Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jessehouwing/WindowsFileHistoryCleaner
Simple command line executable to turn a File History share back into a snapshot of files
https://github.com/jessehouwing/WindowsFileHistoryCleaner
backup filehistory windows
Last synced: 15 days ago
JSON representation
Simple command line executable to turn a File History share back into a snapshot of files
- Host: GitHub
- URL: https://github.com/jessehouwing/WindowsFileHistoryCleaner
- Owner: jessehouwing
- Created: 2018-08-24T11:39:38.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-09-17T22:38:50.000Z (10 months ago)
- Last Synced: 2024-05-02T05:08:51.976Z (2 months ago)
- Topics: backup, filehistory, windows
- Language: C#
- Homepage:
- Size: 12.7 KB
- Stars: 19
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Lists
- jimsghstars - jessehouwing/WindowsFileHistoryCleaner - Simple command line executable to turn a File History share back into a snapshot of files (C# #)
README
# Windows File History Cleaner
Simple commandline executable to turn a File History share back into a snapshot of files
## Sample command:
```
FileHistoryCleaner remove-history
--root "C:\BACKUP"
--recursive
--rd "(\\node_modules$|\\\$tf$|\.git$|\\locallow$|\\bin$|\\obj$|packages$)"
--rf "(\.DS_Store|.lnk$|\.exe$|\.msi$|\.iso$|\.dll$)"
--verbose
--force
--whatif
```* `--root` points to the root of a File History share (or copy of one)
* `--recursive` traverses all sub directories
* `--rd` deletes directory recursively if it match the supplied regex. Be careful of the escape rules of both your commandline processor and regex.
* `--rf` deletes files if it match the supplied regex. Be careful of the escape rules of both your commandline processor and regex.
* `--verbose` outputs more logs
* `--force` delete instead of move to the recycle bin
* `--whatif` Output actions, but do not actually perform them
## History
I wrote this little tool after my NAS became inaccessible. While taking a backup of the drives I found out the File History Snapshot of my laptop had grown beyong 1.4TB.
By running this little cleanup tool I managed to return the snapshot to 60GB of only the latest versions of every file.