Heeft deze informatie u geholpen?
Hoe kunnen we dit artikel nog verbeteren?
Use Rclone to connect with Lyve Cloud Object Storage and manage your files from the command line or mount the cloud storage as a drive.
You will need the access key and secret key for each account you’ll be using to connect with Rclone.
To configure a remote connection with Rclone:
n
for a new remote.No remotes found - make a new one n) New remote s) Set configuration password q) Quit config n/s/q> n
name> <Name>
Type the storage to configure. Choose a number from below, or type in your own value 1 /Fichier \(fichier) 2 /Akamai NetStorage \(netstorage) 3 / Alias for an existing remote \ (alias) 4 / Amazon Drive \ (amazon cloud drive) 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS \ (s3) 6 / Backblaze B2 \ (b2) [snip] 46 / seafilehttp Connection \ (seafile) Storage> 5
Choose the S3 provider. Choose a number from below, or type in your own value Press Enter for the default ("") 1 / Amazon Web Services (AWS) S3 \ (AWS) 2 / Alibaba Cloud Object Storage System (OSS) formerly Aliyun \ (Alibaba) 3 / Ceph Object Storage \ (Ceph) 4 / Digital Ocean Spaces \ (DigitalOcean) 5 / Dreamhost DreamObjects \ (Dreamhost) 6 / IBM COS S3 \ (IBMCOS) 7 / Seagate Lyve Cloud \ (LyveCloud) 8 / Minio Object Storage \ (Minio) 9 / Netease Object Storage (NOS) \ (Netease) 10 / RackCorp Object Storage \ (RackCorp) 11 / Scaleway Object Storage \ (Scaleway) 12 / SeaweedFS S3 \ (SeaweedFS) 13 / StackPath Object Storage \ (StackPath) 14 / Storj (S3 Compatible Gateway) \ (Storj) 15 / Tencent Cloud Object Storage (COS) \ (TencentCOS) 16 / Wasabi Object Storage \ (Wasabi) 17 / Any other S3 compatible provider \ (Other) Provider>7
Get AWS credentials from the runtime (environment variables or EC2/ECS meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.Enter a boolean value (true or false). Please Enter for the default ("false").Choose a number from below, or type in your own value 1 / Enter AWS credentials in the next step \ "false" 2 / Get AWS credentials from the environment (env vars or IAM) \ "true" env_auth>false
AWS Access Key ID. Leave blank for anonymous access or runtime credentials. Enter a string value. Press Enter for the default ("") access_key_id> <access key> AWS Secret Access Key (password) Leave blank for anonymous access or runtime credentials. Enter a string value. Press Enter for the default ("") secret_access_key> <secret key>
Region to connect to. Leave blank if you are using an S3 clone and you don't have a region. Enter a string value. Press Enter for the default ("") Choose a number from below, or type in your own value 1 / Use this if unsure. | Will use v4 signatures and an empty region. \ () 2 / Use this only if v4 signatures don't work. | E.g. pre Jewel/v10 CEPH. \ "other-v2-signature" region> <>
Endpoint for S3 API. Required when using an S3 clone. Choose a number from below, or type in your own value. Press Enter to leave empty. 1 / Seagate Lyve Cloud US East 1 (Virginia) \ (s3.us-east-1.lyvecloud.seagate.com) 2 / Seagate Lyve Cloud US West 1 (California) \ (s3.us-west-1.lyvecloud.seagate.com) 3 / Seagate Lyve Cloud AP Southeast 1 (Singapore) \ (s3.ap-southeast-1.lyvecloud.seagate.com) endpoint> 1
Location constraint - must be set to match the Region. Leave blank if not sure. Used when creating buckets only. Enter a string value. Press Enter for the default ("")location constraint>
Canned ACL used when creating and or storing or copying objects. This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too. Note that this ACL is applied when server-side copying objects as S3 It doesn't copy the ACL from the source but rather writes a fresh one. Enter a string value. Press Enter for the default ("") Choose a number from below, or type in your own value 1 / Owner gets FULL_CONTROL. | No one else has access rights (default). \(private) 2 / Owner gets FULL_CONTROL. | The ALLUsers group gets READ access. \(public-read) 3 /Owner gets FULL_CONTROL. | The ALLUsers group gets READ and WRITE access. [snip] acl>1
Edit advanced config? (y/n) y) Yes n) No (default) y/n>n
NAME] type = s3 Provider = LyveCloud env_auth = false access_key_id = xxx secret_access_key = yyy region = us-west-1 endpoint = s3.us-east-1.lyvecloud.seagate.com acl = private
y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d>y
Current remotes: Name Type ==== ==== ashrcl s3 e) Edit existing remote n) New remote d) Delete remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config e/n/d/r/c/s/q>q
Prior to mounting Lyve Cloud Object Storage as a drive, connect and test the connection by viewing the contents of one or more buckets using the rclone ls command.
To mount Lyve Cloud Object Storage as a drive, use this command where:
rclone mount remote:path/to/files /path/to/local/mount
For more information, see Rclone’s mount command documentation.
Here are several of the more commonly-needed commands for viewing and managing your data from the command line. See the Rclone docs, including information on global flags, for additional information.
There are three list commands with easily readable output available: ls, lsd, and lsl.
rclone ls remote:path [flags]
rclone lsd remote:path [flags]
Or
rclone lsd remote: [flags]
rclone lsl remote:path [flags]
Seagate on Vimeo: Lyve Cloud - How to use Rclone list commands
rclone copy C:/path/to/filename remote:path [flags] rclone copy filename remote:path
Seagate on Vimeo: Lyve Cloud - How to use Rclone Copy-to and Copy-sync Commands.
This is the same as copying, but the source path is something in the remote or in a bucket, while the destination path is on your local storage.
rclone copy remote:path C:/path/to/filename [flags]
To delete files in a certain path from a certain bucket:
rclone delete remote:path [flags]
You can use flags to delete only files with certain characteristics:
For example, to delete files that are over 100MB:
rclone --min-size 100MB delete remote:path
To delete only a specific file:
rclone deletefile remote:path [flags]
Learn more about rclone delete and deletefile.
To create a new folder, for example, a file named 'blue' in the current location:
rclone mkdir blue
Create folders in other paths, or with other permissions, by setting the proper flags. Learn more about mkdir.
To delete an empty folder, for example, a file named 'blue' in the current location:
rclone rmdir blue
Add flags to delete folders in locations other than the current directory, for example, an empty folder named 'blue' that contains other empty folders:
rclone rmdirs blue
The folders must be empty for rmdir
or rmdirs
to work.
Learn more about rmdir and rmdirs.
To copy data:
[REMOTE NAME]type = s3provider = Otherenv_auth = falseaccess_key_id = XXXXXXXXXXsecret_access_key = YYYYYYYYYYYYYYYYYYYYYYYYYYYendpoint = https://s3.us-east-1.lyvecloud.seagate.comacl = privateregion = us-east-1
$ rclone copy SOURCE REMOTE:[SOURCE BUCKET] <TARGET REMOTE>[TARGET BUCKET>/<PREFIX>]
$ rclone copy SRT:[ SB ] TRT:[TB]
$ rclone copy SRT:[ SB ]/mypath1 TRT:[TB]/mypath1
To delete a remote from Lyve Cloud, delete the remote’s name using this command, changing REMOTE_NAME to the name of the remote to disconnect:
rclone config delete REMOTE_NAME [flags]
Learn more about config delete
.
To migrate data:
rclone sync <source remote name>:path <target remote name>:path
--progress
Displays the real-time transfer progress.--interactive
: Enables interactive mode and displays interactive for every action taken.For more information on RClone, see https://rclone.org/s3/.
Seagate on Vimeo: Lyve Cloud - Use Rclone Delete and Purge commands.