incus storage volume file create - Incus documentation
Description: Create files and directories in custom vollume Synopsis: Description:, Create files and directories in custom volume,,,, Examples: Options: Options inherited from parent commands: SEE ALSO: incus s...

Skip to content
Back to top
View this page

# `incus storage volume file create`

Create files and directories in custom vollume

## Synopsis

Description:
Create files and directories in custom volume

    incus storage volume file create [<remote>:]<pool> <volume>/<path> [<symlink target path>] [flags]

## Examples

      incus storage volume file create foo bar/baz
         To create a file baz in the bar volume on the foo pool.

      incus file create --type=symlink foo bar/baz qux
         To create a symlink qux in bar storage volume on the foo pool whose target is baz.

## Options

      -p, --create-dirs   Create any directories necessary
      -f, --force         Force creating files or directories
          --gid           Set the file's gid on create (default -1)
          --mode          Set the file's perms on create
      -t, --type          The type to create (file, symlink, or directory) (default "file")
          --uid           Set the file's uid on create (default -1)

## Options inherited from parent commands

          --debug          Show all debug messages
          --explain        If the command is valid, explain its parsed arguments instead of running it
          --force-local    Force using the local unix socket
      -h, --help           Print help
          --project        Override the source project
      -q, --quiet          Don't show progress information
          --sub-commands   Use with help or --help to view sub-commands
      -v, --verbose        Show all information messages
          --version        Print version number

## SEE ALSO

- incus storage volume file - Manage files in custom volumes