ソースを参照

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")