Save : Remove.

This commit is contained in:
Dmitry Voronin 2024-02-24 00:05:57 +03:00
parent f10abfc83d
commit a6273abffb

View file

@ -1,19 +0,0 @@
# 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 rcp "${files[@]}" home:/storage/cold_1/backup/save/
_info "Cleaning..."
archive_prune
}