|
|
@@ -63,7 +63,7 @@ OWNCLOUDKEEPFILES=7 ## Number of local backups that will be kept after cleani
|
|
|
## arrNAME=(Common Name, IP, remote folder to mount, local location for mount, username, password) ##
|
|
|
arrENTERPRISE=(ENTERPRISE 192.168.100.27 /backup $ENTERPRISESHARE mike cherokee2)
|
|
|
##arrPC=(PC 192.168.100.51 /Mavrick_Pictures $PCSHARE NetworkUser cherokee2) ## <- Use for Windows
|
|
|
-arrPC=(PC 192.168.100.51 /media/mike/New\ Volume1/Users/Me/My\ Documents/My\ Pictures $PCSHARE mike cherokee2) ## <- Use for Linux
|
|
|
+arrPC=(PC 192.168.100.51 /PicturesBackup $PCSHARE mike cherokee2) ## <- Use for Linux
|
|
|
|
|
|
## FLAGS ##
|
|
|
FLAGBUILD=0
|
|
|
@@ -186,6 +186,9 @@ buildtar () {
|
|
|
}
|
|
|
|
|
|
mountfiles () {
|
|
|
+
|
|
|
+ echo "$(id -u)"
|
|
|
+
|
|
|
addtolog "mountfiles: mountfiles started for $1."
|
|
|
if mount | grep $4 > /dev/null; then
|
|
|
addtolog "mountfiles: $1 files already mounted."
|
|
|
@@ -193,7 +196,7 @@ mountfiles () {
|
|
|
# sudo mount -t cifs //$2$3 $4 -o username=$5,password=$6 >> $PATHTOLOG 2>&1 &&
|
|
|
# addtolog "mountfiles: successfully mounted $1 files." ||
|
|
|
# addtolog "mountfiles: FAILED to mount $1." & failscript
|
|
|
- sudo mount -t cifs //$2$3 $4 -o username=$5,password=$6 >> $PATHTOLOG 2>&1
|
|
|
+ sudo mount -t cifs //$2$3 $4 -o username=$5,password=$6,uid=1000 >> $PATHTOLOG 2>&1
|
|
|
if sudo mountpoint -q $4; then
|
|
|
addtolog "mountfiles: successfully mounted $1 files."
|
|
|
else
|