Rake tasks for creating and deleting groups on Shares

Rake tasks are scripts that allow you to retrieve, delete or update information on your Shares server using the command line. Rake tasks can perform actions on user accounts, shares and nodes. This article describes the rake tasks available for creating and deleting user groups in Shares. For more general information on Shares rake tasks see this article (Shares rake tasks).

Creating a group

The syntax for this rake task is the following:

Rake tasks must be run from within the appropriate location in the shares folder:
  • Linux Shares 1.8 and later: /opt/aspera/shares/u/shares/bin
  • Linux Shares earlier than 1.8: /opt/aspera/shares/u/shares
  • Windows: C:\Shares\www
Windows
rake data:group:create -- [options]

Shares 1.8+
./run rake data:group:create -- [options]

Shares earlier than 1.8
bundle exec rake data:group:create -- [options]

 

The available options are the following:

option description                                                                                      
--group_name
The name of the group (required).

 

Example

To create a new group named ProjectUsers, you would use the following:

rake data:group:create -- --group_name ProjectUsers

 

Deleting a group

The syntax for this rake task is the following:

Rake tasks must be run from within the appropriate location in the shares folder:
  • Linux Shares 1.8 and later: /opt/aspera/shares/u/shares/bin
  • Linux Shares earlier than 1.8: /opt/aspera/shares/u/shares
  • Windows: C:\Shares\www
Windows
rake data:group:delete -- [options]

Shares 1.8+
./run rake data:group:delete -- [options]

Shares earlier than 1.8
bundle exec rake data:group:delete -- [options]

 

The available options are the following:

option description                                                                                      
--group_name
The name of the group (required).

 

Example

To create a new group named ProjectUsers, you would use the following:

rake data:group:delete -- --group_name ProjectUsers
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk