add-local-storage
Allows local storage to be added to an S-Filer Portal server.
Syntax:
shell
sfiler-cli [options] add-local-storage [command options]
Command options | Required / Optional | Description |
---|---|---|
-n | Required | The Local storage name. |
-d | Optional | The Local storage description. |
-pd | Required | The Local storage path to the directory. |
-et | Optional | True or False: The Local storage enable trash folder. Default: False. |
-pt | Optional | The Local storage path to the trash folder. |
-es | Optional | True or False: The Local storage enable secure delete. Default: False. |
Example:
This command is used to add new local storage.
shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" add-local-storage -n "My Local Storage" -d "Description of my local storage" -pd "/var/sfiler/local-storage" -et true -pt "/var/sfiler/local-storage-trash" -es true
To validate the presence of local storage, you can use the list-storages
command.
shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" list-storages