BackupPC-users

Re: [BackupPC-users] Error Backing up Servers

2012-08-20 12:50:16
Subject: Re: [BackupPC-users] Error Backing up Servers
From: Olivier Ragain <oragain AT chryzo DOT net>
To: backuppc-users AT lists.sourceforge DOT net
Date: Mon, 20 Aug 2012 18:48:56 +0200
On 20/08/2012 17:53, gshergill wrote:
> Hi Ray,
>
> ---------
> A command line like:
>
> /usr/share/BackupPC/bin/BackupPC_zcat XferLOG.0.z
>
> Will get at these files.  Not sure why the developers didn't use standard 
> gzip format, but at least there's a tool to handle them.
>
> --------
> Thanks a lot, worked perfectly.
>
> --------
> Also can you give us your logs (errors)?
>
> Regards
> Olivier
> --------
>
> The following is the output from the log file;
>
> root@backuppc:/var/lib/backuppc/pc/win-du57fe7dcg3# 
> /usr/share/backuppc/bin/BackupPC_zcat XferLOG.7.z
> Running: /usr/bin/smbclient \\\\win-du57fe7dcg3\\C\$\$ -U Administrator -E -d 
> 1 -c tarmode\ full -Tc -
> full backup started for share C$$
> Xfer PIDs are now 14257,14256
> Domain=[WIN-DU57FE7DCG3] OS=[Windows Server (R) 2008 Standard 6002 Service 
> Pack 2] Server=[Windows Server (R) 2008 Standard 6.0]
> tarmode is now full, system, hidden, noreset, verbose
> NT_STATUS_SHARING_VIOLATION opening remote file \Boot\BCD (\Boot\)
> NT_STATUS_SHARING_VIOLATION listing \Boot\*
> NT_STATUS_SHARING_VIOLATION listing \\*
> tar: dumped 7 files and directories
> Total bytes written: 1536
>    create d 755       0/0           0 $Recycle.Bin
>    create d 755       0/0           0 
> $Recycle.Bin/S-1-5-21-2818393643-1372768726-2949197983-1000
>    pool     644       0/0         129 
> $Recycle.Bin/S-1-5-21-2818393643-1372768726-2949197983-1000/desktop.ini
>    create d 755       0/0           0 
> $Recycle.Bin/S-1-5-21-2818393643-1372768726-2949197983-500
>    pool     644       0/0         129 
> $Recycle.Bin/S-1-5-21-2818393643-1372768726-2949197983-500/desktop.ini
>    pool     644       0/0          24 autoexec.bat
>    create d 755       0/0           0 Boot
> tarExtract: Done: 0 errors, 3 filesExist, 282 sizeExist, 296 sizeExistComp, 3 
> filesTotal, 282 sizeTotal
>
> Hope this helps.
>
> Thank you.
>
> Kind Regards,
>
> gshergill
>
> +----------------------------------------------------------------------
> |This was sent by gashergill AT gmail DOT com via Backup Central.
> |Forward SPAM to abuse AT backupcentral DOT com.
> +----------------------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users AT lists.sourceforge DOT net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/

Hello,

Ray Frush gave a way to access those files, though there is another way. 
On the web portal, go to your machine. On the machine homepage you 
should have a list of backups, even the partial ones. From that page a 
bit down you can access the logs. (At least it is the case for me).

If you want to check what smbclient can see as shares you can use the 
following command line:
smbclient -L SERVERNAME -U USERNAME (-I instead of L if you are going by IP)

You'll be asked for the password associated with the username, and you 
should get the following output:
----
Domain=[DOMAIN] OS=[Windows Server 2008 R2 Datacenter 7601 Service Pack 
1] Server=[Windows Server 2008 R2 Datacenter 6.1]
         Sharename       Type      Comment
         ---------       ----      -------
         ADMIN$          Disk      Administration à distance
         C$              Disk      Partage par défaut
         CertEnroll      Disk      Partage de services de certificats 
Active Directory
         IPC$            IPC       IPC distant
         NETLOGON        Disk      Partage de serveur d'accès
         Public          Disk
         Sec             Disk
         Services        Disk
         SQ              Disk
         SYSVOL          Disk      Partage de serveur d'accès
Domain=[DOMAIN] OS=[Windows Server 2008 R2 Datacenter 7601 Service Pack 
1] Server=[Windows Server 2008 R2 Datacenter 6.1]
         Server               Comment
         ---------            -------
         Workgroup            Master
         ---------            -------
----
Now if you want to list what you can see in a share you can use:
smbclient \\\\SERVERNAME\\C$$ -U USERNAME (yes double the slashes so 
they are escaped)
Once connected, use "ls" to list everything that can be seen. In my case 
I get something like:
----
Domain=[GAULTETFREMONT] OS=[Windows Server 2008 R2 Datacenter 7601 
Service Pack 1] Server=[Windows Server 2008 R2 Datacenter 6.1]
smb: \> ls
   $Recycle.Bin                      DHS        0  Mon May 16 20:12:15 2011
   Certificats                         D        0  Thu Jul 26 14:43:00 2012
   DFSRoots                            D        0  Thu Mar  8 09:10:10 2012
   Documents and Settings            DHS        0  Tue Jul 14 07:06:44 2009
   ExchangeSetupLogs                   D        0  Mon May 16 20:26:30 2011
   Hotfix                              D        0  Mon May 16 19:00:33 2011
   inetpub                             D        0  Mon May 16 19:15:05 2011
   Installs                            D        0  Fri Jul  8 10:47:08 2011
   pagefile.sys                      AHS 4294500352  Sun Aug 19 03:33:24 
2012
   PerfLogs                            D        0  Tue Jul 14 05:20:08 2009
   Program Files                      DR        0  Mon Aug  6 12:32:37 2012
   Program Files (x86)                DR        0  Thu Jul 26 17:18:57 2012
   ProgramData                        DH        0  Tue Aug 14 09:01:49 2012
   Recovery                          DHS        0  Tue Apr 19 09:40:15 2011
   Scripts                             D        0  Wed Oct  5 14:59:12 2011
   System Volume Information         DHS        0  Mon Oct 17 14:59:17 2011
   Temp                                D        0  Sun Aug 19 03:37:08 2012
   Users                              DR        0  Tue Jul  3 11:09:46 2012
   Windows                             D        0  Sun Aug 19 03:04:40 2012

                 40857 blocks of size 1048576. 19141 blocks available
----

After that, I am out of idea as to why smbclient sees only a few files.

Regards

PS: what is the rule on this group about post responding or pre 
responding to emails ^^ ?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/