全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
12
返回列表 发新帖
楼主: ansheng

[疑问] Bitwarden如果购买了官方的10刀/年

[复制链接]
发表于 2023-2-13 13:52:45 | 显示全部楼层
本帖最后由 0x99 于 2023-2-13 13:54 编辑

自建好了
关闭注册 开启邀请 自己用很爽
再配合 OD  写个脚本定时备份

  1. #!/bin/bash

  2. # Get the current date and time
  3. DATE=$(date +"%Y-%m-%d_%H-%M-%S")

  4. # Define the source and destination directories
  5. SRC_DIR="/root/vw-data"
  6. TMP_DIR="/tmp"
  7. DEST_DIR="backup:/server2/vw_bak"

  8. # Compress the source directory into a tar archive with today's date and time
  9. # and save it in the tmp directory
  10. tar -czf "$TMP_DIR/vw-data-$DATE.tar.gz" "$SRC_DIR"

  11. # Copy the compressed file from the tmp directory to the destination directory
  12. # using rclone
  13. rclone copy --onedrive-chunk-size 200M "$TMP_DIR/vw-data-$DATE.tar.gz" "$DEST_DIR"

  14. # Remove the compressed file after successful upload
  15. rm "$TMP_DIR/vw-data-$DATE.tar.gz"

  16. # Remove old backups (keep the latest 24 hours)
  17. find "$TMP_DIR" -type f -name "vw-data-*.tar.gz" -mmin +1440 -delete
复制代码


您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-15 00:40 , Processed in 0.062066 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表