- D 72.1%
- Nix 26.5%
- Just 1.4%
|
|
||
|---|---|---|
| .github | chore: initial commit | |
| source | fix: ignore broken symlinks etc. when $BACKDOWN_IGNORENONEXISTENT=true | |
| .envrc | chore: initial commit | |
| .gitignore | chore: initial commit | |
| dub-lock.json | fix: make the nix package actually build | |
| dub.sdl | chore: add colorize dependency | |
| dub.selections.json | chore: commit dub.selections.json | |
| flake.lock | chore: initial commit | |
| flake.nix | chore(flake.nix): bump version | |
| justfile | fix: make the nix package actually build | |
| LICENSE.md | chore: initial commit | |
| README.md | docs(README.md): document $BACKDOWN_IGNORENONEXISTENT | |
backdown
backdown is a simple file backup tool.
backups are stored in ~/Backdown by default, although this can be overridden by the $BACKDOWN_DIR environment variable.
for example, you could set
$BACKDOWN_DIRto point to an external hard disk or network location to back up to!
backups are named as follows: YYMMDD_HHMMSS-<original filename>
if you don't want the date/time prefix, you can set
$BACKDOWN_STRIP_PREFIXtotrue
usage
backdown <files...>
Note
you can set
$BACKDOWN_VERBOSEtotruewhen backing up directories to show what files are being copied you can also set$BACKDOWN_IGNORENONEXISTENTtotrueto skip over non-existent files instead of exiting.
example
backdown ~/Pictures ~/Projects ~/Documents
building
prerequisites
you'll need:
dub, the dlang package manager- a
dlangcompiler- i recommend
ldc, butdmdandgdcalso work
- i recommend
compiling
to compile, simply run the following:
dub build --build=release
this will output a backdown file in the root of the repository. copy this to a location on your $PATH, like ~/.local/bin