Reformat the aliases
This commit is contained in:
parent
601c458703
commit
0318bc3818
|
@ -43,34 +43,31 @@ in
|
||||||
--keep-yearly 75 \
|
--keep-yearly 75 \
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
restic-list = ''
|
restic-list = ''
|
||||||
restic \
|
restic \
|
||||||
--repo ${repository} \
|
--repo ${repository} \
|
||||||
--password-file ${password_file} \
|
--password-file ${password_file} \
|
||||||
snapshots --host ${config.networking.hostName}
|
snapshots --host ${config.networking.hostName}'';
|
||||||
'';
|
|
||||||
restic-unlock = ''
|
restic-unlock = ''
|
||||||
restic \
|
restic \
|
||||||
--repo ${repository} \
|
--repo ${repository} \
|
||||||
--password-file ${password_file} \
|
--password-file ${password_file} \
|
||||||
unlock
|
unlock'';
|
||||||
'';
|
|
||||||
restic-mount = ''
|
restic-mount = ''
|
||||||
mkdir -p /tmp/restic && \
|
mkdir -p /tmp/restic && \
|
||||||
restic \
|
restic \
|
||||||
--repo ${repository} \
|
--repo ${repository} \
|
||||||
--password-file ${password_file} \
|
--password-file ${password_file} \
|
||||||
--host ${config.networking.hostName} \
|
--host ${config.networking.hostName} \
|
||||||
mount /tmp/restic
|
mount /tmp/restic'';
|
||||||
'';
|
|
||||||
restic-mount-all = ''
|
restic-mount-all = ''
|
||||||
mkdir -p /tmp/restic && \
|
mkdir -p /tmp/restic && \
|
||||||
restic \
|
restic \
|
||||||
--repo ${repository} \
|
--repo ${repository} \
|
||||||
--password-file ${password_file} \
|
--password-file ${password_file} \
|
||||||
mount /tmp/restic
|
mount /tmp/restic'';
|
||||||
'';
|
|
||||||
restic-forget = ''
|
restic-forget = ''
|
||||||
restic \
|
restic \
|
||||||
--repo ${repository} \
|
--repo ${repository} \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user