4 lines
96 B
Nix
4 lines
96 B
Nix
{pkgs, ...}:
|
|
pkgs.writeShellScriptBin "backup" ''
|
|
cp -r "$1" "$1.bak.$(date +%Y%m%d%H%M%S)"''
|