https://github.com/loglux/remove_onedrive_duplicates
This script is designed to remove duplicate files that have been created as a result of relocating OneDrive content.
https://github.com/loglux/remove_onedrive_duplicates
Last synced: 9 months ago
JSON representation
This script is designed to remove duplicate files that have been created as a result of relocating OneDrive content.
- Host: GitHub
- URL: https://github.com/loglux/remove_onedrive_duplicates
- Owner: loglux
- Created: 2024-02-28T23:25:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T23:48:10.000Z (over 2 years ago)
- Last Synced: 2025-02-25T05:17:15.052Z (over 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Remove OneDrive Duplicate Files Script
## Description
This script is designed to remove duplicate files that have been created as a result of relocating OneDrive content. Often, during the process of moving files within or across different storage devices, Microsoft OneDrive may create duplicates with the suffix '- Copy' in their filenames. This tool automates the clean-up of these unnecessary copies, streamlining the organization of your files and reclaiming storage space.
## How It Works
The script searches through the specified directory (or the default directory if none is specified) for any files that end with '- Copy' in their name. Once identified, it removes these files from your system. Additionally, the script generates a report listing all the files it has deleted, providing a clear record of its actions for review.
## Usage
To run the script, simply execute it from the command line, optionally passing the target directory as an argument. If no argument is provided, the script will default to the pre-defined directory specified within the script.
Example:
```bash
./rm_dups.sh /path/to/target/directory