On 26/09/2026 13:08, Ralph Corderoy wrote:
The fstab entry is not needed as the detail may be given to mount(8)
instead; creating the entry just creates a short-cut which lessens the
arguments given to mount if you're going to do it often.

will be used for all these commands:

     read password

For example:

     $ read password
     letmein
     $

Define more shell variables.

     remote=//readynas.local/TerryJColes/Backups/Optiplex/Duplicity/OptiPlex
     local=/mnt/Optiplex_Backups

     uid=`id -u`
     gid=`id -g`

     option=ro   # Read-only
     option+=,username=TerryJColes,password="$password"
     option+=,iocharset=utf8,uid=$uid,gid=$gid
     printf '%s\n' "$option"   # Eyeball.

Attempt the mount:

     sudo -i mount -m -t cifs "$remote" "$local" -o "$option"

Yes.  That works and Deja Dup is reading the files in as we speak.

How much of all that do I have to repeat, each time I want to backup or restore?  All of it, or just some of it?

A thousand Thanks.

--

Terry Coles


--
 Next meeting: Online, Jitsi, Tuesday, 2026-10-06 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  https://dorset.lug.org.uk
 New thread, don't hijack:  mailto:[email protected]

Reply via email to