Last active
December 4, 2016 16:17
-
-
Save RonnyPfannschmidt/513209114486eb36751b9c87d02e3c7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {pkgs ? (import <nixpkgs> {})}: | |
| let | |
| src = pkgs.fetchFromGitHub { | |
| owner = "borgbackup"; | |
| repo = "borg"; | |
| rev = "7e5ed40e2fe49ebf75ba6594e5247e763a2f9e68"; | |
| sha256 = null; | |
| }; | |
| borg = pkgs.stdenv.lib.overrideDerivation pkgs.borgbackup (old: { | |
| inherit src; | |
| version="git"; | |
| SETUPTOOLS_SCM_PRETEND_VERSION="1.1+git"; | |
| postInstall = ""; | |
| preConfigure = old.preConfigure + '' | |
| echo "version = '$SETUPTOOLS_SCM_PRETEND_VERSION'" > src/borg/_version.py | |
| ''; | |
| }); | |
| env = pkgs.buildEnv { | |
| name="borgly"; | |
| paths = [borg]; | |
| }; | |
| in pkgs.stdenv.mkDerivation {name="borgish";buildInputs= [env];} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ls -la | |
| insgesamt 472 | |
| drwxr-xr-x 3 ronny users 4096 4. Dez 17:06 . | |
| drwxrwxrwx 10 root root 471040 4. Dez 17:05 .. | |
| drwxr-xr-x 3 ronny users 4096 28. Sep 23:20 borg_recreate_repair_test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [nix-shell:/run/media/ronny/backups/borg_test]$ ls -la borg_recreate_repair_test/ | |
| insgesamt 235148 | |
| drwxr-xr-x 3 ronny users 4096 28. Sep 23:20 . | |
| drwxr-xr-x 3 ronny users 4096 4. Dez 17:06 .. | |
| -rw-r--r-- 1 ronny users 620 31. Mai 2016 config | |
| drwxr-xr-x 13 ronny users 4096 31. Mai 2016 data | |
| -rw------- 1 ronny users 204474 20. Sep 20:16 hints.102490 | |
| -rw------- 1 ronny users 240314698 20. Sep 20:16 index.102490 | |
| -rw------- 1 ronny users 16 20. Sep 20:16 nonce | |
| -rw-r--r-- 1 ronny users 26 6. Sep 2015 README | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [nix-shell:/run/media/ronny/backups/borg_test]$ borg recreate ./borg_recreate_repair_test --chunker-params=default --progress | |
| usage: borg recreate [-h] [--critical] [--error] [--warning] [--info] | |
| [--debug] [--debug-topic TOPIC] [--lock-wait N] | |
| [--show-version] [--show-rc] [--no-files-cache] | |
| [--umask M] [--remote-path PATH] | |
| [--remote-ratelimit rate] [--consider-part-files] | |
| [--list] [--filter STATUSCHARS] [-p] [-n] [-s] | |
| [-e PATTERN] [--exclude-from EXCLUDEFILE] | |
| [--exclude-caches] [--exclude-if-present FILENAME] | |
| [--keep-tag-files] [--target TARGET] [-c SECONDS] | |
| [--comment COMMENT] [--timestamp yyyy-mm-ddThh:mm:ss] | |
| [-C COMPRESSION] [--always-recompress] | |
| [--compression-from COMPRESSIONCONFIG] | |
| [--chunker-params CHUNK_MIN_EXP,CHUNK_MAX_EXP,HASH_MASK_BITS,HASH_WINDOW_SIZE] | |
| [REPOSITORY_OR_ARCHIVE] [PATH [PATH ...]] | |
| borg recreate: error: argument REPOSITORY_OR_ARCHIVE: invalid validator value: './borg_recreate_repair_test' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment