Backing up to CIFS share

Lonely Admin <[email protected]> Wed, 28 Dec 2022 14:05:50 -0600
Newsgroups gmane.linux.mondo.devel
Message-ID <CAGmJk0GGxXM33pzn9YJdt99QGC==baNxJJy82m4Ng+gnv-XXxg@mail.gmail.com>
--===============5624085118306626155==
Content-Type: multipart/alternative; boundary="000000000000c889e105f0e8e557"

--000000000000c889e105f0e8e557
Content-Type: text/plain; charset="UTF-8"

How do you backup to an already mounted CIFS share?

I have things working backing up to ISO files on an already mounted CIFS
share. How can I use the -n switch for backup to the same share? Or am I
just doing it wrong?

mondo doesn't like cifs:// so I'm using smbfs. /etc/fstab doesn't like
smbfs I think because it's not in /proc/filesystems

/etc/fstab:
//192.168.100.100/Shared /mnt/backup cifs
credentials=/etc/backup-credentials,uid=995,gid=995

# mondoarchive -N -3 -O -z -n smbfs://192.168.100.100/Shared -d
srv01/mondo/mondorescue-$(hostname)-$(date +'%F_%H_%M_%S_%Z') -E /mnt/backup

See /var/log/mondoarchive.log for details of backup run.
Checking sanity of your Linux distribution
Done.
Network share 192.168.100.100/Shared is not mounted. Trying to mount it for
mount: can't find 192.168.100.100/Shared in /etc/fstab
Unable to mount Network share 192.168.100.100/Shared. Please mount manually.

--000000000000c889e105f0e8e557
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">How do you backup to an already mounted CIFS share?<div><b=
r></div><div>I have things working backing up to ISO files on an already mo=
unted CIFS share. How can I use the -n switch for backup to the same share?=
 Or am I just doing it wrong?=C2=A0</div><div><br></div><div>mondo doesn&#3=
9;t like cifs:// so I&#39;m using smbfs. /etc/fstab doesn&#39;t like smbfs =
I think because it&#39;s not in /proc/filesystems</div><div><br></div><div>=
/etc/fstab:</div><div>//<a href=3D"http://192.168.100.100/Shared">192.168.1=
00.100/Shared</a> /mnt/backup cifs credentials=3D/etc/backup-credentials,ui=
d=3D995,gid=3D995<br></div><div><br></div><div># mondoarchive -N -3 -O -z -=
n smbfs://<a href=3D"http://192.168.100.100/Shared">192.168.100.100/Shared<=
/a> -d srv01/mondo/mondorescue-$(hostname)-$(date +&#39;%F_%H_%M_%S_%Z&#39;=
) -E /mnt/backup<br><br></div><div>See /var/log/mondoarchive.log for detail=
s of backup run.<br>Checking sanity of your Linux distribution<br>Done.<br>=
Network share <a href=3D"http://192.168.100.100/Shared">192.168.100.100/Sha=
red</a> is not mounted. Trying to mount it for <br>mount: can&#39;t find <a=
 href=3D"http://192.168.100.100/Shared">192.168.100.100/Shared</a> in /etc/=
fstab<br>Unable to mount Network share <a href=3D"http://192.168.100.100/Sh=
ared">192.168.100.100/Shared</a>. Please mount manually.<br></div><div><br>=
</div><div><br></div></div>

--000000000000c889e105f0e8e557--


--===============5624085118306626155==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5624085118306626155==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel

--===============5624085118306626155==--