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

backup effectively fails when glob is set #1409

Closed
Schweber opened this issue Feb 8, 2025 · 1 comment
Closed

backup effectively fails when glob is set #1409

Schweber opened this issue Feb 8, 2025 · 1 comment
Labels
S-triage Status: Waiting for a maintainer to triage this issue/PR

Comments

@Schweber
Copy link

Schweber commented Feb 8, 2025

I'm using rustic 0.9.4. It doesn't do a proper backup if i set the following:

[[backup.snapshots]]
sources = [
  "/home/sperber/.config",
  "/home/sperber/.gnupg",
  "/home/sperber/.ssh",
  "/home/sperber/Dokumente",
  "/home/sperber/Speicher/Bücher",
]
globs = [
  "/home/sperber/.config/BraveSoftware/Brave-Browser/Default/Bookmarks",
  "/home/sperber/.config/BraveSoftware/Brave-Browser/Default/Preferences",
  "!/home/sperber/.config/BraveSoftware/Brave-Browser/",
  "!/home/sperber/.local/share/Trash/",
  "!/home/sperber/Programmieren/**/*.go",
  "!/home/sperber/Programmieren/**/build/",
  "!/home/sperber/Programmieren/**/target/",
  "!/home/sperber/Programmieren/nixpkgs/",
  "!/home/sperber/Speicher/Backup/mount",
]
snapshots for (host [desktop], label [], paths [/home/sperber/.config,/home/sperber/.gnupg,/home/sperber/.ssh,/home/sperber/Dokumente,/home/sperber/Speicher/Bücher])
| ID       | Time                | Host    | Label | Tags | Paths                         | Files | Dirs | Size |
|----------|---------------------|---------|-------|------|-------------------------------|-------|------|------|
| 1d9b9f35 | 2025-02-07 12:03:33 | desktop |       |      | /home/sperber/.config         |     0 |  627 |  0 B |
|          |                     |         |       |      | /home/sperber/.gnupg          |       |      |      |
|          |                     |         |       |      | /home/sperber/.ssh            |       |      |      |
|          |                     |         |       |      | /home/sperber/Dokumente       |       |      |      |
|          |                     |         |       |      | /home/sperber/Speicher/Bücher |       |      |      |
| f80c73a6 | 2025-02-08 08:20:43 | desktop |       |      | /home/sperber/.config         |     0 |  623 |  0 B |
|          |                     |         |       |      | /home/sperber/.gnupg          |       |      |      |
|          |                     |         |       |      | /home/sperber/.ssh            |       |      |      |
|          |                     |         |       |      | /home/sperber/Dokumente       |       |      |      |
|          |                     |         |       |      | /home/sperber/Speicher/Bücher |       |      |      |
| 704ee88e | 2025-02-08 08:56:18 | desktop |       |      | /home/sperber/.config         |     0 |  623 |  0 B |
|          |                     |         |       |      | /home/sperber/.gnupg          |       |      |      |
|          |                     |         |       |      | /home/sperber/.ssh            |       |      |      |
|          |                     |         |       |      | /home/sperber/Dokumente       |       |      |      |
|          |                     |         |       |      | /home/sperber/Speicher/Bücher |       |      |      |
3 snapshot(s)

If i comment out the following lines

globs = [
  # "/home/sperber/.config/BraveSoftware/Brave-Browser/Default/Bookmarks",
  # "/home/sperber/.config/BraveSoftware/Brave-Browser/Default/Preferences",

the backup works as expected.

I think this behaviour is wrong.

@github-actions github-actions bot added the S-triage Status: Waiting for a maintainer to triage this issue/PR label Feb 8, 2025
@Schweber Schweber changed the title rustic is creating backups without files, just with directories backup effectively fails when glob is set Feb 8, 2025
@Schweber
Copy link
Author

Schweber commented Feb 8, 2025

I mixed up glob with include/exclude directives, sorry.

@Schweber Schweber closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-triage Status: Waiting for a maintainer to triage this issue/PR
Projects
None yet
Development

No branches or pull requests

1 participant