Bash : Remove save script.

This commit is contained in:
Dmitry Voronin 2024-10-08 23:08:38 +03:00
parent 65ce91269b
commit a6defcd208
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,23 +0,0 @@
{ ... }: {
text = ''
# Backup a game save.
# Usage: save [TARGETS]
function save() {
local IFS=$'\n'
local targets=("''${@}")
local files=()
[[ "''${targets}" = "" ]] && targets=($(_ls_dir))
_info "Archiving..."
for target in ''${targets[@]}; do
files+=($(archive "''${target}"))
done
_info "Uploading..."
try trysudo rcp "''${files[@]}" home:/storage/cold_1/backup/save/
_info "Cleaning..."
archive_prune 2> /dev/null
}
'';
}