Add backup capability for aliae
This commit is contained in:
parent
3dff608c34
commit
d65418b712
1 changed files with 9 additions and 0 deletions
|
@ -42,9 +42,18 @@ begin
|
||||||
sudo -HE pwsh "$dir/Main.ps1" Configure
|
sudo -HE pwsh "$dir/Main.ps1" Configure
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function getBackupArgs
|
||||||
|
printf "%s\n" --full-path "/etc/aliae/aliae.yml" /
|
||||||
|
end
|
||||||
|
|
||||||
function userConfig -V dir
|
function userConfig -V dir
|
||||||
runPSUserConfig "$dir/Main.ps1" $argv
|
runPSUserConfig "$dir/Main.ps1" $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function getUserBackupArgs
|
||||||
|
argparse -i "user=" -- $argv
|
||||||
|
printf "%s\n" --base-directory ~"$_flag_user" --hidden --exact-depth 1 --glob ".aliae.yaml"
|
||||||
|
end
|
||||||
|
|
||||||
runInstaller $argv
|
runInstaller $argv
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue