[
  {
    "case": "S1",
    "arguments": [
      "--repo",
      "<lab-root>\\S1\\repository",
      "--no-cache",
      "init",
      "--repository-version",
      "2"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "created restic repository 29be3c6a45 at <lab-root>\\S1\\repository\n\nPlease note that knowledge of your password is required to access\nthe repository. Losing your password means that your data is\nirrecoverably lost.\n",
    "stderr": ""
  },
  {
    "case": "S1",
    "arguments": [
      "--repo",
      "<lab-root>\\S1\\repository",
      "--no-cache",
      "backup",
      "--json",
      "--force",
      "--host",
      "synthetic-restore-lab",
      "--tag",
      "synthetic-baseline",
      "source"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"message_type\":\"summary\",\"files_new\":12,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":12,\"tree_blobs\":6,\"data_added\":13104,\"data_added_packed\":5321,\"total_files_processed\":12,\"total_bytes_processed\":2330,\"total_duration\":0.7199685,\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"snapshot_id\":\"99116787fb27db12c40f8332a3873cca4f2d415b5b79ba42b9943b6992c4545b\"}\n",
    "stderr": ""
  },
  {
    "case": "S1",
    "arguments": [
      "--repo",
      "<lab-root>\\S1\\repository",
      "--no-cache",
      "check"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  1 / 1 snapshots\nno errors were found\n",
    "stderr": ""
  },
  {
    "case": "S1",
    "arguments": [
      "--repo",
      "<lab-root>\\S1\\repository",
      "--no-cache",
      "check",
      "--read-data"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  1 / 1 snapshots\nread all data\n[0:00] 100.00%  2 / 2 packs\nno errors were found\n",
    "stderr": ""
  },
  {
    "case": "S1",
    "arguments": [
      "--repo",
      "<lab-root>\\S1\\repository",
      "--no-cache",
      "ls",
      "--json",
      "99116787fb27db12c40f8332a3873cca4f2d415b5b79ba42b9943b6992c4545b"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"time\":\"<redacted-time>\",\"tree\":\"24b3e47ccce1d9d1aa77a69be2a0ad30ebcec51a68d599535a43b9486b3bde6b\",\"paths\":[\"<lab-root>\\\\S1\\\\source\"],\"hostname\":\"synthetic-restore-lab\",\"username\":\"<redacted-execution-account>\",\"tags\":[\"synthetic-baseline\"],\"program_version\":\"restic 0.19.1\",\"summary\":{\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"files_new\":12,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":12,\"tree_blobs\":6,\"data_added\":13104,\"data_added_packed\":5321,\"total_files_processed\":12,\"total_bytes_processed\":2330},\"id\":\"99116787fb27db12c40f8332a3873cca4f2d415b5b79ba42b9943b6992c4545b\",\"short_id\":\"99116787\",\"message_type\":\"snapshot\",\"struct_type\":\"snapshot\"}\n{\"name\":\"source\",\"type\":\"dir\",\"path\":\"/source\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"documents\",\"type\":\"dir\",\"path\":\"/source/documents\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"archive.zip\",\"type\":\"file\",\"path\":\"/source/documents/archive.zip\",\"uid\":0,\"gid\":0,\"size\":163,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"catalog.xml\",\"type\":\"file\",\"path\":\"/source/documents/catalog.xml\",\"uid\":0,\"gid\":0,\"size\":73,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"contacts.csv\",\"type\":\"file\",\"path\":\"/source/documents/contacts.csv\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"inventory.csv\",\"type\":\"file\",\"path\":\"/source/documents/inventory.csv\",\"uid\":0,\"gid\":0,\"size\":39,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"reading-list.xml\",\"type\":\"file\",\"path\":\"/source/documents/reading-list.xml\",\"uid\":0,\"gid\":0,\"size\":53,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records.json\",\"type\":\"file\",\"path\":\"/source/documents/records.json\",\"uid\":0,\"gid\":0,\"size\":56,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"status.json\",\"type\":\"file\",\"path\":\"/source/documents/status.json\",\"uid\":0,\"gid\":0,\"size\":50,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"media\",\"type\":\"dir\",\"path\":\"/source/media\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"tone.wav\",\"type\":\"file\",\"path\":\"/source/media/tone.wav\",\"uid\":0,\"gid\":0,\"size\":1644,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"notes\",\"type\":\"dir\",\"path\":\"/source/notes\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"instructions.txt\",\"type\":\"file\",\"path\":\"/source/notes/instructions.txt\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"letter.txt\",\"type\":\"file\",\"path\":\"/source/notes/letter.txt\",\"uid\":0,\"gid\":0,\"size\":47,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"unicode.txt\",\"type\":\"file\",\"path\":\"/source/notes/unicode.txt\",\"uid\":0,\"gid\":0,\"size\":41,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records\",\"type\":\"dir\",\"path\":\"/source/records\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"settings.toml\",\"type\":\"file\",\"path\":\"/source/records/settings.toml\",\"uid\":0,\"gid\":0,\"size\":54,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n",
    "stderr": ""
  },
  {
    "case": "S1",
    "arguments": [
      "--repo",
      "<lab-root>\\S1\\repository",
      "--no-cache",
      "restore",
      "--json",
      "99116787fb27db12c40f8332a3873cca4f2d415b5b79ba42b9943b6992c4545b:/source",
      "--target",
      "<lab-root>\\S1\\restored-empty-target",
      "--overwrite",
      "never"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"message_type\":\"summary\",\"total_files\":16,\"files_restored\":16,\"total_bytes\":2330,\"bytes_restored\":2330}\n",
    "stderr": ""
  },
  {
    "case": "S2",
    "arguments": [
      "--repo",
      "<lab-root>\\S2\\repository",
      "--no-cache",
      "check"
    ],
    "public_password_fixture": "wrong",
    "exit_code": 12,
    "stdout": "create exclusive lock for repository\n",
    "stderr": "Fatal: wrong password or no key found\n"
  },
  {
    "case": "S2",
    "arguments": [
      "--repo",
      "<lab-root>\\S2\\repository",
      "--no-cache",
      "check",
      "--read-data"
    ],
    "public_password_fixture": "wrong",
    "exit_code": 12,
    "stdout": "create exclusive lock for repository\n",
    "stderr": "Fatal: wrong password or no key found\n"
  },
  {
    "case": "S2",
    "arguments": [
      "--repo",
      "<lab-root>\\S2\\repository",
      "--no-cache",
      "ls",
      "--json",
      "99116787fb27db12c40f8332a3873cca4f2d415b5b79ba42b9943b6992c4545b"
    ],
    "public_password_fixture": "wrong",
    "exit_code": 12,
    "stdout": "",
    "stderr": "{\"message_type\":\"exit_error\",\"code\":12,\"message\":\"Fatal: wrong password or no key found\"}\n"
  },
  {
    "case": "S2",
    "arguments": [
      "--repo",
      "<lab-root>\\S2\\repository",
      "--no-cache",
      "restore",
      "--json",
      "99116787fb27db12c40f8332a3873cca4f2d415b5b79ba42b9943b6992c4545b",
      "--target",
      "<lab-root>\\S2\\restored-empty-target",
      "--overwrite",
      "never"
    ],
    "public_password_fixture": "wrong",
    "exit_code": 12,
    "stdout": "",
    "stderr": "{\"message_type\":\"exit_error\",\"code\":12,\"message\":\"Fatal: wrong password or no key found\"}\n"
  },
  {
    "case": "S3",
    "arguments": [
      "--repo",
      "<lab-root>\\S3\\repository",
      "--no-cache",
      "list",
      "index"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "9a7e2e7422815e322bf37f61aee79bc0642ac0f08ead4a1987a33ad89ec865f3\n",
    "stderr": ""
  },
  {
    "case": "S3",
    "arguments": [
      "--repo",
      "<lab-root>\\S3\\repository",
      "--no-cache",
      "cat",
      "index",
      "9a7e2e7422815e322bf37f61aee79bc0642ac0f08ead4a1987a33ad89ec865f3"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"packs\":[{\"id\":\"80dbf9682d94a77be56dddc74adb13e1896377b9ec61cd18a100d156f0f8687a\",\"blobs\":[{\"id\":\"bb66a7502f31a2b834eefa26bf9040bf9c1ae7bfefe482c4f61c313a38a92cb7\",\"type\":\"data\",\"offset\":0,\"length\":94,\"uncompressed_length\":53},{\"id\":\"63e9327b765b916873c7a5cbb188c2676ca10a734d40d66b695b1828d43b16f5\",\"type\":\"data\",\"offset\":94,\"length\":97,\"uncompressed_length\":56},{\"id\":\"48e8121cf9e54ba1f34008219349981fb081727b7b3fda3db1853ec8506cf86e\",\"type\":\"data\",\"offset\":191,\"length\":155,\"uncompressed_length\":163},{\"id\":\"62b3168c404542c0ac023a7530bad9712bd7c8cbc7e86b6e3c73e62ec9c0fdc4\",\"type\":\"data\",\"offset\":346,\"length\":96,\"uncompressed_length\":55},{\"id\":\"b3adf2aa7b7ffaa2dff364e20f28208747a7c44c93b328037136ac8be930d154\",\"type\":\"data\",\"offset\":442,\"length\":88,\"uncompressed_length\":47},{\"id\":\"e935f95dbd2f9271f87b8edc08d9acd29a03656127ffa771f9b0b0d74d133185\",\"type\":\"data\",\"offset\":530,\"length\":95,\"uncompressed_length\":54},{\"id\":\"6d075f9770cac6fd67ada5ae9015e77bd77c19e9c3779b5ed5fb39b931b029fa\",\"type\":\"data\",\"offset\":625,\"length\":85,\"uncompressed_length\":55},{\"id\":\"433ad607fd0d00fa76c5db9dc6a1f8d11319e69b6b1e375c418e33088a5949b2\",\"type\":\"data\",\"offset\":710,\"length\":114,\"uncompressed_length\":73},{\"id\":\"beaa6c2d49315f315c437e13574f60321a32c80cabf5813aa51b9f711f3a0ea2\",\"type\":\"data\",\"offset\":824,\"length\":80,\"uncompressed_length\":39},{\"id\":\"dd1e1b0c459e7d1db86841929cec02dbe854fdcb3e82bc360bd261e370203fc8\",\"type\":\"data\",\"offset\":904,\"length\":91,\"uncompressed_length\":50},{\"id\":\"b961940c6155950a484557e9c5e76060d084b5e99d025aebce031a592635051c\",\"type\":\"data\",\"offset\":995,\"length\":176,\"uncompressed_length\":1644},{\"id\":\"9006a56ad7a497852555739b403a07fdb3263ecdd15a0b1f10c04e2e63670ff6\",\"type\":\"data\",\"offset\":1171,\"length\":82,\"uncompressed_length\":41}]},{\"id\":\"f8d7a19eddd8e294c3c23aa5e98b6afd05ae63ec53e429db3eb4e55514335551\",\"blobs\":[{\"id\":\"861fc8dc0f31355b6498803072f3fb8c67ea50f7fac664ff0d28b22701e19fb8\",\"type\":\"tree\",\"offset\":0,\"length\":432,\"uncompressed_length\":632},{\"id\":\"78c5a476f3f817aef6e7cd1fa291093e51a2c59047df8acf64373eda8de53053\",\"type\":\"tree\",\"offset\":432,\"length\":803,\"uncompressed_length\":4369},{\"id\":\"d54e79d53a875bbd0e97f303a7d4ce63fb527cb3c599df8d8dfdb052c74db0a7\",\"type\":\"tree\",\"offset\":1235,\"length\":560,\"uncompressed_length\":1879},{\"id\":\"2b5f16baf0b345975c2d87da0494d84ab71752cd7b6b81478d7d0d440cfba906\",\"type\":\"tree\",\"offset\":1795,\"length\":435,\"uncompressed_length\":635},{\"id\":\"deac59864b398d44a3b252beb5cf8e3f88136e9d44f0f1322f0aef6e9a5f810e\",\"type\":\"tree\",\"offset\":2230,\"length\":656,\"uncompressed_length\":2601},{\"id\":\"24b3e47ccce1d9d1aa77a69be2a0ad30ebcec51a68d599535a43b9486b3bde6b\",\"type\":\"tree\",\"offset\":2886,\"length\":444,\"uncompressed_length\":658}]}]}\n",
    "stderr": ""
  },
  {
    "case": "S3",
    "arguments": [
      "--repo",
      "<lab-root>\\S3\\repository",
      "--no-cache",
      "check"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  1 / 1 snapshots\nno errors were found\n",
    "stderr": ""
  },
  {
    "case": "S3",
    "arguments": [
      "--repo",
      "<lab-root>\\S3\\repository",
      "--no-cache",
      "check",
      "--read-data"
    ],
    "public_password_fixture": "correct",
    "exit_code": 1,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  1 / 1 snapshots\nread all data\n[0:00] 100.00%  2 / 2 packs\n",
    "stderr": "pack 80dbf9682d94a77be56dddc74adb13e1896377b9ec61cd18a100d156f0f8687a contains 2 errors: [blob 63e9327b765b916873c7a5cbb188c2676ca10a734d40d66b695b1828d43b16f5: decrypting blob <data/63e9327b> from pack 80dbf9682d94a77be56dddc74adb13e1896377b9ec61cd18a100d156f0f8687a failed: ciphertext verification failed unexpected pack id f9d9269d86098daa625daa0a887cdee0f1e5704446c7a5b9406075514e2f05e2]\n\nThe repository contains damaged pack files. These damaged files must be removed to repair the repository. This can be done using the following commands. Please read the troubleshooting guide at https://restic.readthedocs.io/en/stable/077_troubleshooting.html first.\n\nrestic repair packs 80dbf9682d94a77be56dddc74adb13e1896377b9ec61cd18a100d156f0f8687a\nrestic repair snapshots --forget\n\nDamaged pack files can be caused by backend problems, hardware problems or bugs in restic. Please open an issue at https://github.com/restic/restic/issues/new/choose for further troubleshooting!\nFatal: repository contains errors\n"
  },
  {
    "case": "S3",
    "arguments": [
      "--repo",
      "<lab-root>\\S3\\repository",
      "--no-cache",
      "ls",
      "--json",
      "99116787fb27db12c40f8332a3873cca4f2d415b5b79ba42b9943b6992c4545b"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"time\":\"<redacted-time>\",\"tree\":\"24b3e47ccce1d9d1aa77a69be2a0ad30ebcec51a68d599535a43b9486b3bde6b\",\"paths\":[\"<lab-root>\\\\S1\\\\source\"],\"hostname\":\"synthetic-restore-lab\",\"username\":\"<redacted-execution-account>\",\"tags\":[\"synthetic-baseline\"],\"program_version\":\"restic 0.19.1\",\"summary\":{\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"files_new\":12,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":12,\"tree_blobs\":6,\"data_added\":13104,\"data_added_packed\":5321,\"total_files_processed\":12,\"total_bytes_processed\":2330},\"id\":\"99116787fb27db12c40f8332a3873cca4f2d415b5b79ba42b9943b6992c4545b\",\"short_id\":\"99116787\",\"message_type\":\"snapshot\",\"struct_type\":\"snapshot\"}\n{\"name\":\"source\",\"type\":\"dir\",\"path\":\"/source\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"documents\",\"type\":\"dir\",\"path\":\"/source/documents\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"archive.zip\",\"type\":\"file\",\"path\":\"/source/documents/archive.zip\",\"uid\":0,\"gid\":0,\"size\":163,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"catalog.xml\",\"type\":\"file\",\"path\":\"/source/documents/catalog.xml\",\"uid\":0,\"gid\":0,\"size\":73,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"contacts.csv\",\"type\":\"file\",\"path\":\"/source/documents/contacts.csv\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"inventory.csv\",\"type\":\"file\",\"path\":\"/source/documents/inventory.csv\",\"uid\":0,\"gid\":0,\"size\":39,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"reading-list.xml\",\"type\":\"file\",\"path\":\"/source/documents/reading-list.xml\",\"uid\":0,\"gid\":0,\"size\":53,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records.json\",\"type\":\"file\",\"path\":\"/source/documents/records.json\",\"uid\":0,\"gid\":0,\"size\":56,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"status.json\",\"type\":\"file\",\"path\":\"/source/documents/status.json\",\"uid\":0,\"gid\":0,\"size\":50,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"media\",\"type\":\"dir\",\"path\":\"/source/media\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"tone.wav\",\"type\":\"file\",\"path\":\"/source/media/tone.wav\",\"uid\":0,\"gid\":0,\"size\":1644,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"notes\",\"type\":\"dir\",\"path\":\"/source/notes\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"instructions.txt\",\"type\":\"file\",\"path\":\"/source/notes/instructions.txt\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"letter.txt\",\"type\":\"file\",\"path\":\"/source/notes/letter.txt\",\"uid\":0,\"gid\":0,\"size\":47,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"unicode.txt\",\"type\":\"file\",\"path\":\"/source/notes/unicode.txt\",\"uid\":0,\"gid\":0,\"size\":41,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records\",\"type\":\"dir\",\"path\":\"/source/records\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"settings.toml\",\"type\":\"file\",\"path\":\"/source/records/settings.toml\",\"uid\":0,\"gid\":0,\"size\":54,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n",
    "stderr": ""
  },
  {
    "case": "S3",
    "arguments": [
      "--repo",
      "<lab-root>\\S3\\repository",
      "--no-cache",
      "restore",
      "--json",
      "99116787fb27db12c40f8332a3873cca4f2d415b5b79ba42b9943b6992c4545b:/source",
      "--target",
      "<lab-root>\\S3\\restored-empty-target",
      "--overwrite",
      "never"
    ],
    "public_password_fixture": "correct",
    "exit_code": 1,
    "stdout": "{\"message_type\":\"summary\",\"total_files\":16,\"files_restored\":15,\"total_bytes\":2330,\"bytes_restored\":2274}\n",
    "stderr": "{\"message_type\":\"error\",\"error\":{\"message\":\"decrypting blob \\u003cdata/63e9327b\\u003e from pack 80dbf9682d94a77be56dddc74adb13e1896377b9ec61cd18a100d156f0f8687a failed: ciphertext verification failed\"},\"during\":\"restore\",\"item\":\"\\\\documents\\\\records.json\"}\n{\"message_type\":\"error\",\"error\":{\"message\":\"error restoring creation time for: <lab-root>\\\\S3\\\\restored-empty-target\\\\documents\\\\records.json : The system cannot find the file specified.\\nerror restoring file attributes for: <lab-root>\\\\S3\\\\restored-empty-target\\\\documents\\\\records.json : The system cannot find the file specified.\\nerror restoring security descriptor for: <lab-root>\\\\S3\\\\restored-empty-target\\\\documents\\\\records.json : set named security info failed with: The system cannot find the file specified.\"},\"during\":\"restore\",\"item\":\"\\\\documents\\\\records.json\"}\n{\"message_type\":\"exit_error\",\"code\":1,\"message\":\"Fatal: There were 2 errors\"}\n"
  },
  {
    "case": "S4",
    "arguments": [
      "--repo",
      "<lab-root>\\S4\\repository",
      "--no-cache",
      "init",
      "--repository-version",
      "2"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "created restic repository 7f8c066eea at <lab-root>\\S4\\repository\n\nPlease note that knowledge of your password is required to access\nthe repository. Losing your password means that your data is\nirrecoverably lost.\n",
    "stderr": ""
  },
  {
    "case": "S4",
    "arguments": [
      "--repo",
      "<lab-root>\\S4\\repository",
      "--no-cache",
      "backup",
      "--json",
      "--force",
      "--host",
      "synthetic-restore-lab",
      "--tag",
      "synthetic-exclusion",
      "--exclude",
      "source/documents/contacts.csv",
      "source"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"message_type\":\"summary\",\"files_new\":11,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":11,\"tree_blobs\":6,\"data_added\":12439,\"data_added_packed\":5139,\"total_files_processed\":11,\"total_bytes_processed\":2275,\"total_duration\":0.7280935,\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"snapshot_id\":\"38b3e42413cd9eac39055836aaece0382b2b8221ab70340bc4fc66ef55ed9880\"}\n",
    "stderr": ""
  },
  {
    "case": "S4",
    "arguments": [
      "--repo",
      "<lab-root>\\S4\\repository",
      "--no-cache",
      "check"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  1 / 1 snapshots\nno errors were found\n",
    "stderr": ""
  },
  {
    "case": "S4",
    "arguments": [
      "--repo",
      "<lab-root>\\S4\\repository",
      "--no-cache",
      "check",
      "--read-data"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  1 / 1 snapshots\nread all data\n[0:00] 100.00%  2 / 2 packs\nno errors were found\n",
    "stderr": ""
  },
  {
    "case": "S4",
    "arguments": [
      "--repo",
      "<lab-root>\\S4\\repository",
      "--no-cache",
      "ls",
      "--json",
      "38b3e42413cd9eac39055836aaece0382b2b8221ab70340bc4fc66ef55ed9880"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"time\":\"<redacted-time>\",\"tree\":\"b02ac6c8d337c68da2d2da77e0a756a64c963f381c4e1c87e52794305619e2c9\",\"paths\":[\"<lab-root>\\\\S4\\\\source\"],\"hostname\":\"synthetic-restore-lab\",\"username\":\"<redacted-execution-account>\",\"excludes\":[\"source/documents/contacts.csv\"],\"tags\":[\"synthetic-exclusion\"],\"program_version\":\"restic 0.19.1\",\"summary\":{\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"files_new\":11,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":11,\"tree_blobs\":6,\"data_added\":12439,\"data_added_packed\":5139,\"total_files_processed\":11,\"total_bytes_processed\":2275},\"id\":\"38b3e42413cd9eac39055836aaece0382b2b8221ab70340bc4fc66ef55ed9880\",\"short_id\":\"38b3e424\",\"message_type\":\"snapshot\",\"struct_type\":\"snapshot\"}\n{\"name\":\"source\",\"type\":\"dir\",\"path\":\"/source\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"documents\",\"type\":\"dir\",\"path\":\"/source/documents\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"archive.zip\",\"type\":\"file\",\"path\":\"/source/documents/archive.zip\",\"uid\":0,\"gid\":0,\"size\":163,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"catalog.xml\",\"type\":\"file\",\"path\":\"/source/documents/catalog.xml\",\"uid\":0,\"gid\":0,\"size\":73,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"inventory.csv\",\"type\":\"file\",\"path\":\"/source/documents/inventory.csv\",\"uid\":0,\"gid\":0,\"size\":39,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"reading-list.xml\",\"type\":\"file\",\"path\":\"/source/documents/reading-list.xml\",\"uid\":0,\"gid\":0,\"size\":53,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records.json\",\"type\":\"file\",\"path\":\"/source/documents/records.json\",\"uid\":0,\"gid\":0,\"size\":56,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"status.json\",\"type\":\"file\",\"path\":\"/source/documents/status.json\",\"uid\":0,\"gid\":0,\"size\":50,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"media\",\"type\":\"dir\",\"path\":\"/source/media\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"tone.wav\",\"type\":\"file\",\"path\":\"/source/media/tone.wav\",\"uid\":0,\"gid\":0,\"size\":1644,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"notes\",\"type\":\"dir\",\"path\":\"/source/notes\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"instructions.txt\",\"type\":\"file\",\"path\":\"/source/notes/instructions.txt\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"letter.txt\",\"type\":\"file\",\"path\":\"/source/notes/letter.txt\",\"uid\":0,\"gid\":0,\"size\":47,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"unicode.txt\",\"type\":\"file\",\"path\":\"/source/notes/unicode.txt\",\"uid\":0,\"gid\":0,\"size\":41,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records\",\"type\":\"dir\",\"path\":\"/source/records\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"settings.toml\",\"type\":\"file\",\"path\":\"/source/records/settings.toml\",\"uid\":0,\"gid\":0,\"size\":54,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n",
    "stderr": ""
  },
  {
    "case": "S4",
    "arguments": [
      "--repo",
      "<lab-root>\\S4\\repository",
      "--no-cache",
      "restore",
      "--json",
      "38b3e42413cd9eac39055836aaece0382b2b8221ab70340bc4fc66ef55ed9880:/source",
      "--target",
      "<lab-root>\\S4\\restored-empty-target",
      "--overwrite",
      "never"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"message_type\":\"summary\",\"total_files\":15,\"files_restored\":15,\"total_bytes\":2275,\"bytes_restored\":2275}\n",
    "stderr": ""
  },
  {
    "case": "S5",
    "arguments": [
      "--repo",
      "<lab-root>\\S5\\repository",
      "--no-cache",
      "init",
      "--repository-version",
      "2"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "created restic repository 7c55761254 at <lab-root>\\S5\\repository\n\nPlease note that knowledge of your password is required to access\nthe repository. Losing your password means that your data is\nirrecoverably lost.\n",
    "stderr": ""
  },
  {
    "case": "S5",
    "arguments": [
      "--repo",
      "<lab-root>\\S5\\repository",
      "--no-cache",
      "backup",
      "--json",
      "--force",
      "--host",
      "synthetic-restore-lab",
      "--tag",
      "synthetic-old-revision",
      "source"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"message_type\":\"summary\",\"files_new\":12,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":12,\"tree_blobs\":6,\"data_added\":13117,\"data_added_packed\":5329,\"total_files_processed\":12,\"total_bytes_processed\":2331,\"total_duration\":0.7185156,\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"snapshot_id\":\"7a8881e06f301535212700dee63e9dd22daa383444cc727fe97859c6e6500e9f\"}\n",
    "stderr": ""
  },
  {
    "case": "S5",
    "arguments": [
      "--repo",
      "<lab-root>\\S5\\repository",
      "--no-cache",
      "backup",
      "--json",
      "--force",
      "--host",
      "synthetic-restore-lab",
      "--tag",
      "synthetic-current-revision",
      "source"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"message_type\":\"summary\",\"files_new\":12,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":1,\"tree_blobs\":3,\"data_added\":7690,\"data_added_packed\":2162,\"total_files_processed\":12,\"total_bytes_processed\":2330,\"total_duration\":0.718686,\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"snapshot_id\":\"39a89a2a53267c35d33b403ca642bcdd6a9d36773f83732901a81ec0d3426402\"}\n",
    "stderr": ""
  },
  {
    "case": "S5",
    "arguments": [
      "--repo",
      "<lab-root>\\S5\\repository",
      "--no-cache",
      "check"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  2 / 2 snapshots\nno errors were found\n",
    "stderr": ""
  },
  {
    "case": "S5",
    "arguments": [
      "--repo",
      "<lab-root>\\S5\\repository",
      "--no-cache",
      "check",
      "--read-data"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  2 / 2 snapshots\nread all data\n[0:00] 100.00%  4 / 4 packs\nno errors were found\n",
    "stderr": ""
  },
  {
    "case": "S5",
    "arguments": [
      "--repo",
      "<lab-root>\\S5\\repository",
      "--no-cache",
      "ls",
      "--json",
      "7a8881e06f301535212700dee63e9dd22daa383444cc727fe97859c6e6500e9f"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"time\":\"<redacted-time>\",\"tree\":\"4cd9ba239d86bf1ec3902886ec1a444acc7d89babfd89e67b39efaf952c619db\",\"paths\":[\"<lab-root>\\\\S5\\\\source\"],\"hostname\":\"synthetic-restore-lab\",\"username\":\"<redacted-execution-account>\",\"tags\":[\"synthetic-old-revision\"],\"program_version\":\"restic 0.19.1\",\"summary\":{\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"files_new\":12,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":12,\"tree_blobs\":6,\"data_added\":13117,\"data_added_packed\":5329,\"total_files_processed\":12,\"total_bytes_processed\":2331},\"id\":\"7a8881e06f301535212700dee63e9dd22daa383444cc727fe97859c6e6500e9f\",\"short_id\":\"7a8881e0\",\"message_type\":\"snapshot\",\"struct_type\":\"snapshot\"}\n{\"name\":\"source\",\"type\":\"dir\",\"path\":\"/source\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"documents\",\"type\":\"dir\",\"path\":\"/source/documents\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"archive.zip\",\"type\":\"file\",\"path\":\"/source/documents/archive.zip\",\"uid\":0,\"gid\":0,\"size\":163,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"catalog.xml\",\"type\":\"file\",\"path\":\"/source/documents/catalog.xml\",\"uid\":0,\"gid\":0,\"size\":73,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"contacts.csv\",\"type\":\"file\",\"path\":\"/source/documents/contacts.csv\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"inventory.csv\",\"type\":\"file\",\"path\":\"/source/documents/inventory.csv\",\"uid\":0,\"gid\":0,\"size\":39,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"reading-list.xml\",\"type\":\"file\",\"path\":\"/source/documents/reading-list.xml\",\"uid\":0,\"gid\":0,\"size\":53,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records.json\",\"type\":\"file\",\"path\":\"/source/documents/records.json\",\"uid\":0,\"gid\":0,\"size\":56,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"status.json\",\"type\":\"file\",\"path\":\"/source/documents/status.json\",\"uid\":0,\"gid\":0,\"size\":51,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"media\",\"type\":\"dir\",\"path\":\"/source/media\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"tone.wav\",\"type\":\"file\",\"path\":\"/source/media/tone.wav\",\"uid\":0,\"gid\":0,\"size\":1644,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"notes\",\"type\":\"dir\",\"path\":\"/source/notes\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"instructions.txt\",\"type\":\"file\",\"path\":\"/source/notes/instructions.txt\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"letter.txt\",\"type\":\"file\",\"path\":\"/source/notes/letter.txt\",\"uid\":0,\"gid\":0,\"size\":47,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"unicode.txt\",\"type\":\"file\",\"path\":\"/source/notes/unicode.txt\",\"uid\":0,\"gid\":0,\"size\":41,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records\",\"type\":\"dir\",\"path\":\"/source/records\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"settings.toml\",\"type\":\"file\",\"path\":\"/source/records/settings.toml\",\"uid\":0,\"gid\":0,\"size\":54,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n",
    "stderr": ""
  },
  {
    "case": "S5",
    "arguments": [
      "--repo",
      "<lab-root>\\S5\\repository",
      "--no-cache",
      "restore",
      "--json",
      "7a8881e06f301535212700dee63e9dd22daa383444cc727fe97859c6e6500e9f:/source",
      "--target",
      "<lab-root>\\S5\\restored-empty-target",
      "--overwrite",
      "never"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"message_type\":\"summary\",\"total_files\":16,\"files_restored\":16,\"total_bytes\":2331,\"bytes_restored\":2331}\n",
    "stderr": ""
  },
  {
    "case": "S6",
    "arguments": [
      "--repo",
      "<lab-root>\\S6\\repository",
      "--no-cache",
      "init",
      "--repository-version",
      "2"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "created restic repository be07015309 at <lab-root>\\S6\\repository\n\nPlease note that knowledge of your password is required to access\nthe repository. Losing your password means that your data is\nirrecoverably lost.\n",
    "stderr": ""
  },
  {
    "case": "S6",
    "arguments": [
      "--repo",
      "<lab-root>\\S6\\repository",
      "--no-cache",
      "backup",
      "--json",
      "--force",
      "--host",
      "synthetic-restore-lab",
      "--tag",
      "synthetic-invalid-source",
      "source"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"message_type\":\"summary\",\"files_new\":12,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":12,\"tree_blobs\":6,\"data_added\":13109,\"data_added_packed\":5337,\"total_files_processed\":12,\"total_bytes_processed\":2329,\"total_duration\":0.7248923,\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"snapshot_id\":\"32d9636036ca598b89a70e3a0ebe10945b17fad84de715124ed599c521b43393\"}\n",
    "stderr": ""
  },
  {
    "case": "S6",
    "arguments": [
      "--repo",
      "<lab-root>\\S6\\repository",
      "--no-cache",
      "check"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  1 / 1 snapshots\nno errors were found\n",
    "stderr": ""
  },
  {
    "case": "S6",
    "arguments": [
      "--repo",
      "<lab-root>\\S6\\repository",
      "--no-cache",
      "check",
      "--read-data"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "create exclusive lock for repository\nload indexes\ncheck all packs\ncheck snapshots, trees and blobs\n[0:00] 100.00%  1 / 1 snapshots\nread all data\n[0:00] 100.00%  2 / 2 packs\nno errors were found\n",
    "stderr": ""
  },
  {
    "case": "S6",
    "arguments": [
      "--repo",
      "<lab-root>\\S6\\repository",
      "--no-cache",
      "ls",
      "--json",
      "32d9636036ca598b89a70e3a0ebe10945b17fad84de715124ed599c521b43393"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"time\":\"<redacted-time>\",\"tree\":\"9078aaa3aaf3137209fbc229a7b3fad05335b3e86247c2781ed0e631f04e0494\",\"paths\":[\"<lab-root>\\\\S6\\\\source\"],\"hostname\":\"synthetic-restore-lab\",\"username\":\"<redacted-execution-account>\",\"tags\":[\"synthetic-invalid-source\"],\"program_version\":\"restic 0.19.1\",\"summary\":{\"backup_start\":\"<redacted-time>\",\"backup_end\":\"<redacted-time>\",\"files_new\":12,\"files_changed\":0,\"files_unmodified\":0,\"dirs_new\":5,\"dirs_changed\":0,\"dirs_unmodified\":0,\"data_blobs\":12,\"tree_blobs\":6,\"data_added\":13109,\"data_added_packed\":5337,\"total_files_processed\":12,\"total_bytes_processed\":2329},\"id\":\"32d9636036ca598b89a70e3a0ebe10945b17fad84de715124ed599c521b43393\",\"short_id\":\"32d96360\",\"message_type\":\"snapshot\",\"struct_type\":\"snapshot\"}\n{\"name\":\"source\",\"type\":\"dir\",\"path\":\"/source\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"documents\",\"type\":\"dir\",\"path\":\"/source/documents\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"archive.zip\",\"type\":\"file\",\"path\":\"/source/documents/archive.zip\",\"uid\":0,\"gid\":0,\"size\":163,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"catalog.xml\",\"type\":\"file\",\"path\":\"/source/documents/catalog.xml\",\"uid\":0,\"gid\":0,\"size\":73,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"contacts.csv\",\"type\":\"file\",\"path\":\"/source/documents/contacts.csv\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"inventory.csv\",\"type\":\"file\",\"path\":\"/source/documents/inventory.csv\",\"uid\":0,\"gid\":0,\"size\":39,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"reading-list.xml\",\"type\":\"file\",\"path\":\"/source/documents/reading-list.xml\",\"uid\":0,\"gid\":0,\"size\":53,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records.json\",\"type\":\"file\",\"path\":\"/source/documents/records.json\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"status.json\",\"type\":\"file\",\"path\":\"/source/documents/status.json\",\"uid\":0,\"gid\":0,\"size\":50,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"media\",\"type\":\"dir\",\"path\":\"/source/media\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"tone.wav\",\"type\":\"file\",\"path\":\"/source/media/tone.wav\",\"uid\":0,\"gid\":0,\"size\":1644,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"notes\",\"type\":\"dir\",\"path\":\"/source/notes\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"instructions.txt\",\"type\":\"file\",\"path\":\"/source/notes/instructions.txt\",\"uid\":0,\"gid\":0,\"size\":55,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"letter.txt\",\"type\":\"file\",\"path\":\"/source/notes/letter.txt\",\"uid\":0,\"gid\":0,\"size\":47,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"unicode.txt\",\"type\":\"file\",\"path\":\"/source/notes/unicode.txt\",\"uid\":0,\"gid\":0,\"size\":41,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"records\",\"type\":\"dir\",\"path\":\"/source/records\",\"uid\":0,\"gid\":0,\"mode\":2147484159,\"permissions\":\"drwxrwxrwx\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n{\"name\":\"settings.toml\",\"type\":\"file\",\"path\":\"/source/records/settings.toml\",\"uid\":0,\"gid\":0,\"size\":54,\"mode\":438,\"permissions\":\"-rw-rw-rw-\",\"mtime\":\"<redacted-time>\",\"atime\":\"<redacted-time>\",\"ctime\":\"<redacted-time>\",\"message_type\":\"node\",\"struct_type\":\"node\"}\n",
    "stderr": ""
  },
  {
    "case": "S6",
    "arguments": [
      "--repo",
      "<lab-root>\\S6\\repository",
      "--no-cache",
      "restore",
      "--json",
      "32d9636036ca598b89a70e3a0ebe10945b17fad84de715124ed599c521b43393:/source",
      "--target",
      "<lab-root>\\S6\\restored-empty-target",
      "--overwrite",
      "never"
    ],
    "public_password_fixture": "correct",
    "exit_code": 0,
    "stdout": "{\"message_type\":\"summary\",\"total_files\":16,\"files_restored\":16,\"total_bytes\":2329,\"bytes_restored\":2329}\n",
    "stderr": ""
  }
]
