autorestic can't properly initialize local restic hdd repo
sokoow opened this issue · comments
sokoow commented
Describe the bug
with a following config:
version: 2
global:
forget:
keep-last: 5 # always keep at least 5 snapshots
locations:
home-desktop:
from: /home/mint/Desktop
to: hdd
home-documents:
from: /home/mint/Documents
to: hdd
backends:
hdd:
type: local
path: /mnt/Elements/backup-t470
key: 'longpassword123'
I get:
$ autorestic check -c /media/mint/Elements/autorestic/.autorestic.yaml -v
Using config: /media/mint/Elements/autorestic/.autorestic.yaml
Using lock: /media/mint/Elements/autorestic/.autorestic.lock.yml
> Executing: /usr/bin/restic check
Initializing backend "hdd"...
> Executing: /usr/bin/restic init
Error: exit status 1
$autorestic backup -c /media/mint/Elements/autorestic/.autorestic.yaml -av
Using config: /media/mint/Elements/autorestic/.autorestic.yaml
Using lock: /media/mint/Elements/autorestic/.autorestic.lock.yml
Backing up location "home-desktop"
Backend: hdd
> Executing: /usr/bin/restic backup --tag ar:location:home-desktop /home/mint/Desktop
Fatal: wrong password or no key found
home-desktop@hdd:
Fatal: wrong password or no key found
exit status 1
Expected behavior
I'd expect for autorestic to be able to properly initialize restic repo and do a backup to it.
Environment
- OS: mint 21
- Versions:
autorestic - latest
restic: 0.15.1
sokoow commented
for some reason it didn't like ntfs that the repo is being put on - fixed by migrating to ext4