From a6273abffbfc5e0ecd049c929f9247e0b7f1bc2f Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 24 Feb 2024 00:05:57 +0300 Subject: [PATCH] Save : Remove. --- .config/bash/module/Save.sh | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .config/bash/module/Save.sh diff --git a/.config/bash/module/Save.sh b/.config/bash/module/Save.sh deleted file mode 100644 index a1060df..0000000 --- a/.config/bash/module/Save.sh +++ /dev/null @@ -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 -}