Re: Restroing a Linux server/contents to a Windows server/share?

Craig Barratt via BackupPC-devel <[email protected]> Sun, 24 Dec 2017 03:51:34 -0800
Newsgroups gmane.comp.sysutils.backup.backuppc.devel
Message-ID <CADSzEFiL83rAY1_DdFPvP+LJG4_2Gq8u8g6_sQhmv+eqB1p4Ag@mail.gmail.com>
--===============5420745953538925386==
Content-Type: multipart/alternative; boundary="001a114a95ce1e0a1a056114ad8b"

--001a114a95ce1e0a1a056114ad8b
Content-Type: text/plain; charset="UTF-8"

It doesn't look like the backup of your windows machine worked at all - the
error says access denied for C$.  So it's likely the restore failed for a
similar reason.  Please look in the RestoreLOG file.

Craig

On Mon, Dec 18, 2017 at 3:32 AM, Marc Gilliatt <[email protected]>
wrote:

> I've been tasked to restore a Linux server(ukgitlab2), because one of its
> raid drives has failed, to a Windows server(ukntmbuildarc) so the whole
> office has access to it.
>
> I went into ukgitlab2 browse backups page in BackupPC, and selected all
> the files to restore and then selected ukntmbuildarc to where I want it to
> be restored too. There's a share on ukntmbuildarc called /ukgitlab2 so the
> whole office has access to it.
>
> Every time I select restore now, I get the following error in the general
> logs:
>
> 2017-12-18 11:11:16 Started restore on ukntmbuildarc <http://backuppc01.dsdb.int/backuppc/index.cgi?host=ukntmbuildarc> (pid=41732)
> 2017-12-18 11:11:21 Restore failed on ukntmbuildarc <http://backuppc01.dsdb.int/backuppc/index.cgi?host=ukntmbuildarc> (BackupPC_tarCreate failed)
>
>
> Contents of file /var/lib/backuppc/pc/ukntmbuildarc/XferLOG.bad.z,
> modified 2017-12-18 11:01:00
>
> Running: /usr/bin/smbclient \\\\ukntmbuildarc\\C\$ -U backuppc -E -d 1 -c tarmode\ full -Tc -
> full backup started for share C$
> Xfer PIDs are now 41469,41468
> Domain=[DSDAMBUSTER] OS=[Windows Server 2016 Standard 14393] Server=[Windows Server 2016 Standard 6.3]
> tree connect failed: NT_STATUS_ACCESS_DENIED
> Domain=[DSDAMBUSTER] OS=[Windows Server 2016 Standard 14393] Server=[Windows Server 2016 Standard 6.3]
> tree connect failed: NT_STATUS_ACCESS_DENIED
> tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal
> Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_notification.sh 0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPostUserCmd
> Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_notification.sh 0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPostUserCmd
> Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_notification.sh 0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPostUserCmd
> exiting after signal INT
> Not saving this as a partial backup since it has fewer files than the prior one (got 0 and 0 files versus 0)
>
>
> Contents of file /var/lib/backuppc/pc/ukntmbuildarc/XferLOG.bad.z,
> modified 2017-12-18 11:01:00 (Extracting only Errors)
>
> Running: /usr/bin/smbclient \\\\ukntmbuildarc\\C\$ -U backuppc -E -d 1 -c tarmode\ full -Tc -
> full backup started for share C$
> Xfer PIDs are now 41469,41468
> [ skipped 1 lines ]
> tree connect failed: NT_STATUS_ACCESS_DENIED
> [ skipped 1 lines ]
> tree connect failed: NT_STATUS_ACCESS_DENIED
> tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal
> Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_notification.sh 0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPostUserCmd
> Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_notification.sh 0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPostUserCmd
> Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_notification.sh 0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPostUserCmd
> exiting after signal INT
> Not saving this as a partial backup since it has fewer files than the prior one (got 0 and 0 files versus 0)
>
>
> I tried to do a full backup on ukntmbuildarc to see if BackupPC has access
> to it, and it did perform a full backup of it. So it has access to it.
>
> I tried restoring ukgitlab2 to a Linux server instead of a Windows server,
> and the restore worked perfeclty! So is this because I backed up ukgitlab2
> using rsync, and the only way you can restore to a  Windows server is via
> SMB maybe?
>
> I'm not sure on what configuration changes I need to make in order to
> restore a Linux server/contents to a Windows server/share?
>
> Any help would be truly appreciated, thank you.
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> BackupPC-devel mailing list
> [email protected]
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>

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

<div dir=3D"ltr">It doesn&#39;t look like the backup of your windows machin=
e worked at all - the error says access denied for C$.=C2=A0 So it&#39;s li=
kely the restore failed for a similar reason.=C2=A0 Please look in the Rest=
oreLOG file.<div><br></div><div>Craig</div></div><div class=3D"gmail_extra"=
><br><div class=3D"gmail_quote">On Mon, Dec 18, 2017 at 3:32 AM, Marc Gilli=
att <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex">




<div dir=3D"ltr">
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
I&#39;ve been tasked to restore a Linux server(ukgitlab2), because one of i=
ts raid drives=C2=A0has failed, to a Windows server(ukntmbuildarc) so the w=
hole office has access to it.</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
I went into ukgitlab2 browse backups page in BackupPC, and selected all the=
 files to restore and then selected ukntmbuildarc to where I want it to be =
restored too. There&#39;s a share on ukntmbuildarc called /ukgitlab2 so the=
 whole office has access to it.=C2=A0</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
Every time I select restore=C2=A0now, I get the following error in the gene=
ral logs:</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<pre style=3D"color:rgb(0,0,0);font-size:13.3333px">2017-12-18 11:11:16 Sta=
rted restore on <a href=3D"http://backuppc01.dsdb.int/backuppc/index.cgi?ho=
st=3Dukntmbuildarc" style=3D"font-family:tahoma,arial,sans-serif,helvetica;=
color:rgb(51,51,255)" target=3D"_blank">ukntmbuildarc</a> (pid=3D41732)
2017-12-18 11:11:21 Restore failed on <a href=3D"http://backuppc01.dsdb.int=
/backuppc/index.cgi?host=3Dukntmbuildarc" style=3D"font-family:tahoma,arial=
,sans-serif,helvetica;color:rgb(51,51,255)" target=3D"_blank">ukntmbuildarc=
</a> (BackupPC_tarCreate failed)</pre>
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<p style=3D"color:rgb(0,0,0);font-family:tahoma,arial,sans-serif,helvetica;=
font-size:13.3333px">
Contents of file=C2=A0<tt>/var/lib/backuppc/pc/<wbr>ukntmbuildarc/XferLOG.b=
ad.z</tt>, modified 2017-12-18 11:01:00</p>
<pre style=3D"color:rgb(0,0,0);font-size:13.3333px">Running: /usr/bin/smbcl=
ient \\\\ukntmbuildarc\\C\$ -U backuppc -E -d 1 -c tarmode\ full -Tc -
full backup started for share C$
Xfer PIDs are now 41469,41468
Domain=3D[DSDAMBUSTER] OS=3D[Windows Server 2016 Standard 14393] Server=3D[=
Windows Server 2016 Standard 6.3]
tree connect failed: NT_STATUS_ACCESS_DENIED
Domain=3D[DSDAMBUSTER] OS=3D[Windows Server 2016 Standard 14393] Server=3D[=
Windows Server 2016 Standard 6.3]
tree connect failed: NT_STATUS_ACCESS_DENIED
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 f=
ilesTotal, 0 sizeTotal
Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_<wbr>notification.sh =
0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPo=
stUserCmd
Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_<wbr>notification.sh =
0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPo=
stUserCmd
Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_<wbr>notification.sh =
0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPo=
stUserCmd
exiting after signal INT
Not saving this as a partial backup since it has fewer files than the prior=
 one (got 0 and 0 files versus 0)</pre>
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<p style=3D"color:rgb(0,0,0);font-family:tahoma,arial,sans-serif,helvetica;=
font-size:13.3333px">
Contents of file=C2=A0<tt>/var/lib/backuppc/pc/<wbr>ukntmbuildarc/XferLOG.b=
ad.z</tt>, modified 2017-12-18 11:01:00 (Extracting only Errors)</p>
<pre style=3D"color:rgb(0,0,0);font-size:13.3333px">Running: /usr/bin/smbcl=
ient \\\\ukntmbuildarc\\C\$ -U backuppc -E -d 1 -c tarmode\ full -Tc -
full backup started for share C$
Xfer PIDs are now 41469,41468
[ skipped 1 lines ]
tree connect failed: NT_STATUS_ACCESS_DENIED
[ skipped 1 lines ]
tree connect failed: NT_STATUS_ACCESS_DENIED
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 f=
ilesTotal, 0 sizeTotal
Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_<wbr>notification.sh =
0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPo=
stUserCmd
Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_<wbr>notification.sh =
0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPo=
stUserCmd
Executing DumpPostUserCmd: /var/lib/backuppc/backuppc_<wbr>notification.sh =
0 ukntmbuildarc full ukntmbuildarc ukntmbuildarc C$ smb /usr/bin/ssh DumpPo=
stUserCmd
exiting after signal INT
Not saving this as a partial backup since it has fewer files than the prior=
 one (got 0 and 0 files versus 0)</pre>
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
I tried to do a full backup on=C2=A0ukntmbuildarc to see if BackupPC has ac=
cess to it, and it did perform a full backup of it. So it has access to it.=
=C2=A0</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
I tried restoring ukgitlab2 to a Linux server instead of a Windows server, =
and the restore worked perfeclty! So is this because I backed up ukgitlab2 =
using rsync, and the only way you can restore=C2=A0to a=C2=A0 Windows serve=
r is via SMB maybe?</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
I&#39;m=C2=A0not sure on what configuration changes I need to make in order=
 to restore a Linux server/contents to a Windows server/share?</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
Any help would be truly appreciated, thank you.=C2=A0</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color=
:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
</div>

<br>------------------------------<wbr>------------------------------<wbr>-=
-----------------<br>
Check out the vibrant tech community on one of the world&#39;s most<br>
engaging tech sites, Slashdot.org! <a href=3D"http://sdm.link/slashdot" rel=
=3D"noreferrer" target=3D"_blank">http://sdm.link/slashdot</a><br>_________=
_____________________<wbr>_________________<br>
BackupPC-devel mailing list<br>
<a href=3D"mailto:[email protected]">BackupPC-devel@list=
s.<wbr>sourceforge.net</a><br>
List:=C2=A0 =C2=A0 <a href=3D"https://lists.sourceforge.net/lists/listinfo/=
backuppc-devel" rel=3D"noreferrer" target=3D"_blank">https://lists.sourcefo=
rge.net/<wbr>lists/listinfo/backuppc-devel</a><br>
Wiki:=C2=A0 =C2=A0 <a href=3D"http://backuppc.wiki.sourceforge.net" rel=3D"=
noreferrer" target=3D"_blank">http://backuppc.wiki.<wbr>sourceforge.net</a>=
<br>
Project: <a href=3D"http://backuppc.sourceforge.net/" rel=3D"noreferrer" ta=
rget=3D"_blank">http://backuppc.sourceforge.<wbr>net/</a><br>
<br></blockquote></div><br></div>

--001a114a95ce1e0a1a056114ad8b--


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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============5420745953538925386==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
BackupPC-devel mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

--===============5420745953538925386==--