So I often use this command to mount a Samba share.
mount -t cifs //ip/share /mnt/backups -o username=user,password=pwd,domain=domain
I want to user a credentials file (with 600 permission) instead of typing in username/password.
Any ideas how this can be done? I've looked around and the only examples I've found are for using a credentials file if I want to auto-mount a Samba share using /etc/fstab.