Add backup capability for aliae

This commit is contained in:
Manuel Thalmann 2024-11-02 18:26:33 +01:00
parent 41f88b0df3
commit 68d0c889a9

View file

@ -42,9 +42,18 @@ begin
sudo -HE pwsh "$dir/Main.ps1" Configure
end
function getBackupArgs
printf "%s\n" --full-path "/etc/aliae/aliae.yml" /
end
function userConfig -V dir
runPSUserConfig "$dir/Main.ps1" $argv
end
function getUserBackupArgs
argparse -i "user=" -- $argv
printf "%s\n" --base-directory ~"$_flag_user" --hidden --exact-depth 1 --glob ".aliae.yaml"
end
runInstaller $argv
end