mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-22 23:38:57 +00:00
Added README and fixed time format string typo
This commit is contained in:
parent
8cdca7aed4
commit
baa0224f55
2 changed files with 42 additions and 1 deletions
41
README
Normal file
41
README
Normal 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
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue