mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-22 21:11:30 +02:00
Fixes #1565 Examples: ``` $ osctl list -l MODE SIZE(B) LASTMOD NAME drwxr-xr-x 4096 Dec 17 16:37:19 . -rwxr-xr-x 0 Dec 17 16:37:19 .dockerenv drwxr-xr-x 4096 Dec 17 16:35:20 bin drwxr-xr-x 4096 Dec 17 16:37:20 boot drwxr-xr-x 5480 Dec 17 16:37:19 dev drwxr-xr-x 4096 Dec 17 16:37:19 etc drwxr-xr-x 4096 Dec 17 16:35:19 lib drwxr-xr-x 4096 Dec 17 16:35:21 mnt drwxr-xr-x 4096 Dec 17 16:39:17 opt dr-xr-xr-x 0 Dec 17 16:37:19 proc drwxr-x--- 4096 Dec 5 06:39:44 root drwxr-xr-x 4096 Dec 17 16:39:06 run drwxr-xr-x 4096 Dec 17 16:35:20 sbin dr-xr-xr-x 0 Dec 17 16:37:19 sys dtrwxrwxrwx 4096 Dec 17 16:38:05 tmp drwxr-xr-x 4096 Dec 17 16:35:21 usr drwxr-xr-x 4096 Dec 17 16:37:19 var ``` ``` $ osctl list -lH MODE SIZE(B) LASTMOD NAME drwxr-xr-x 4.1 kB 18 minutes ago . -rwxr-xr-x 0 B 18 minutes ago .dockerenv drwxr-xr-x 4.1 kB 20 minutes ago bin drwxr-xr-x 4.1 kB 18 minutes ago boot drwxr-xr-x 5.5 kB 18 minutes ago dev drwxr-xr-x 4.1 kB 18 minutes ago etc drwxr-xr-x 4.1 kB 20 minutes ago lib drwxr-xr-x 4.1 kB 20 minutes ago mnt drwxr-xr-x 4.1 kB 16 minutes ago opt dr-xr-xr-x 0 B 18 minutes ago proc drwxr-x--- 4.1 kB 1 week ago root drwxr-xr-x 4.1 kB 16 minutes ago run drwxr-xr-x 4.1 kB 20 minutes ago sbin dr-xr-xr-x 0 B 18 minutes ago sys dtrwxrwxrwx 4.1 kB 17 minutes ago tmp drwxr-xr-x 4.1 kB 20 minutes ago usr drwxr-xr-x 4.1 kB 18 minutes ago var ``` Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
40 lines
1.1 KiB
Markdown
40 lines
1.1 KiB
Markdown
<!-- markdownlint-disable -->
|
|
## osctl copy
|
|
|
|
Copy data out from the node
|
|
|
|
### Synopsis
|
|
|
|
Creates an .tar.gz archive at the node starting at <src-path> and
|
|
streams it back to the client.
|
|
|
|
If '-' is given for <local-path>, archive is written to stdout.
|
|
Otherwise archive is extracted to <local-path> which should be an empty directory or
|
|
osctl creates a directory if <local-path> doesn't exist. Command doesn't preserve
|
|
ownership and access mode for the files in extract mode, while streamed .tar archive
|
|
captures ownership and permission bits.
|
|
|
|
```
|
|
osctl copy <src-path> -|<local-path> [flags]
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
-h, --help help for copy
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--context string Context to be used in command
|
|
-e, --endpoints strings override default endpoints in Talos configuration
|
|
-n, --nodes strings target the specified nodes
|
|
--talosconfig string The path to the Talos configuration file (default "/home/user/.talos/config")
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [osctl](osctl.md) - A CLI for out-of-band management of Kubernetes nodes created by Talos
|
|
|