You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In autorestic, all relative paths are converted to their absolute paths prior to being passed to restic for backup. However, restic itself is able to handle relative paths (at least newer versions can).
When a relative path is passed to restic directly (without autorestic), although the snapshot "Paths" attribute (visible with restic snapshots) has the absolute path, the files inside each snapshot are stored as just the relative path (visible with restic ls latest).
However, if a relative path is passed to autorestic, the full absolute path is stored (restic ls latest).
Proposed solution: if a relative path is setup in the autorestic config file, pass the relative path, not absolute path, to restic.
Expected behavior
Passing a relative path to autorestic should pass that relative path to restic, not resolve it to an absolute path.
Environment
OS: Mac & Linux
Version: 1.8.3
Additional context
The text was updated successfully, but these errors were encountered:
so my current backup method on macOS with restic is to:
create an apfs snapshot of the disk
mount this into ~/Volumes/restic_snapshot/
change the cwd to this snapshot folder with cd $HOME/Volumes/restic_snapshot
then create a backup with restic backup ./
which then saves the relative path (that is, it correctly omits the ~/Volumes/restic_snapshot/ part of the path.)
Do i understand correctly, there is no way (or workaround) to achieve this with autorestic currently?
Describe the bug
In autorestic, all relative paths are converted to their absolute paths prior to being passed to restic for backup. However, restic itself is able to handle relative paths (at least newer versions can).
When a relative path is passed to restic directly (without autorestic), although the snapshot "Paths" attribute (visible with
restic snapshots
) has the absolute path, the files inside each snapshot are stored as just the relative path (visible withrestic ls latest
).However, if a relative path is passed to autorestic, the full absolute path is stored (
restic ls latest
).Proposed solution: if a relative path is setup in the autorestic config file, pass the relative path, not absolute path, to restic.
Expected behavior
Passing a relative path to autorestic should pass that relative path to restic, not resolve it to an absolute path.
Environment
Additional context
The text was updated successfully, but these errors were encountered: