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

--files-from-raw Adds Every File to Path Output in restic snapshots #4780

Closed
ossie-git opened this issue Apr 27, 2024 · 2 comments
Closed

--files-from-raw Adds Every File to Path Output in restic snapshots #4780

ossie-git opened this issue Apr 27, 2024 · 2 comments

Comments

@ossie-git
Copy link

Output of restic version

restic 0.16.4 compiled with go1.21.6 on linux/amd64

What should restic do differently? Which functionality do you think we should add?

When using --files-from-raw, the Path column is populated with every single file matched by the --files-from-raw. I don't think that this is intended as it makes using restic snapshot very difficult to use (imagine if you match tens of thousands of files).

For example, if I did the following:

restic backup --files-from-raw <( fd -0H . '/home/vagrant/tmux-3.4'  )

and then ran:

$ restic snapshots

it shows:

ID        Time                 Host                  Tags        Paths
------------------------------------------------------------------------------------------------------------------------
98712268  2024-04-27 08:34:11  fedora39                          /home/vagrant/tmux-3.4/.deps
                                                                 /home/vagrant/tmux-3.4/.deps/alerts.Po
                                                                 /home/vagrant/tmux-3.4/.deps/arguments.Po
                                                                 /home/vagrant/tmux-3.4/.deps/attributes.Po
                                                                 /home/vagrant/tmux-3.4/.deps/cfg.Po
                                                                 /home/vagrant/tmux-3.4/.deps/client.Po
...

for hundreds of lines for a single snapshot. The reason I use --files-from-raw is due to the limited patterns support in restic. The above is just an example

What are you trying to do? What problem would this solve?

Because of the above, running restic snapshots is a pain and quickly seeing your snapshots, etc isn't practical. Ideally, it would show only the top folders backed up

Did restic help you today? Did it make you happy in any way?

Thanks a lot for developing Restic

@ossie-git
Copy link
Author

One alternative to it trying to determine the path is to allow the user to explicitly specify what to add under Path for this --files-from-raw

@MichaelEischer
Copy link
Member

Duplicate of #2714

@MichaelEischer MichaelEischer marked this as a duplicate of #2714 May 5, 2024
@MichaelEischer MichaelEischer closed this as not planned Won't fix, can't repro, duplicate, stale May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants