From 0c89fb8b2d12728e112a2b05862578c814b41270 Mon Sep 17 00:00:00 2001 From: Marlon Silva Date: Tue, 1 Aug 2023 08:49:32 -0300 Subject: [PATCH] First backup script --- backup.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 backup.sh diff --git a/backup.sh b/backup.sh new file mode 100755 index 0000000..d62809b --- /dev/null +++ b/backup.sh @@ -0,0 +1,6 @@ +#!/bin/bash +#List all folders in a directory + +for i in * ; do +tar -cvzf - "$i" | gpg --encrypt --sign -r cold-storage@marlonjsilva.com.br > "$i".tar.gpg; +done