diff --git a/README b/README new file mode 100644 index 000000000..d1b6965c7 --- /dev/null +++ b/README @@ -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 diff --git a/darc/helpers.py b/darc/helpers.py index ef8e58490..1c56b7996 100644 --- a/darc/helpers.py +++ b/darc/helpers.py @@ -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):