浏览代码

Update mount points

pengm01 3 年之前
父节点
当前提交
a29e20ccb1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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")