Skip to content

Commit

Permalink
Remove warning message when running tar for file changed
Browse files Browse the repository at this point in the history
  • Loading branch information
evertramos committed Sep 26, 2023
1 parent 51ac415 commit aed77af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/backup-compress-folder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ backup_compress_folder()
# Get the last folder name so we can backup with this folder in tar file
LOCAL_BACKUP_FOLDER_NAME=$(basename $LOCAL_BACKUP_FOLDER_FROM)

if ! sudo tar -czf "${LOCAL_BACKUP_FOLDER_TO}/${LOCAL_BACKUP_FILE_NAME}" -C "${LOCAL_BACKUP_FOLDER_FROM%//}/../" $LOCAL_BACKUP_FOLDER_NAME; then
if ! sudo tar --warning=no-file-changed -czf "${LOCAL_BACKUP_FOLDER_TO}/${LOCAL_BACKUP_FILE_NAME}" -C "${LOCAL_BACKUP_FOLDER_FROM%//}/../" $LOCAL_BACKUP_FOLDER_NAME; then
BACKUP_COMPRESS_FOLDER_ERROR=true
else
BACKUP_COMPRESS_FOLDER_FULLFILE="${LOCAL_BACKUP_FOLDER_TO}/${LOCAL_BACKUP_FILE_NAME}"
Expand Down

0 comments on commit aed77af

Please sign in to comment.