diff --git a/script.sh b/script.sh index 43a858e..a76a2f1 100755 --- a/script.sh +++ b/script.sh @@ -28,7 +28,7 @@ while IFS= read -r path; do elif [[ $(basename "$file") =~ ^printer-[0-9]+_[0-9]+\.cfg$ ]]; then echo "Skipping file: $file" else - cp $file $HOME/$backup_folder/ + cp -r $file $HOME/$backup_folder/ fi done done < <(grep -v '^#' "$parent_path/.env" | grep 'path_' | sed 's/^.*=//')