linux下使用ftp命令上传指定路径下所有文件脚本

#!/bin/bash HOST="your_ftp_host" # FTP服务器地址 USERNAME="your_username" # FTP登录用户名 PASSWORD="your_password" # FTP登录密码 LOCALDIR="/path/to/local/directory/" # 要上传的本地目录路径 REMOTEDIR="/remote/directory/" # 远程目标目录路径(如果不存在则会自动创建)
网事随记
#!/bin/bash HOST="your_ftp_host" # FTP服务器地址 USERNAME="your_username" # FTP登录用户名 PASSWORD="your_password" # FTP登录密码 LOCALDIR="/path/to/local/directory/" # 要上传的本地目录路径 REMOTEDIR="/remote/directory/" # 远程目标目录路径(如果不存在则会自动创建)
Reset password lost without admin redmine account but with admin redmine database account Found in file /app/models/user.rb: 'The hashed password is stored in the following form: SHA1\(salt +SHA1)' So you can reset password in two steps:
查看所有数据库容量大小 select table_schema as '数据库', sum(table_rows) as '记录数', sum(truncate(data_length/1024/1024, 2)) as '数据容量(MB)', sum(truncate(index_length/1024/1024, 2)) as '索引容量(MB)' from information_schema.tables
V