Looking on google I found this method:
#!/bin/bash
echo "Mounting"
mkdir -p /mnt/Backup
mount -t cifs //192.168.200.110/Backup -o usernamer=Admin,password="" /mnt/Backup
cp -Rap /mnt/Backup /media/Backup/Admin
umount /mnt/Backup
but to this method must be root and run the script when it does not become root, now I'm discovering as I get the script as root.
|