mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-28 00:44:50 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
01a9b71e9f | ||
|
f89b5f7325 | ||
|
5880f563e8 |
@@ -1,4 +1,4 @@
|
|||||||
@echo off
|
@echo off
|
||||||
chcp 65001
|
chcp 65001
|
||||||
%cd%\php\php %cd%\iyuu.php
|
php %cd%\iyuu.php
|
||||||
pause
|
pause
|
@@ -3,5 +3,5 @@ chcp 65001
|
|||||||
git fetch --all
|
git fetch --all
|
||||||
git reset --hard origin/master
|
git reset --hard origin/master
|
||||||
git pull
|
git pull
|
||||||
%cd%\php\php.exe %cd%\iyuu.php
|
php %cd%\iyuu.php
|
||||||
pause
|
pause
|
@@ -1,4 +1,4 @@
|
|||||||
@echo off
|
@echo off
|
||||||
chcp 65001
|
chcp 65001
|
||||||
D:\IYUUAutoReseed\php\php.exe D:\IYUUAutoReseed\iyuu.php
|
php D:\IYUUAutoReseed\iyuu.php
|
||||||
exit
|
exit
|
@@ -13,7 +13,7 @@ use IYUU\Library\Table;
|
|||||||
class AutoReseed
|
class AutoReseed
|
||||||
{
|
{
|
||||||
// 版本号
|
// 版本号
|
||||||
const VER = '1.6.9';
|
const VER = '1.7.0';
|
||||||
// RPC连接
|
// RPC连接
|
||||||
private static $links = [];
|
private static $links = [];
|
||||||
// 客户端配置
|
// 客户端配置
|
||||||
|
24
backup.sh
Normal file
24
backup.sh
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# 传入的种子备份参数
|
||||||
|
if [ $1 ]; then
|
||||||
|
AppName=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $2 ]; then
|
||||||
|
torrentDir=$2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 脚本当前目录
|
||||||
|
pwddir=$(cd $(dirname $0); pwd)
|
||||||
|
# 当前日期
|
||||||
|
DATE=$(date +%Y%m%d)
|
||||||
|
# 备份在当前目录
|
||||||
|
backupdir=$pwddir"/"$AppName$DATE
|
||||||
|
echo "种子备份目录:"$backupdir
|
||||||
|
mkdir $backupdir -p
|
||||||
|
# 种子目录
|
||||||
|
torrentDir=$torrentDir"/*"
|
||||||
|
# 备份
|
||||||
|
cp -rf $torrentDir $backupdir
|
||||||
|
# 成功提示
|
||||||
|
echo "ok";
|
@@ -1,5 +0,0 @@
|
|||||||
@echo off
|
|
||||||
chcp 65001
|
|
||||||
git fetch --all
|
|
||||||
git reset --hard origin/master
|
|
||||||
git pull
|
|
Reference in New Issue
Block a user