当前位置:   article > 正文

最近三年收藏网站,做一次云备份_daofire最新网址

daofire最新网址

这些 URL 还是要留存下来的好,万一阿里云宕机了,还能有个地方恢复。

备份脚本:

<?php
  $db = new SQLite3('fav.db');
  $results = $db->query('SELECT * FROM fav');
  while ($row = $results->fetchArray()) {
    echo "- " . ($row["title"]);
    echo "\n";
    echo "  - [" . ($row["href"]) . "](" . $row["href"] .")";
    echo "\n";
    echo "  - " . ($row["brief"]);
    echo "\n";
    echo "  - " . ($row["id"]);
    echo "\n";
    echo "\n";
  }
?>

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

updated @ 2023-03-30

推荐阅读
相关标签