Restore a folder with PBC

marco89

New Member
Feb 21, 2024
2
0
1
Dear all,

I'm trying to restore all contents of a single folder using the pxar command without success.
For exemple if I'm using the command:
restore media/dati/docker/test/ --pattern docker/office_converter
nothing happen.

1708512780628.png
How can I do it?

Thanks and kind regards
marco
 
Hi,
in order to restore the directory and all of its subtree, you can use the following pattern, e.g. restore ./your-target --pattern path/to/folder/**. The two asterisk at the end tell to match all below this folder.
 
Hi,
in order to restore the directory and all of its subtree, you can use the following pattern, e.g. restore ./your-target --pattern path/to/folder/**. The two asterisk at the end tell to match all below this folder.
Thanks Chris,

I tried running your command, but if I do it, it only copies a few folders and a single file.

1708531374958.png

As you can see in the image it only saved Dockerfile, but in reality inside the folder there is build.sh and another folder src with other files inside.

1708531313661.png
It also gave me this error:
Error: failed to set owneship

What error is it?

thanks and kind regards
 
Thanks Chris,

I tried running your command, but if I do it, it only copies a few folders and a single file.

View attachment 63551

As you can see in the image it only saved Dockerfile, but in reality inside the folder there is build.sh and another folder src with other files inside.

View attachment 63550
It also gave me this error:
Error: failed to set owneship

What error is it?

thanks and kind regards
As which user are you executing the catalog shell command? The error message suggests, that the restore failes because your user lacks the permissions to change file ownership. Please run the catalog shell command as root user.