Skip to content

Instantly share code, notes, and snippets.

@HugoKuo
Created September 27, 2018 13:24
Show Gist options
  • Save HugoKuo/fcaf78946f4234e83526c4e3d1e16fe8 to your computer and use it in GitHub Desktop.
Save HugoKuo/fcaf78946f4234e83526c4e3d1e16fe8 to your computer and use it in GitHub Desktop.
(swiftcli)HugotekiMacBook-Air:data hugo$ aws s3 mb s3://container
make_bucket: container
(swiftcli)HugotekiMacBook-Air:data hugo$ swift list -l
0 0 2018-09-27 08:32:22 awscli-container
0 0 2018-09-27 08:33:26 awscli-container2
0 0 2018-09-27 08:40:02 container
6 3405 2018-09-26 08:46:15 upload-via-swiftcli
4 10485760 2018-09-26 08:47:09 upload-via-swiftcli_segments
10 10489165
(swiftcli)HugotekiMacBook-Air:data hugo$ aws s3 cp files/32MiB.obj-1 s3://container/
upload: files/32MiB.obj-1 to s3://container/32MiB.obj-1
(swiftcli)HugotekiMacBook-Air:1space-test hugo$ swift list -l
0 0 2018-09-27 08:32:22 awscli-container
0 0 2018-09-27 08:33:26 awscli-container2
0 0 2018-09-27 08:40:02 container
0 0 2018-09-27 08:42:51 container+segments
6 3405 2018-09-26 08:46:15 upload-via-swiftcli
4 10485760 2018-09-26 08:47:09 upload-via-swiftcli_segments
10 10489165
(swiftcli)HugotekiMacBook-Air:1space-test hugo$ swift stat container
Account: AUTH_demo
Container: container
Objects: 1
Bytes: 996
Read ACL:
Write ACL:
Sync To:
Sync Key:
Accept-Ranges: bytes
X-Storage-Policy: Standard-Replica
Last-Modified: Thu, 27 Sep 2018 08:40:03 GMT
X-Timestamp: 1538037602.15747
X-Trans-Id: txbdfb24174eec4b80b56f4-005bac983c
Content-Type: application/json; charset=utf-8
X-Openstack-Request-Id: txbdfb24174eec4b80b56f4-005bac983c
(swiftcli)HugotekiMacBook-Air:1space-test hugo$ swift list container
32MiB.obj-1
(swiftcli)HugotekiMacBook-Air:1space-test hugo$ swift list container+segments
32MiB.obj-1/ODJlZjA5ZDctYTcxZC00NGM2LWIxYTQtNmNlZjQ2ZDg4Mjkw/1
32MiB.obj-1/ODJlZjA5ZDctYTcxZC00NGM2LWIxYTQtNmNlZjQ2ZDg4Mjkw/2
32MiB.obj-1/ODJlZjA5ZDctYTcxZC00NGM2LWIxYTQtNmNlZjQ2ZDg4Mjkw/3
32MiB.obj-1/ODJlZjA5ZDctYTcxZC00NGM2LWIxYTQtNmNlZjQ2ZDg4Mjkw/4
<wait for 5mins>
(swiftcli)HugotekiMacBook-Air:1space-test hugo$ swift list -l
0 0 2018-09-27 08:32:22 awscli-container
0 0 2018-09-27 08:33:26 awscli-container2
1 996 2018-09-27 08:40:02 container
4 33554432 2018-09-27 08:42:51 container+segments
6 3405 2018-09-26 08:46:15 upload-via-swiftcli
4 10485760 2018-09-26 08:47:09 upload-via-swiftcli_segments
15 44044593
<< QUESTION >>
customer mentioned these settings but you can't edit these for sync mode tho.
```
Retain local copy "on"
Replicate objects after (days) "0"
Restore on GET "off"
Use Metadata "off"
```
<< END QUESTION >>
* Creating Profile
* Creating Mappings
(swiftcli)HugotekiMacBook-Air:1space-test hugo$ swift stat -v | grep Account ; swift list -l
Account: AUTH_destination
1 996 2018-09-27 12:42:01 container
4 33554432 2018-09-27 12:42:51 container+segments
4 33554432 2018-09-27 12:58:05 container_segments
6 3377 2018-09-27 12:41:23 upload-via-swiftcli
4 10485760 2018-09-27 12:42:31 upload-via-swiftcli_segments
19 77598997
(swiftcli)HugotekiMacBook-Air:1space-test hugo$ swift stat -v | grep Account ; swift list -l
Account: AUTH_demo
0 0 2018-09-27 08:32:22 awscli-container
0 0 2018-09-27 08:33:26 awscli-container2
1 996 2018-09-27 08:40:02 container
4 33554432 2018-09-27 08:42:51 container+segments
6 3405 2018-09-26 08:46:15 upload-via-swiftcli
4 10485760 2018-09-26 08:47:09 upload-via-swiftcli_segments
15 44044593
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment