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

strip redundant trailing slashes from backup dest #333

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

Conversation

tmzullinger
Copy link
Contributor

After 2a2b302 (Fix regression in 262 (#283), 2021-06-08), the newly added normalize_dest_file_path_part() function changes a backup destination of './' or '.' to '/'.

This results in rsync_backup_point() adding a redundant trailing '/' to the rsync destination (and --link-dest argument, if enabled).

The redundant trailing slash isn't harmful, but it looks odd in the output and logs. Remove it while generating the rsync command stack.

After 2a2b302 (Fix regression in 262 (rsnapshot#283), 2021-06-08), the newly
added normalize_dest_file_path_part() function changes a backup
destination of './' or '.' to '/'.

This results in rsync_backup_point() adding a redundant trailing '/' to
the rsync destination (and --link-dest argument, if enabled).

The redundant trailing slash isn't harmful, but it looks odd in the
output and logs.  Remove it while generating the rsync command stack.
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

1 participant