https://github.com/renfei/shell
我收藏的Shell小脚本
https://github.com/renfei/shell
shell shell-script
Last synced: 2 months ago
JSON representation
我收藏的Shell小脚本
- Host: GitHub
- URL: https://github.com/renfei/shell
- Owner: renfei
- Created: 2021-03-09T03:23:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T12:16:36.000Z (over 3 years ago)
- Last Synced: 2025-04-01T23:43:08.163Z (2 months ago)
- Topics: shell, shell-script
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shell
我收藏的Shell小脚本### sh/xsync.sh
xsync - 自动化的 rsync,为了更方便的在 Linux 集群中同步文件,对 rsync 进行自动化脚本处理。建议先对集群内机器做秘钥无密码登陆,这样同步更方便。参数:文件名 机器名1 机器名2...
#### 案例
将 ```/opt/test/file``` 发送给机器 ```rf01``` ```rf02``` ```rf03``` ```rf04```:
```bash
cd /opt/test/
./xsync.sh file rf01 rf02 rf03 rf04
```