adding rsync option for archiving

This commit is contained in:
2020-05-15 12:51:47 -05:00
parent 052a9942ba
commit e58898a2cd
2 changed files with 34 additions and 9 deletions

View File

@@ -13,6 +13,7 @@ base_dir="$HOME/Desktop/repo_archive"
source_repo_dir="repos" source_repo_dir="repos"
output_dir="archive" output_dir="archive"
repo_list="${base_dir}/_src/repo_list.txt" repo_list="${base_dir}/_src/repo_list.txt"
storage_dir="/Volumes/Dump/Backups/ff4500/github"
# Other config things # Other config things
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------

View File

@@ -361,17 +361,41 @@ finished_msg() {
sep; sep;
echo echo
sleep 3; sleep 3;
line_i "Now, we're going to move your archives to storage.";
line_i "Looks like that's here: \c"; cmd_inline_noprompt "${storage_dir}";
echo
user_prompt_continue;
}
move_to_storage(){
echo
sep
echo
action_title "MOVING TO STORAGE";
echo
action; line "Moving your files to your storage dir.";
echo -e "${fg_aqua}"
rsync -avzh -P "${base_dir}/" "${storage_dir}/" | sed 's/^/ /g'
echo -e "${reset}"
sleep 2s;
info; line "Finished.";
echo
sep;
echo
sleep 3;
} }
run() { run() {
titleblock # titleblock
check_ex # check_ex
prompt_continue # prompt_continue
clear # clear
repo_list_empty_check # repo_list_empty_check
github_clone # github_clone
archive # archive
copy_archive # copy_archive
cleanup # cleanup
finished_msg finished_msg
move_to_storage
} }