{"repo":"jeessy2/backup-x","free":true,"listed":false,"github":"https://github.com/jeessy2/backup-x","clone":"git clone https://github.com/jeessy2/backup-x.git","description":"带Web界面的数据库/文件备份增强工具. A database/file backup tool with web interfaces","language":"Go","stars":478,"topics":["backup","mysql","postgresql","file-backup"],"license":"MIT","category":"databases-storage","readme_excerpt":"backup-x 带Web界面的数据库/文件备份增强工具。原理：执行自定义shell命令输出文件，增强备份功能。同时支持: 文件、mysql、postgres... English - [x] 支持自定义命令 - [x] 支持执行shell输出的文件备份，原理上支持各种数据库/文件备份 - [x] 支持备份周期设置，几分钟到一年的备份周期也可以 - [x] 支持多个项目备份，最多16个 - [x] 支持备份后的文件另存到对象存储中 (在也不怕删库跑路了) - [x] 可设置备份文件最大保存天数 - [x] webhook通知 - [x] 支持加密关键信息(v1.3.0+) docker中使用 - 运行docker容器（ /opt/backup-x-files 可替换为主机的目录） - 登录 http://your docker ip:9977 并配置 - docker容器默认安装default-mysql-client/postgres-client/s3sync/rclone/wget/curl/minio mc/rsync/lz4/zstd 系统中使用 - 下载并解压https://github.com/jeessy2/backup-x/releases - 安装服务 - Mac/Linux: ./backup-x -s install - Win(打开cmd): .\\backup-x.exe -s install - 自定义参数 ./backup-x -s install -l 127.0.0.1:9977 -d /Users/name - -l 监听地址（默认监听 :9977 ） - -d 自定义备份目录地址（默认当前运行目录） - [可选] 服务卸载 - Mac/Linux: ./backup-x -s uninstall - Win(打开cmd): .\\backup-x.exe -s uninstall - 登录 http://127.0.0.1:9977 并配置 备份脚本参考 - postgres 说明 备份脚本 ---- ---- 备份单个 PGPASSWORD=\"#{PWD}\" pg dump --host 127.0.0.1 --port 5432 --user postgres --dbname name --format=custom --file #{DATE}.dump 还原指定 pg restore --host 127.0.0.1 --port 5432 --user postgres -d name 2021-11-12-10-29.dump 备份全部 PGPASSWORD=\"#{PWD}\" pg dumpall --host 127.0.0.1 --port 5432 --user postgres --clean --file #{DATE}.sql 还原全部 psql -U postgres -f 2021-11-12-10-29.sql - mysql/mariadb 说明 备份脚本 ---- ---- 备份单个 mysqldump -h127.0.0.1 -uroot -p#{PWD} name #{DATE}.sql 备份全部 mysqldump -h127.0.0.1 -uroot -p#{PWD} --all-databases #{DATE}.sql 还原 mysql -uroot -p123456 name 群设置 - 智能群助手 - 添加机器人 - 自定义 - 只勾选 自定义关键词 , 输入","default_branch":null,"files":null,"tree":[],"storefront":"/r/jeessy2","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jeessy2/backup-x/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}