Skip to content

Commit

Permalink
clearing old unencrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Mar 22, 2023
1 parent 8d04980 commit 698e2e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion s3/s3_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 698e2e8

Please sign in to comment.