diff options
author | neodarz <neodarz@neodarz.net> | 2018-07-01 19:27:38 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-07-01 19:27:38 +0200 |
commit | 4a6d55d3b65e7a4ab94422a07550d5358679f4e5 (patch) | |
tree | ef4b5147f66ea91d63ddcb0daeba327ac9f83d15 /cheat/.cheat/borg | |
parent | 2f6357a59d60fb13e6a81e0be5efd3b3cb2e6e35 (diff) | |
download | dotfiles_ascii-4a6d55d3b65e7a4ab94422a07550d5358679f4e5.tar.xz dotfiles_ascii-4a6d55d3b65e7a4ab94422a07550d5358679f4e5.zip |
Add some goot cheat
Diffstat (limited to 'cheat/.cheat/borg')
-rw-r--r-- | cheat/.cheat/borg | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cheat/.cheat/borg b/cheat/.cheat/borg new file mode 100644 index 0000000..0f7fb3f --- /dev/null +++ b/cheat/.cheat/borg @@ -0,0 +1,23 @@ +# init +borg init --encryption=repokey /path/to/repo + +# first commit +borg create /path/to/repo::Monday ~/src ~/Documents + +# update archive +borg create --stats /path/to/repo::Tuesday ~/src ~/Documents + +# For archive name with data instead of simple name +borg create /Backups/Docs_importants::{now:%Y-%m-%d} ~/Docs_importants + +# Example +borg create -C lzma,6 ~/Backups/Docs_importants::{now:%Y-%m-%d} ~/Docs_importants + +# Tips +borg save fullpath, so if already in subfolder, remove some leading path elements +with `strip-components`. Exemple: + +borg extract --strip-components 3 ~/Backups/Docs_importants::2018-07-01 + +# compression +lz4 < zstd < zlib < lzma |