update at 2023/08/14
This commit is contained in:
10
tools/misc/rsyncsmb.sh
Normal file
10
tools/misc/rsyncsmb.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 源目录(Windows目录)
|
||||
SRC_DIR="192.168.2.119:/goprojects"
|
||||
# 目标目录(Samba目录)
|
||||
DST_DIR="/home/simon/goprojects"
|
||||
|
||||
# 同步目录
|
||||
#rsync -avz --delete "$SRC_DIR/" "$DST_DIR/"
|
||||
rsync -avz --delete --user=myuser --password-file=/path/to/password.txt "$SRC_DIR/" "$DST_DIR/"
|
||||
Reference in New Issue
Block a user