diff --git a/s3/s3_backup.sh b/s3/s3_backup.sh index 014e316..1138ea6 100644 --- a/s3/s3_backup.sh +++ b/s3/s3_backup.sh @@ -7,7 +7,9 @@ tmp_conf="/root/tmp.cfg" tmp_pass="/root/pass.txt" # Create the unencrypted copy directory -rm -rf "$unencrypted_copy/*" +echo "Clearing old unencrypted data" + +find "$unencrypted_copy/" -type f -delete echo "Creating unencrypted directory" mkdir -p "$unencrypted_copy" echo "Copy data"