Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added --match-relative-path option and support #640

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ttyusupov
Copy link

@ttyusupov ttyusupov commented Nov 12, 2023

I've added --match-relative-path support for my own needs and seems there is an existing feature request for that: #550.

In my case it was useful to only keep files that have been changed in different backup snapshots and keep files which have different relative paths (and different content than file with the same relative path in original copy) although the same content as some file in original copy.

@cebtenzzre
Copy link
Collaborator

cebtenzzre commented Nov 12, 2023

How are you making these backups? Typically this is something that is done with rsync (which can copy only files that have changed relative to a previous backup with --compare-dest) or with lightweight snapshots (e.g. btrfs snapshots are free because of reflinks and deleting files does not usually reduce disk usage). Making a full copy of an entire hierarchy only to delete most of it seems inefficient.

@ttyusupov
Copy link
Author

These were old backups on external drive made by TimeMachine which I needed to save somewhere else. Due to some reasons some files in snapshots were copies with exactly the same content rather than hardlinks.

Another potential scenario is when you already have a full copy on external drive but then realize you only want to keep old versions of changed files because you have a new backup on another drive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants