Skip to content

Commit

Permalink
Add CHMOD command
Browse files Browse the repository at this point in the history
Added a CHMOD 600 to the completed backup. Thank to ilushechkin.
  • Loading branch information
jamesrascal committed Aug 6, 2014
1 parent fa11def commit 2b876ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WordPressBackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ echo "Using Profile: ${backupprofile}";

# Compresses the MySQL Dump and the Home Directory
tar zcPf ./${wp_domain}-${backupname}.tar.gz ./${backupname}-FILES.tar.gz ./${backupname}-DB.sql.gz

chmod 600 ./${wp_domain}-${backupname}.tar.gz

# Generates the Backup Size
FILENAME=${backup_location}/${user}/${wp_domain}/${wp_domain}-${backupname}.tar.gz
FILESIZE=$(du -h "$FILENAME")
Expand Down

0 comments on commit 2b876ab

Please sign in to comment.