Hi, I’m using restic to back up stuff from my Synology NAS. However, I can’t get it to exclude certain folders - specficially the #recycle
and @eaDir
folders created by DSM.
Restic commnad:
restic \
-r "rclone:GoogleDrive:/NAS Backup" \
--compression auto \
--password-file "${KEYS_DIR}/Google Drive.key" \
backup \
--files-from "${INCLUDE_CONFIG}" \
--exclude-file "${EXCLUDE_CONFIG}" \
--host "${RESTIC_HOST}"
include file:
Lucy/**/*
docker/**/*
exclude file:
Lucy/Backups
!Lucy/Backups/Game Saves
!Lucy/Backups/*.tar
Lucy/Projects/Game Assets
**/#recycle
#recycle/**/*
**/#recycle/**/*
**/@eaDir
@eaDir/**/*
**/@eaDir/**/*
Are exclude/include files mutually exclusive, do include files take priority, or am I just doing this wrong? Do I just need to make a script which compiles the file list itself?
Yes, restic is the latest version:
Lucy@cat-cafe:~$ restic version
restic 0.14.0 compiled with go1.19 on linux/amd64