Skip to content

Commit

Permalink
πŸ› Fix incremental backup link-dest path
Browse files Browse the repository at this point in the history
Update relative path for incremental backups

Modify the --link-dest argument in the rsync command to use
"../latest" instead of "../{HOSTNAME}/latest". This change
ensures correct reference to the previous backup for
incremental backups, fixing potential issues with hardlinking.
  • Loading branch information
hyperb1iss committed Sep 15, 2024
1 parent 57e1de8 commit acb013f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aeonsync/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _build_rsync_extra_args(self) -> List[str]:
for exclusion in EXCLUSIONS:
extra_args.extend(["--exclude", exclusion])
if not self.config.full:
extra_args.extend(["--link-dest", f"../{HOSTNAME}/latest"])
extra_args.extend(["--link-dest", "../latest"])
if self.config.dry_run:
extra_args.append("--dry-run")
if self.config.verbose:
Expand Down

0 comments on commit acb013f

Please sign in to comment.