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

Use multiple --link-dest arguments when possible #343

Open
3 tasks done
TDurrr1 opened this issue May 14, 2024 · 0 comments
Open
3 tasks done

Use multiple --link-dest arguments when possible #343

TDurrr1 opened this issue May 14, 2024 · 0 comments
Labels

Comments

@TDurrr1
Copy link

TDurrr1 commented May 14, 2024

Checklist

  • I'm asking for a feature to be changed or added
  • I've searched the bugtracker for similar issues, including closed ones.
  • I realise that rsnapshot is stable software and most feature requests will be rejected

My suggestion is ...

A configuration option should be added (or the functionality should be enabled by default) to have rsnapshot generate multiple --link-dest arguments for rsync, up to rsync's limit of twenty.

Why I want it

(Let me know if I'm misunderstanding anything.)

Currently, rsnapshot only generates a --link-dest to the single most recent snapshot. This doesn't necessarily utilize that option to its fullest. For example, with daily backups, a file which is alternately moved into and out of the source directory would never be hardlinked. Using multiple --link-dests would enable files like this to still be properly hardlinked and reduce backup sizes. More generally, it would also simply give rsnapshot more chances to hardlink files which may move around but eventually return to previous locations.

A configuration option would make this easy to modify as well, something along the lines of link_dest_range daily to limit to a retain definition or link_dest_count 20 to limit to the max rsync can handle.

Why should this be in rsnapshot and not implemented using some external tool?

Admittedly, I haven't searched for many external tools. Since rsnapshot is generating the --link-dest argument in the first place, it seems apt and able to just generate more of them in the same place within this tool. If there's already a way to do this, that would be fantastic!

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

No branches or pull requests

1 participant