ID Date Host Tags Directory
----------------------------------------------------------------------
990cc2ff 2017-11-10 12:04:26 computer┌── e:\temp\folder duo
└── e:\temp\folder one
d1285463 2017-11-10 12:10:51 computer┌── e:\temp\folder duo
└── e:\temp\folder one
I’m trying to restore a specific folder using this command:
The problem here is a limitation that restic currently has, the way you create the snapshots it will create the following structure (you can check with restic ls 990cc2ff):
/folder one
/folder duo
For restore, the include/exclude patterns are relative to the structure in the repository. So if you like to only restore folder one, you need to pass --include "/folder one" (mind the quotes).
What did you run exactly? Running restic restore --include "folder one" will indeed restore both folders, but restic restore --include "/folder one" (mind the prefixed slash) will only restore the top-level folder. The output of restic ls matches this.
The temp folder is not included because of an issue in the current restic archiver code. I’m currently working on it and it’s documented in #549.