Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backup/resticprofile/profiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ profiles:
- "*.pid"
- "*.lock"
- "*.tmp"
- "*-cache"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To maintain consistency with the Unison ignore patterns (which now ignore *-tmp via brace expansion), we should also exclude *-tmp from the restic backups.

        - "*-cache"
        - "*-tmp"

- .cache
- cache
- logs
Comment thread
yxtay marked this conversation as resolved.
- tmp
# Build artifacts
- __pycache__
Expand Down
1 change: 1 addition & 0 deletions sync/rsync/exclude.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.tmp
__pycache__/**
cache/**
*-cache/**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To ensure consistency across all backup and sync configurations, we should also exclude *-tmp/**, logs/**, and *-logs/** patterns from rsync. This prevents temporary files and logs from being unnecessarily synchronized.

*-cache/**
*-tmp/**
logs/**
*-logs/**

.cache/**
.git/**
tmp/**
Expand Down
2 changes: 1 addition & 1 deletion unison/common.prf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ perms = 0

ignore = Name __pycache__
ignore = Name *.{bak,DS_Store,git,pid,pyc,lock}
ignore = Name {,*.}{cache,tmp}
ignore = Name {,*.,*-}{cache,tmp}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since logs has been excluded from restic backups, we should also exclude it from Unison synchronization. We can elegantly achieve this by adding logs to the brace expansion pattern, which will automatically ignore logs, *.logs, and *-logs.

ignore = Name {,*.,*-}{cache,tmp,logs}


ignore = Name MediaCover
ignore = BelowPath altmount/{.nzbs,metadata}
Expand Down
Loading