Package: testqsctl1
### Qingstor command line tool-------------------Qsctl(Qingstor command line tool) provides more powerful unix-like commands. Youcan manage Qingstor resources just like files on local machine. Unix-like commandscontains: cp, ls, mb, mv, rm, rb and sync. All of the them support batch processing.- InstallationInstall via pip```$ pip install qsctl```If not installed in virtualenv, maybe sudo is needed```$ sudo pip install qsctl```- Getting StartedTo use qsctl, there must be a configuration file to configure your own``qy_access_key_id`` , ``qy_secret_access_key`` and ``zone`` , such as::```qy_access_key_id: 'QINGCLOUDACCESSKEYID'qy_secret_access_key: 'QINGCLOUDSECRETACCESSKEYEXAMPLE'zone: 'pek3a'```The configuration file is saved in ``~/.qingcloud/config.yaml`` by default, it alsocan be assigned by the parameter ``-f /path/to/config`` when executing thecommand.- Usages```cp - Copy local file(s) to qs object or qs object(s) to local.local-path qs-uri or qs-uri local-path-r, --recursive--include <value>--exclude <value>ls - List qs objects under a prefix or list all qs buckets.qs-uri or NONE-r, --recursive--page-size <value>--zone <value>mb - Create an qs bucket.qs-uri--zone <value>mv - Move local file(s) to qs or qs object(s) to local.local-path qs-uri or qs-uri local-path-r, --recursive--include <value>--exclude <value>rb - Delete an empty qs bucket or forcely delete nonempty qs bucketqs-uri--forcerm - Delete a qs object or more.qs-uri-r, --recursive--include <value>--exclude <value>sync - sync directories and qs prefixes.local-path qs-uri or qs-uri local-path--delete--include <value>--exclude <value>```- Examples- ls command```$ qsctl lsmybucket1mybucket2$ qsctl ls qs://mybucket1Folder                             test/2016-04-03 11:16:04     4 Bytes    test.txt2016-04-03 11:16:04     4 Bytes    temp.txt2016-04-03 11:16:04     4 Bytes    temp1.txt$ qsctl ls qs://mybucket1 -r2016-04-03 17:51:18     1.4 KiB    test/test/standard2016-04-03 11:16:04     4 Bytes    test.txt2016-04-03 11:16:04     4 Bytes    temp.txt2016-04-03 11:16:04     4 Bytes    temp1.txt```- cp command```$ qsctl cp qs://mybucket1/test.txt test.txtFile 'test.txt' written$ qsctl cp qs://mybucket1 test/ -rFile 'test/test.txt' writtenFile 'test/temp.txt' writtenFile 'test/temp1.txt' writtenFile 'test/test/test/standard' written$ qsctl cp qs://mybucket1 test/ -r --exclude "*.txt"File 'test/test/test/standard' written$ qsctl cp qs://mybucket1 test/ -r --exclude "*" --include "*.txt"File 'test/t.txt' writtenFile 'test/temp.txt' writtenFile 'test/temp1.txt' written```- mv command```$ qsctl mv qs://mybucket1/test.txt test.txtFile 'test.txt' writtenObject <test.txt> deleted$ qsctl mv qs://mybucket1 test/ -rFile 'test/test.txt' writtenFile 'test/temp.txt' writtenFile 'test/temp1.txt' writtenFile 'test/test/test/standard' writtenObject <test.txt> deletedObject <temp.txt> deletedObject <temp1.txt> deletedObject <test/test/standard> deleted$ qsctl mv qs://mybucket1 test/ -r --exclude "*.txt"File 'test/test/test/standard' writtenObject <test/test/standard> deleted$ qsctl mv qs://mybucket1 test/ -r --exclude "*" --include "*.txt"File 'test/t.txt' writtenFile 'test/temp.txt' writtenFile 'test/temp1.txt' writtenObject <test.txt> deletedObject <temp.txt> deletedObject <temp1.txt> deleted```- mb command```$ qsctl mb qs://mybucket2Bucket <mybucket2> created```- rb command```$ qsctl rb qs://mybucket2Bucket <mybucket2> deleted$ qsctl rb qs://mybucket1 test/ --forceObject <test.txt> deletedObject <temp.txt> deletedObject <temp1.txt> deletedObject <test/test/standard> deletedBucket <mybucket1> deleted```- rm command```$ qsctl rm qs://mybucket1/test.txtObject <test.txt> deleted$ qsctl rm qs://mybucket1 -rObject <test.txt> deletedobject <temp.txt> deletedObject <temp1.txt> deletedObject <test/test/standard> deleted```- sync command```$ qsctl sync qs://mybucket3/test test/File 'test/README.md' writtenFile 'test/commands.py' writtenFile 'test/commands.pyc' writtenFile 'test/issues.txt' writtenFile 'test/test.txt' written$ qsctl sync qs://mybucket3/test test/ --deleteFile 'test/README.md' writtenFile 'test/commands.py' writtenFile 'test/commands.pyc' writtenFile 'test/issues.txt' writtenFile 'test/test.txt' writtenFile 'test/others1.txt' deletedFile 'test/others2.txt' deletedFile 'test/others3.txt' deletedFile 'test/others4.txt' deleted```