Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sadboyzvone/tldr
Browse files Browse the repository at this point in the history
  • Loading branch information
zvonimirr committed Nov 21, 2017
2 parents 07e02f1 + 41399e3 commit f8baa03
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
32 changes: 32 additions & 0 deletions pages/common/borg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# borg

> Deduplicating backup tool.
> Creates local or remote backups that are mountable as filesystems.
- Initialise a (local) repository:

`borg init {{/path/to/repo_folder}}`

- Backup a folder into the repository, creating an archive called "Monday":

`borg create --progress {{/path/to/repo_folder}}::{{Monday}} {{/path/to/source_folder}}`

- List all archives in a repository:

`borg list {{/path/to/repo_folder}}`

- Extract a specific folder from the "Monday" archive in a remote repository, excluding all *.ext files:

`borg extract {{user}}@{{host}}:{{/path/to/repo_folder}}::{{Monday}} {{path/to/target_folder}} --exclude '{{*.ext}}'`

- Prune a repository by deleting all archives older than 7 days, listing changes:

`borg prune --keep-within {{7d}} --list {{/path/to/repo_folder}}`

- Mount a repository as a FUSE filesystem:

`borg mount {{/path/to/repo_folder}}::{{Monday}} {{/path/to/mountpoint}}`

- Display help on creating archives:

`borg create --help`
11 changes: 11 additions & 0 deletions pages/common/pdfunite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# pdfunite

> PDF merging utility.
- Merge 2 PDFs into a single PDF:

`pdfunite {{path/to/fileA.pdf}} {{path/to/fileB.pdf}} {{path/to/merged_output.pdf}}`

- Merge a folder of PDFs into a single PDF:

`pdfunite {{path/to/directory/*.pdf}} {{path/to/merged_output.pdf}}`
2 changes: 1 addition & 1 deletion pages/common/telnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- Telnet to the default port of a host:

`telnel {{host}}`
`telnet {{host}}`

- Telnet to a specific port of a host:

Expand Down

0 comments on commit f8baa03

Please sign in to comment.