incus storage volume file push¶
Push files into custom volumes
Synopsis¶
Description
Push files into custom volumes
incus storage volume file push <path> [<remote>:]<pool> <volume>/<target path> [flags]
Examples¶
incus storage volume file push /etc/hosts local v1/etc/hosts
To push /etc/hosts into the custom volume "v1".
echo "Hello world" | incus storage volume file push - local v1/test
To read "Hello world" from standard input and write it into test in volume "v1".
Options¶
-a, --archive[=true|false] Preserve ownership, timestamps and mode (implies --recursive)
-p, --create-dirs[=true|false] Create any directories necessary
-L, --dereference[=true|false] Always follow symbolic links in source path
-H, --follow[=true|false] Follow command-line symbolic links in source path
--gid Set the file's gid on push (default -1)
--mode Set the file's perms on push
-P, --no-dereference[=true|false] Never follow symbolic links in source path
-r, --recursive[=true|false] Recursively transfer files
--uid Set the file's uid on push (default -1)
Options inherited from parent commands¶
--debug[=true|false] Show all debug messages
--explain[=true|false] If the command is valid, explain its parsed arguments instead of running it
--force-local[=true|false] Force using the local unix socket
-h, --help[=true|false] Print help
--project Override the source project
-q, --quiet[=true|false] Don't show progress information
--sub-commands[=true|false] Use with help or --help to view sub-commands
-v, --verbose[=true|false] Show all information messages
--version[=true|false] Print version number
SEE ALSO¶
incus storage volume file - Manage files in custom volumes