Skip to content

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 optionsRequired / OptionalDescription
-nRequiredThe Local storage name.
-dOptionalThe Local storage description.
-pdRequiredThe Local storage path to the directory.
-etOptionalTrue or False: The Local storage enable trash folder. Default: False.
-ptOptionalThe Local storage path to the trash folder.
-esOptionalTrue 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