Added README and fixed time format string typo

This commit is contained in:
Jonas Borgström 2010-10-27 20:40:48 +02:00
parent 8cdca7aed4
commit baa0224f55
2 changed files with 42 additions and 1 deletions

41
README Normal file
View File

@ -0,0 +1,41 @@
Basic Usage
===========
Generate keychain
-----------------
All data stored using darc is protected by 256 bit AES encryption. This means
that a keychain file needs to be created before any archives can be created:
$ darc init-keychain
This will create a password protected keychain in ~/.darc/keychain
Create an empty darc store
--------------------------
$ darc init /path/store
Create an archive
-----------------
$ darc create /path/store::MyBackup ~/Documents ~/src
List store contents
-------------------
$ darc list /path/store
List archive contents
---------------------
$ darc list /path/store::MyBackup
Extract archive
---------------
$ darc extract /path/store::MyBackup /destination
Delete archive
--------------
$ darc delete /path/store::MyBackup

View File

@ -12,7 +12,7 @@ def format_time(t):
if (datetime.now() - t).days < 365:
return t.strftime('%b %d %H:%M')
else:
return t.strftime('%d %d %Y')
return t.strftime('%b %d %Y')
def format_file_mode(mod):