Skip to content

Issue with systemd #211

@d11ahirst

Description

@d11ahirst

Hi,

I am having problems with the scheduling systemd timer,service

This is my profiles.toml

[default]
  initialize = true
  repository = "{{ .Env.RESTIC_REPOSITORY }}"
  password = "{{ .Env.RESTIC_PASSWORD }}"
  option = "s3.connections=3"

  [default.env]
    AWS_ACCESS_KEY_ID = "revoked"
    AWS_SECRET_ACCESS_KEY = "revoked"

  [default.backup]
    exclude = [ ...... ]
    exclude-caches = true
    one-file-system = true
    tag = [ "root" ]
    source = [ "/foldertobackup" ]
    schedule = ["hourly","daily"]
    schedule-permission = "system"
    schedule-priority = "background"
    schedule-lock-wait = "10m"
    schedule-log = "backup.log"

  [default.restore]
     target = "/"

  [default.retention]
    before-backup = false
    after-backup = true
    keep-hourly = 12
    keep-daily = 7
    keep-weekly = 1
    keep-tag = [ "manual", "locked" ]

I get the following output in the log

2023/05/23 09:50:18 INFO  profile 'default': initializing repository (if not existing)
reading repository password from stdin
2023/05/23 09:50:18 INFO  profile 'default': starting 'backup'
Fatal: unable to open config file: stat <no value>/config: no such file or directory
Is there a repository at the following location?
<no value>
2023/05/23 09:50:18 ERROR backup on profile 'default': exit status 1

Any help figuring this out would be appreciated.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions