cupcakearmy / autorestic

Config driven, easy backup cli for restic.
https://autorestic.vercel.app/
Apache License 2.0
1.27k stars 71 forks source link

autorestic running backup.yml,restic print 'unknown flag: --use-fs-snapshot' #367

Closed fengziyun closed 6 months ago

fengziyun commented 6 months ago

Describe the bug

[root@localhost data]# autorestic -c /data/backup.yml --ci cron |tee /tmp/autorestic.log 2>&1                                                                                                                    
Using config:    /data/backup.yml                                                                                                                                                                                  
Using lock:      /data/.autorestic.lock.yml                                                                                                                                                                        

    Backing up location "user_data"                                                                                                                                                                                

Backend: external_hdd                                                                                                                                                                                              
> Executing: /bin/restic backup --tag home --use-fs-snapshot --exclude-caches --tag ar:cron --tag ar:location:user_data /mnt/test /mnt/data                                                                   
unknown flag: --use-fs-snapshot                                                                                                                                                                                    

Expected behavior running restic

Environment

Additional context


version: 2

locations:
  user_data:
    from: 
      - '/mnt/test'
      - '/mnt/data'
    to:
      - external_hdd
    cron: '0 3 */1 * *'    
    options:             
      all:               
        tag: home
      forget:            
        keep-last: 14
        keep-weekly: 2
        keep-monthly: 2
        keep-yearly: 1
      backup:
        use-fs-snapshot: true
        exclude-caches: true
        # exclude-larger-than: 2G
        # exclude:
        #   - '*/AutoPCH'
        #   - '*/.vs'
        #   - '*/Tencent Files'
        #   - '*/AppData'
        #   - '*/NTDATA*'
        #   - '*/OneDrive'

backends:
  external_hdd:
    type: local                         
    path: '/data/backup'
    key: ''                              
fengziyun commented 6 months ago

Sorry, the document I was browsing is outdated