Skip to content

Commit

Permalink
Rename restic-backups script to backups
Browse files Browse the repository at this point in the history
  • Loading branch information
barrucadu committed Jan 27, 2024
1 parent bf6f373 commit b28e024
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
};
in
{
backups = mkApp "backups" ''
PATH=${with pkgs; lib.makeBinPath [ restic sops nettools ]}
${pkgs.lib.fileContents ./scripts/backups.sh}
'';

fmt = mkApp "fmt" ''
PATH=${with pkgs; lib.makeBinPath [ nix git python3Packages.black ]}
Expand All @@ -82,12 +88,6 @@
${pkgs.lib.fileContents ./scripts/lint.sh}
'';

restic-backups = mkApp "backups" ''
PATH=${with pkgs; lib.makeBinPath [ restic sops nettools ]}
${pkgs.lib.fileContents ./scripts/restic-backups.sh}
'';

secrets = mkApp "secrets" ''
PATH=${with pkgs; lib.makeBinPath [ sops nettools vim ]}
export EDITOR=vim
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions shared/restic-backups/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
# List all the snapshots with:
#
# ```bash
# nix run .#restic-backups # all snapshots
# nix run .#restic-backups -- snapshots --host <hostname> # for a specific host
# nix run .#restic-backups -- snapshots --tag <tag> # for a specific tag
# nix run .#backups # all snapshots
# nix run .#backups -- snapshots --host <hostname> # for a specific host
# nix run .#backups -- snapshots --tag <tag> # for a specific tag
# ```
#
# Restore a snapshot to `<restore-dir>` with:
#
# ```bash
# nix run .#restic-backups restore <snapshot> [<restore-dir>]
# nix run .#backups restore <snapshot> [<restore-dir>]
# ```
#
# If unspecified, the snapshot is restored to `/tmp/restic-restore-<snapshot>`.
Expand Down

0 comments on commit b28e024

Please sign in to comment.