Configure a Share With Rake Tasks

Rake tasks can be used to configure and manage IBM Aspera Shares users, groups, shares, and nodes from the command line. Rake tasks must be run from the Shares shell, as described in the following steps:
  1. Go to the shares folder:
    #cd /opt/aspera/shares/u/shares/bin
  2. Test that your rake tasks are working correctly.
    ./run rake -T

The following rake tasks create, modify, and delete a share, as well as manage a user or group's share permissions.

Tip: Square brackets in usage statements denote optional arguments and need not be included when running the commands.

Create Share

./run rake data:share:create -- --node_name node_name --share_name share_name --directory directory

For example:

./run rake data:share:create -- --node_name aspera --share_name share1 --directory /mnt

Delete Share

./run rake data:share:delete -- --share_name share_name

For example:

./run rake data:share:delete -- --share_name share1

Modify Share

Note: Uses the same syntax as create share. Change the values as needed to modify the attributes of the specified share.
./run rake data:share:create -- --node_name node_name --share_name share_name --directory directory

For example:

./run rake data:share:create -- --node_name aspera --share_name share1 --directory /mnt

Manage User's Share Permissions

./run rake data:user:share_permissions -- --username username --share_name share_name 
  [--permission true/false --permission true/false ...]

Where valid permissions are:

For example:

./run rake data:user:share_permissions -- --username users --share_name share1 
--upload_permission true  --mkdir_permission true

Manage Group's Share Permissions

./run rake data:group:share_permissions -- --group_name group_name --share_name share_name 
  [--permission true/false --permission true/false ...]

Where valid permissions are:

For example:

./run rake data:group:share_permissions -- --group_name group1 --share_name share1 
  --upload_permission true  --mkdir_permission true

Export Share Name and Associated Directory

./run rake data:share:export -- --path path/to/file

For example:

./run rake data:share:export -- --path /tmp/share_export.txt