cupcakearmy / autorestic

Config driven, easy backup cli for restic.

Home Page:https://autorestic.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

fengziyun opened this issue · comments

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

  • OS: Centos 7.5.1804
  • Version: autorestic version 1.8.1
  •          restic 0.16.4 compiled with go1.21.6 on linux/amd64
    

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: ''                              

Sorry, the document I was browsing is outdated