|
| 1 | +--- |
| 2 | +myst: |
| 3 | + html_meta: |
| 4 | + description: Learn how to manage objects in Hypernode Object Storage |
| 5 | + title: Hypernode Object Storage | Managing Objects |
| 6 | +--- |
| 7 | + |
| 8 | +# Managing Objects |
| 9 | + |
| 10 | +You can manage your objects using the `hypernode-object-storage objects` subcommand. |
| 11 | +It supports all common operations--listing, copying, moving, and deleting files--while also allowing you to sync files in the background and monitor the progress of an ongoing sync. |
| 12 | + |
| 13 | +```console |
| 14 | +app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects --help |
| 15 | +usage: hypernode-object-storage objects [-h] {sync,cp,ls,mv,rm,show} ... |
| 16 | + |
| 17 | +Manage objects in object storage |
| 18 | + |
| 19 | +positional arguments: |
| 20 | + {sync,cp,ls,mv,rm,show} |
| 21 | + sync Synchronize files between a local directory and an object storage location |
| 22 | + cp Copy a file or object from one location to another |
| 23 | + ls List objects in an S3 bucket or folder |
| 24 | + mv Move or rename a file or object |
| 25 | + rm Delete an object from S3 |
| 26 | + show Display the current status of an ongoing sync process |
| 27 | + |
| 28 | +options: |
| 29 | + -h, --help show this help message and exit |
| 30 | +``` |
| 31 | + |
| 32 | +It is important to note that `hypernode-object-storage objects` supports all optional flags available in `aws s3`, allowing you to customize its behavior for advanced configurations. |
| 33 | + |
| 34 | +## Syncing files and monitoring progress |
| 35 | + |
| 36 | +Syncing files between your local directory and object storage is simple. Run the following command: |
| 37 | + |
| 38 | +```console |
| 39 | +app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects sync /example/local/path/ s3://example/bucket/uri/ |
| 40 | +Syncing objects from /example/local/path/ to s3://example/bucket/uri/... |
| 41 | +Sync process started with PID 1234 in the background. |
| 42 | +``` |
| 43 | + |
| 44 | +The `sync` operation runs in the background, and you can monitor its progress by using the `show` command, for example: |
| 45 | + |
| 46 | +```console |
| 47 | +app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects show 1234 |
| 48 | +Completed 9.7 GiB/~30.0 GiB (118.2 MiB/s) with ~5 file(s) remaining (calculating...) |
| 49 | +``` |
| 50 | + |
| 51 | +If you run the `show` command after the sync operation has finished, you’ll see output like this: |
| 52 | + |
| 53 | +```console |
| 54 | +app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects show 1234 |
| 55 | +Process 1234 does not exist anymore |
| 56 | +``` |
0 commit comments