Forum Moderators: bakedjake
Right now I run this snippet several times for each folder.
smbmount //windows1/share //mnt/backups/windows1 -o username=blah,password=blah,uid=blah,gid=blah
rsync ... all the commands ...
smbumount //mnt/backups/windows1 I'd like some sort of if (smbmount ...yada yada...) then { rsync ... } if that's possible.
Another method is to access a file on the remote share in your shell script between the smbmount and the rsync. If the file exists, you proceed with the rsync.