nils-werner / crestic

Configurable Restic Wrapper
https://nils-werner.github.io/crestic/
MIT License
106 stars 10 forks source link

Crestic is looking for config.cfg, not crestic.cfg #34

Closed jgottlander closed 1 year ago

jgottlander commented 1 year ago

According to the docs, the name of the config file should be crestic.cfg, but when I'm debugging crestic it's looking for config.cfg.

When trying to backup i'm getting error message: "Fatal: nothing to backup, please specify target files/dirs". It worked before when I used Arch, but just switched over to Fedora 37 and the same config doesn't work. Renaming it to config.cfg fixes the problem, but maybe good idea to change the docs if it's the new standard.

   Warning: Executing in debug mode. restic will not run, backups are not touched!
        Config files: /usr/share/crestic/config.cfg, /etc/crestic/config.cfg, /home/XXX/.config/crestic/config.cfg
   Config files used: 
     Config sections: global, global.backup, home, home.backup, home, home.backup
Config sections used: 
        Env sections: global.environ, global.backup.environ, home.environ, home.backup.environ, home.environ, home.backup.environ
   Env sections used: 
    Expanded command: restic backup
AAKempf commented 1 year ago

Thanks for the hint. Same problem here, why crestic suddenly stopped running. Renaming the file to config.cfg was the solution.

nils-werner commented 1 year ago

Oh right, the filename changed in 8169601e. To be honest I don't remember if it was intentional or by mistake, so sorry for that.

I have fixed the filenames in the docs.