Skip to content

Commit a2637e5

Browse files
committed
update - backup_in_rsync.sh
1 parent 963d0b2 commit a2637e5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

backup_in_rsync/backup_in_rsync.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
#!/bin/bash
22

33

4-
MOUNT_SRC=//192.168.50.7/disk
4+
#MOUNT_SRC=//192.168.50.33/disk
5+
#MOUNT_SRC=//LANDISK-0197E5.local/disk
6+
#MOUNT_USER=admin
7+
#MOUNT_PASS=
8+
9+
MOUNT_SRC=//LANDISK-C35758.local/disk1
10+
MOUNT_USER=admin
11+
MOUNT_PASS=admin
12+
513
MOUNT_POINT=/mnt/Landisk/
614

715
BACKUP_FROM=${MOUNT_POINT}
@@ -87,7 +95,7 @@ function _check_mount_landisk () {
8795
else
8896
# not mounted
8997
echo "not mounted Landisk. --> do mount..." >> ${WORK_LOG_PATH}
90-
sudo mount -t cifs -o sec=ntlm,vers=1.0 -o username=admin,password= ${MOUNT_SRC} ${MOUNT_POINT} >> ${WORK_LOG_PATH} 2>&1
98+
sudo mount -t cifs -o sec=ntlm,vers=1.0 -o username=${MOUNT_USER},password=${MOUNT_PASS} ${MOUNT_SRC} ${MOUNT_POINT} >> ${WORK_LOG_PATH} 2>&1
9199
if [ $? -eq 0 ]; then
92100
echo "mount OK" >> ${WORK_LOG_PATH}
93101
return 0

0 commit comments

Comments
 (0)