bupstash get --pick folder1/file1.txt id="343453546" | dd of=/home/myself/folder1/file1.txt
Question 1: Am I correct in assuming there is no way to combine Restore with --picking a specific file to restore? And that --pick only works with folders when used with Restore, and that therefore using Get in combination with an external tool like DD or Tar etc, is the only way to extract a specific file?
...but this also recursively lists all contents of all subfolders found within folder1.
Question 2: Is there any way to use list-contents in combination with --pick to list only the top-level contents of a specific folder, without delving into all of the subfolders as well? Sometimes there are thousands and thousands of subfolders/subfiles and I only want to ls the top level contents of the specified folder.
Hi, I'm trying my best to understand the query language in bupstash, and have a couple of questions:
I can restore a specific subfolder by doing:
bupstash restore --pick folder1 --into /home/myself/folder1 id="343453546"
And to restore a specific file I can do:
bupstash get --pick folder1/file1.txt id="343453546" | dd of=/home/myself/folder1/file1.txt
Question 1: Am I correct in assuming there is no way to combine Restore with --picking a specific file to restore? And that --pick only works with folders when used with Restore, and that therefore using Get in combination with an external tool like DD or Tar etc, is the only way to extract a specific file?
Moving along, I can use:
bupstash list-contents --pick folder1 id="343453546"
...but this also recursively lists all contents of all subfolders found within folder1.
Question 2: Is there any way to use list-contents in combination with --pick to list only the top-level contents of a specific folder, without delving into all of the subfolders as well? Sometimes there are thousands and thousands of subfolders/subfiles and I only want to ls the top level contents of the specified folder.
Thanks..