Browse Source

Update mount points

pengm01 3 năm trước cách đây
mục cha
commit
a29e20ccb1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server_file_backup.sh

+ 1 - 1
server_file_backup.sh

@@ -19,7 +19,7 @@ echo "--------------------------$DATE------------------------" >> $LOG_FILE
 echo "[BEGIN] Backup [$BACKUP_DIR]" >> $LOG_FILE
 
 # Backup
-exclude=( `df -h | awk '{print $6}' | grep -E 'google|aliyun'` )
+exclude=( `cat /proc/mounts | awk '{print $2}' | grep -E 'aliyun|google'` )
 exclude_options=()
 for x in "${exclude[@]}"; do
   exclude_options+=(--exclude="$x")