git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@183 830e0280-6d2a-0410-9c65-932aecc39d9d
Michal Ludvig authored on 2008/06/04 21:30:44... | ... |
@@ -1,5 +1,13 @@ |
1 | 1 |
2008-06-05 Michal Ludvig <michal@logix.cz> |
2 | 2 |
|
3 |
+ * S3/PkgInfo.py: Bumped up version to 0.9.7 |
|
4 |
+ * NEWS: Added 0.9.7 |
|
5 |
+ * TODO: Removed completed tasks |
|
6 |
+ * s3cmd, s3cmd.1: Updated help texts, |
|
7 |
+ removed --dry-run option as it's not implemented. |
|
8 |
+ |
|
9 |
+2008-06-05 Michal Ludvig <michal@logix.cz> |
|
10 |
+ |
|
3 | 11 |
* S3/Config.py: Store more file attributes in sync to S3. |
4 | 12 |
* s3cmd: Make sync remote2local more error-resilient. |
5 | 13 |
|
... | ... |
@@ -1,3 +1,12 @@ |
1 |
+s3cmd 0.9.7 - 2008-06-05 |
|
2 |
+=========== |
|
3 |
+* Implemented 'sync' from S3 back to local folder, including |
|
4 |
+ file attribute restoration. |
|
5 |
+* Failed uploads are retried on lower speed to improve error |
|
6 |
+ resilience. |
|
7 |
+* Compare MD5 of the uploaded file, compare with checksum |
|
8 |
+ reported by S3 and re-upload on mismatch. |
|
9 |
+ |
|
1 | 10 |
s3cmd 0.9.6 - 2008-02-28 |
2 | 11 |
=========== |
3 | 12 |
* Support for setting / guessing MIME-type of uploaded file |
... | ... |
@@ -7,10 +7,6 @@ TODO list for s3cmd project |
7 | 7 |
with "directories" |
8 | 8 |
- Recursion for some commands |
9 | 9 |
|
10 |
-- Implement 'sync' from S3 to local filesystem |
|
11 |
- - Will have to restore file attributes |
|
12 |
- - Eh, we have to store them first ;-) |
|
13 |
- |
|
14 | 10 |
- Implement GPG for sync |
15 | 11 |
(it's not that easy since it won't be easy to compare |
16 | 12 |
the encrypted-remote-object size with local file. |
... | ... |
@@ -20,12 +16,5 @@ TODO list for s3cmd project |
20 | 20 |
have to do large number for object/HEAD requests. tough |
21 | 21 |
call). |
22 | 22 |
|
23 |
-- Compute MD5 checksum when sending file to S3 |
|
24 |
- (that's easy and patch exists but it will slow down |
|
25 |
- the operation. instead I'm planning to run the |
|
26 |
- MD5-summor in a separate thread since both MD5-summing |
|
27 |
- and sending data to S3 can both be time consuming yet |
|
28 |
- parallel tasks). |
|
29 |
- |
|
30 | 23 |
- Keep man page up to date and write some more documentation |
31 | 24 |
- Yeah, right ;-) |
... | ... |
@@ -781,7 +781,7 @@ commands_list = [ |
781 | 781 |
{"cmd":"get", "label":"Get file from bucket", "param":"s3://BUCKET/OBJECT LOCAL_FILE", "func":cmd_object_get, "argc":1}, |
782 | 782 |
{"cmd":"del", "label":"Delete file from bucket", "param":"s3://BUCKET/OBJECT", "func":cmd_object_del, "argc":1}, |
783 | 783 |
#{"cmd":"mkdir", "label":"Make a virtual S3 directory", "param":"s3://BUCKET/path/to/dir", "func":cmd_mkdir, "argc":1}, |
784 |
- {"cmd":"sync", "label":"Synchronize a directory tree to S3", "param":"LOCAL_DIR s3://BUCKET[/PREFIX]", "func":cmd_sync, "argc":2}, |
|
784 |
+ {"cmd":"sync", "label":"Synchronize a directory tree to S3", "param":"LOCAL_DIR s3://BUCKET[/PREFIX] or s3://BUCKET[/PREFIX] LOCAL_DIR", "func":cmd_sync, "argc":2}, |
|
785 | 785 |
{"cmd":"du", "label":"Disk usage by buckets", "param":"[s3://BUCKET[/PREFIX]]", "func":cmd_du, "argc":0}, |
786 | 786 |
{"cmd":"info", "label":"Get various information about Buckets or Objects", "param":"s3://BUCKET[/OBJECT]", "func":cmd_info, "argc":1}, |
787 | 787 |
#{"cmd":"setacl", "label":"Modify Access control list for Bucket or Object", "param":"s3://BUCKET[/OBJECT]", "func":cmd_setacl, "argc":1}, |
... | ... |
@@ -831,7 +831,7 @@ if __name__ == '__main__': |
831 | 831 |
optparser.add_option("-c", "--config", dest="config", metavar="FILE", help="Config file name. Defaults to %default") |
832 | 832 |
optparser.add_option( "--dump-config", dest="dump_config", action="store_true", help="Dump current configuration after parsing config files and command line options and exit.") |
833 | 833 |
|
834 |
- optparser.add_option("-n", "--dry-run", dest="dry_run", action="store_true", help="Only show what should be uploaded or downloaded but don't actually do it. May still perform S3 requests to get bucket listings and other information though.") |
|
834 |
+ #optparser.add_option("-n", "--dry-run", dest="dry_run", action="store_true", help="Only show what should be uploaded or downloaded but don't actually do it. May still perform S3 requests to get bucket listings and other information though.") |
|
835 | 835 |
|
836 | 836 |
optparser.add_option("-e", "--encrypt", dest="encrypt", action="store_true", help="Encrypt files before uploading to S3.") |
837 | 837 |
optparser.add_option( "--no-encrypt", dest="encrypt", action="store_false", help="Don't encrypt files.") |
... | ... |
@@ -37,7 +37,10 @@ Get file from bucket (i.e. download from S3) |
37 | 37 |
Delete file from bucket |
38 | 38 |
.TP |
39 | 39 |
\fBsync\fR \fILOCAL_DIR s3://BUCKET[/PREFIX]\fR |
40 |
-Synchronize a directory tree to S3 |
|
40 |
+Backup a directory tree to S3 |
|
41 |
+.TP |
|
42 |
+\fBsync\fR \fIs3://BUCKET[/PREFIX] LOCAL_DIR\fR |
|
43 |
+Restore a tree from S3 to local directory |
|
41 | 44 |
.TP |
42 | 45 |
\fBinfo\fR \fIs3://BUCKET[/OBJECT]\fR |
43 | 46 |
Get various information about a Bucket or Object |
... | ... |
@@ -72,7 +75,7 @@ Most options can have a default value set in the above specified config file. |
72 | 72 |
Options specific to \fBsync\fR command: |
73 | 73 |
.TP |
74 | 74 |
\fB\-\-delete\-removed\fR |
75 |
-Delete remote objects with no corresponding local file |
|
75 |
+Delete remote objects with no corresponding local file when \fIsync\fRing \fBto\fR S3 or delete local files with no corresponding object in S3 when \fIsync\fRing \fBfrom\fR S3. |
|
76 | 76 |
.TP |
77 | 77 |
\fB\-\-no\-delete\-removed\fR |
78 | 78 |
Don't delete remote objects. Default for 'sync' command. |
... | ... |
@@ -82,9 +85,9 @@ Preserve filesystem attributes (mode, ownership, timestamps). Default for 'sync' |
82 | 82 |
.TP |
83 | 83 |
\fB\-\-no\-preserve\fR |
84 | 84 |
Don't store filesystem attributes with uploaded files. |
85 |
-.TP |
|
86 |
-\fB\-n\fR, \fB\-\-dry\-run\fR |
|
87 |
-Only show what would be uploaded or downloaded but don't actually do it. May still perform S3 requests to get bucket listings and other information though. |
|
85 |
+.\".TP |
|
86 |
+.\"\fB\-n\fR, \fB\-\-dry\-run\fR |
|
87 |
+.\"Only show what would be uploaded or downloaded but don't actually do it. May still perform S3 requests to get bucket listings and other information though. |
|
88 | 88 |
.PP |
89 | 89 |
Options common for all commands (where it makes sense indeed): |
90 | 90 |
.TP |