Additional Commands Regarding Datasets, Documents & Backup¶
Listing Stored Documents and Datasets¶
List datasets¶
To list the datasets that has been created, stored and are ready to use, use the following command:
d3x fm docs show datasets
List docs within a dataset¶
To list the documents from which a particular dataset has been created, use the following command:
d3x fm docs show docs -d $dataset$
d3x fm docs show docs -d contracts
Backing up, Restoring & Deleting Datasets & Documents¶
Creating backup¶
d3x fm docs backup create -d $dataset name$ -i $backup id$ -b $filesystem/s3$
d3x fm docs backup create -d contracts -i bkp01 -b s3
Restoring Data from a Backup¶
To restore data from the backup(s), use the command:
d3x fm docs backup restore -i $backup id$ -b $filesystem/s3$
d3x fm docs backup restore -i bkp01 -b s3
Deletion of The Dataset¶
To delete the dataset, use the command:
d3x fm delete dataset -d $dataset name$
d3x fm delete dataset -d contracts
Deletion of Documents in a Dataset¶
To delete the documents in the dataset, use the command:
d3x fm delete docs -s $source path$ -d $dataset name$
d3x fm delete docs -s ./Contracts -d contracts