From b4565d76bb4b797dd67714d7666542227d1f942c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Mon, 15 Jan 2024 22:31:25 +0300 Subject: [PATCH] move archive to Downloads after creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferit Yiğit BALABAN --- backup_home.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backup_home.sh b/backup_home.sh index 30c12fa..ca29df7 100755 --- a/backup_home.sh +++ b/backup_home.sh @@ -3,6 +3,7 @@ # Ferit Yiğit BALABAN , 2023 # EXCLUDE_FILE="$HOME/.backupexclude" +EXPORT_LOCATION="$HOME/Downloads" FILE="$HOME-$( date +'%y%m%d' ).tar.gz" USER="$( whoami )" @@ -16,4 +17,5 @@ sudo tar --exclude-from="$EXCLUDE_FILE" \ --gzip --file "$FILE" "$HOME" sudo chown "$USER":"$USER" "$FILE" +mv "$FILE" "$EXPORT_LOCATION"