diff --git a/README.md b/README.md index b4a8ffcaf515631a96405bdec6b1aa94d016055e..067bfb1245370dd14ee2864e5a071ae7145f00ad 100644 --- a/README.md +++ b/README.md @@ -131,11 +131,11 @@ In container: ``` mkdir snapshot -mongodump --username=<user> --archive=snapshot/listings.<date>.gz --db=mpc --collection=listings --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip -mongodump --username=<user> --archive=snapshot/markets.<date>.gz --db=mpc --collection=markets --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip -mongodump --username=<user> --archive=snapshot/categories.<date>.gz --db=mpc --collection=categories --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip -mongodump --username=<user> --archive=snapshot/catalogs.<date>.gz --db=mpc --collection=catalogs --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip -mongodump --username=<user> --archive=snapshot/listing_versions.<date>.gz --db=mpc --collection=listing_versions --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip +mongodump --username=<user> --archive=snapshot/listings_<date>.gz --db=mpc --collection=listings --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip +mongodump --username=<user> --archive=snapshot/markets_<date>.gz --db=mpc --collection=markets --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip +mongodump --username=<user> --archive=snapshot/categories_<date>.gz --db=mpc --collection=categories --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip +mongodump --username=<user> --archive=snapshot/catalogs_<date>.gz --db=mpc --collection=catalogs --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip +mongodump --username=<user> --archive=snapshot/listing_versions_<date>.gz --db=mpc --collection=listing_versions --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --gzip ``` If using Docker to host: @@ -153,11 +153,11 @@ From host machine to Docker: In container: ``` -mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/listings.<date>.gz -mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/markets.<date>.gz -mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/catalogs.<date>.gz -mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/categories.<date>.gz -mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/listing_versions.<date>.gz +mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/listings_<date>.gz +mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/markets_<date>.gz +mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/catalogs_<date>.gz +mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/categories_<date>.gz +mongorestore --username=<user> --authenticationDatabase admin --authenticationMechanism SCRAM-SHA-256 --nsInclude=mpc.* --gzip --archive=snapshot/listing_versions_<date>.gz ``` diff --git a/snapshot/README.md b/snapshot/README.md new file mode 100644 index 0000000000000000000000000000000000000000..dc6d8c4e256ecdd8f20f20e7d7f8e1d854baa6fc --- /dev/null +++ b/snapshot/README.md @@ -0,0 +1,10 @@ +# Marketplace API Snapshot data + +## What this is + +An anonymized sample of data pulled from production to accelerate development of fixes and integrations. This should be updated any time there is a shift in the base data structure, with a date stamp to reflect when the data was pulled. These files can be used out of the box with the Restore from backup instructions to simplify starting a local instance of this API. Any time this data is updated, it should be done using the gzip compression flag to reduce the amount of data that needs to transfer over the wire. + +## What this isn't + +- A viable backup of production data +- A place to find data with personal information (i.e. user names, IDs) \ No newline at end of file diff --git a/snapshot/catalogs_2019-12-18.gz b/snapshot/catalogs_2019-12-18.gz new file mode 100644 index 0000000000000000000000000000000000000000..c244835332054776ac5315e4630c6811639ef19d Binary files /dev/null and b/snapshot/catalogs_2019-12-18.gz differ diff --git a/snapshot/categories_2019-12-18.gz b/snapshot/categories_2019-12-18.gz new file mode 100644 index 0000000000000000000000000000000000000000..1ff859730e0ba0997a132d2521c1105e973dffbc Binary files /dev/null and b/snapshot/categories_2019-12-18.gz differ diff --git a/snapshot/listing_versions_2019-12-18.gz b/snapshot/listing_versions_2019-12-18.gz new file mode 100644 index 0000000000000000000000000000000000000000..6fc71cd28a9cb276145f8db3fc6ae7bbe91c572f Binary files /dev/null and b/snapshot/listing_versions_2019-12-18.gz differ diff --git a/snapshot/listings_2019-12-18.gz b/snapshot/listings_2019-12-18.gz new file mode 100644 index 0000000000000000000000000000000000000000..c3e426ceb7233ad0f33709d46e5525d09e31d229 Binary files /dev/null and b/snapshot/listings_2019-12-18.gz differ diff --git a/snapshot/markets_2019-12-18.gz b/snapshot/markets_2019-12-18.gz new file mode 100644 index 0000000000000000000000000000000000000000..369c1cb3a9d0b575576764a1c2053d8bd77a1186 Binary files /dev/null and b/snapshot/markets_2019-12-18.gz differ