I use this command for auto mounting in /etc/fstab
//192.168.1.205/Public /home/backup/ cifs auto,rw,user,username=admin,password=asd123QWE!@#,uid=1000,gid=1000,iocharset=utf8 0 0
to mount a shared folder from my NAS server to my ubuntu 18.04 server but this command not executed when I reboot or shutdown my Ubuntu server