Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with restic backup sources #150

Closed
farzadha2 opened this issue Oct 9, 2022 · 1 comment
Closed

Issue with restic backup sources #150

farzadha2 opened this issue Oct 9, 2022 · 1 comment

Comments

@farzadha2
Copy link

Hi
I was wondering if someone else had this issue before, Currently trying to backup 2 folder but in the logs only backing up 1 folder

This is part of my docker compose

services:
  sftp_backup:
    image: mazzolino/restic
    restart: always
    hostname: sftp-backup
    privileged: true
    environment:
      RUN_ON_STARTUP: "true"
      POST_COMMANDS_FAILURE: |-
        curl -X POST --data "{\"title\": \"Backup failed\", \"body\": \"\"}" http://notify:5000
      BACKUP_CRON: "0 30 23 * * *"
      RESTIC_REPOSITORY: sftp:root@192.168.7.253:/media/usb/docker3
      RESTIC_PASSWORD: mypassword
      RESTIC_BACKUP_SOURCES: /scsi1
      RESTIC_BACKUP_SOURCES: /scsi2
      RESTIC_BACKUP_ARGS: >-
        --tag backupsftp
        --verbose
      RESTIC_FORGET_ARGS: >-
        --keep-last 90
      TZ: America/Bogota
    volumes:
      - /scsi1:/scsi1
      - /scsi2:/scsi2
      - /root/.ssh/:/root/.ssh/
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - notification

sftp_backup_1  | Forget about old snapshots based on RESTIC_FORGET_ARGS = --keep-last 90
sftp_backup_1  | Applying Policy: keep 90 latest snapshots
sftp_backup_1  | keep 1 snapshots:
sftp_backup_1  | ID        Time                 Host         Tags        Reasons        Paths
sftp_backup_1  | -----------------------------------------------------------------------------
sftp_backup_1  | 5a1570d2  2022-10-09 18:21:22  sftp-backup  backupsftp  last snapshot  /scsi2
sftp_backup_1  | -----------------------------------------------------------------------------
sftp_backup_1  | 1 snapshots
sftp_backup_1  | 
sftp_backup_1  | Finished backup at 2022-10-09 18:23:55 after 153 seconds
@farzadha2
Copy link
Author

solved i had to change something like this


    volumes:
      - /scsi1:/backup2/scsi1
      - /scsi2:/backup2/scsi2

      RESTIC_BACKUP_SOURCES: /backup2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant