[BackupPC-users] Added Directories and Incremental

2013-01-14 Thread Travis Schwenke
So, now that I have backuppc running, the Ubuntu distribution had setup up
a Tar backup of /etc for localhost.  I went in and added a couple of
locations to that backup. (TarShareName from GUI)

The next incremental looks like it found all the directories and added
them, but it didn't add *ANY *files.  Is this the correct behaviour?  Does
that mean I should kick off a full backup myself?  And if I manually
kickoff a backup will all the "rules" still be in effect (# of full backups
etc?).

Thanks, just trying to make sure things are working properly on my first
usage of this great tool.

Travis (new Backuppc user, and loving it)..
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Added Directories and Incremental

2013-01-14 Thread Les Mikesell
On Mon, Jan 14, 2013 at 8:52 AM, Travis Schwenke
 wrote:
> So, now that I have backuppc running, the Ubuntu distribution had setup up a
> Tar backup of /etc for localhost.  I went in and added a couple of locations
> to that backup. (TarShareName from GUI)
>
> The next incremental looks like it found all the directories and added them,
> but it didn't add ANY files.  Is this the correct behaviour?  Does that mean
> I should kick off a full backup myself?  And if I manually kickoff a backup
> will all the "rules" still be in effect (# of full backups etc?).
>
> Thanks, just trying to make sure things are working properly on my first
> usage of this great tool.

Tar based incrementals can only use the timestamp to determine which
files have changed since the backing full and thus should be included.
 The files it is not taking must have a timestamp older than the full
run.   If you use rsync for the xfer, it can compare the directories
to see which files are new.  You can force a full any time and the
specified number of backups will be kept - just note that the timespan
of those backups may not cover what you expected.

-- 
   Les Mikesell
 lesmikes...@gmail.com

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] windows/scripts

2013-01-14 Thread elrich
Good evening,

I'm trying to backup a windows server (2003/2008) machine.
Thing is, everytime I have to do a backup I must stop some services before.
I know that while using rsyncd backupPC has an option which is named 
'DumpPreUserCmd' and which allows to run a script before doing the backup but I 
don't understand how to use it in order to solve my problem.
If I understood right, the script that will be run is set on the backup machine 
not on the one you want to back up.

How could I make the script run on my windows machine? Where d I have to save 
the script?
 

I apologize for my english and thank you for your answers

+--
|This was sent by elrich.edw...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] rsyncd backup fails with "Can't write to socket"

2013-01-14 Thread Russell Poyner

 From the XferLog file:

Can't write 13944 bytes to socket
Read EOF: Operation timed out
Tried again: got 0 bytes
finish: removing in-process file 
Child is aborting
Done: 502 files, 43008274 bytes
Got fatal error during xfer (aborted by signal=PIPE)

The server is a freeBSD 9.1 system, and the client is a windows 7 
machine running the DeltaCopy rsync service.

The file in question *may* have been an open file, since the owner was 
logged in at the time.

Anyone know how to get one of these backups to actually complete?

Thanks
RP

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] windows/scripts

2013-01-14 Thread Michael Stowe

> Good evening,
>
> I'm trying to backup a windows server (2003/2008) machine.
> Thing is, everytime I have to do a backup I must stop some services
> before.
> I know that while using rsyncd backupPC has an option which is named
> 'DumpPreUserCmd' and which allows to run a script before doing the backup
> but I don't understand how to use it in order to solve my problem.
> If I understood right, the script that will be run is set on the backup
> machine not on the one you want to back up.
>
> How could I make the script run on my windows machine? Where d I have to
> save the script?

The scripts run on the backup server, so you'll need a way to remotely
execute Windows programs from the backup server.  The venerable winexe is
up to the task; the alternative to shutting down services is to use shadow
copies.  There's a solution for that here:

http://www.michaelstowe.com/backuppc/

It could stand to be better documented, but it's solid.  There's an
alternative solution using ssh on the wiki, IIRC.

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] rsyncd backup fails with "Can't write to socket"

2013-01-14 Thread Michael Stowe

>  From the XferLog file:
>
> Can't write 13944 bytes to socket
> Read EOF: Operation timed out
> Tried again: got 0 bytes
> finish: removing in-process file 
> Child is aborting
> Done: 502 files, 43008274 bytes
> Got fatal error during xfer (aborted by signal=PIPE)
>
> The server is a freeBSD 9.1 system, and the client is a windows 7
> machine running the DeltaCopy rsync service.
>
> The file in question *may* have been an open file, since the owner was
> logged in at the time.
>
> Anyone know how to get one of these backups to actually complete?
>
> Thanks
> RP

I'd normally expect rsync to skip over open files with a warning; you may
be running into a DeltaCopy bug, or it may react badly to certain
semantics for open files.

The "proper" way to copy open files is using Shadow Copies, but rsync
presents an interesting conundrum, because the shadow copy has to be
available before rsync is started, so running an rsync service probably
won't work (unless you go to the trouble or writing your own
rsync-compatible, non-Cygwin, VSS-capable service, I guess.  DeltaCopy is
not such a thing.)

At any rate, there are at least two VSS/rsync based solutions, but I'm not
aware of an rsync service working with open files at all.

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] Fwd: Re: Restore completes but doesn't end

2013-01-14 Thread backuppc
On Sun, Jan 13, 2013, at 10:38 PM,Adam Goryachev 
websitemanagers.com.au> wrote:

It looks like you were working first thing Monday morning in Australia
but I was last thing Sunday night in New York.  So just getting back
now...

>> Same with 2093
>>
>> root  temp:/# strace -p 2093
>> Process 2093 attached - interrupt to quit
>> select(5, [4], [], NULL, {39, 26433})   = 0 (Timeout)
>> select(5, [4], [], NULL, {60, 0})   = 0 (Timeout)
>> select(5, [4], [], NULL, {60, 0})   = 0 (Timeout)
>> select(5, [4], [], NULL, {60, 0})   = 0 (Timeout)
>> select(5, [4], [], NULL, {60, 0})   = 0 (Timeout)
>> select(5, [4], [], NULL, {60, 0}
>
> So these two are not yet dead, they are waiting for something to happen
> which hasn't. They will eventually timeout, or get what they are waiting
> for. See below.
>
>> The oldest, 2019 just gave me one line and sat there without a
>> "timeout":
>>
>> root  temp:/# strace -p 2019
>> Process 2019 attached - interrupt to quit
>> select(6, [4 5], NULL, NULL, NULL
>
> Looks like you are using rsyncd instead of rsync over ssh, so this is
> probably waiting for new TCP connections, and is not relevant to
> backuppc (at this stage in the process).
>
>> Over at the machine running backuppc, there's only one rsync PID and it
>> gives a similar response:
>>
>> root  eeebox:/# pidof rsync
>> 24053
>> root  eeebox:/# strace -p 24053
>> Process 24053 attached - interrupt to quit
>> select(6, [4 5], NULL, NULL, NULL



>> Over at the backuppc box, the latest running processes are:
...

>> /usr/share/backuppc/bin/BackupPC_restore temp temp restoreReq.24065.0
>> 24280 pts/2R+ 0:00 ps ax
>> root  eeebox:/#
>
>
> Again, use ps axf for an easier to read list... but it looks like the
> interesting process is pid 24076 which is the backuppc process talking
> to rsyncd on the remote host. Use strace to see what it is doing

Here's the tail end of ps axf:

 9397 ?S  0:49 /usr/bin/perl
 /usr/share/backuppc/bin/BackupPC -d
 9403 ?S  3:45  \_ /usr/bin/perl
 /usr/share/backuppc/bin/BackupPC_trashClean
24076 ?S  0:11  \_ /usr/bin/perl
/usr/share/backuppc/bin/BackupPC_restore temp temp restoreReq.24065.0
14634 ?S  0:00 network-admin
14636 ?S  0:00 /usr/sbin/system-tools-backends
14638 ?S  0:00 /usr/bin/perl
/usr/share/system-tools-backends-2.0/scripts/SystemToolsBackends.pl -m
Platform
24053 ?S  0:00 /usr/bin/rsync --no-detach --daemon --config
/etc/rsyncd.conf
root@eeebox:/#

and the strace:

root@eeebox:/# strace -p 24076
Process 24076 attached - interrupt to quit
select(8, [5], NULL, [5], NULL

Yes, I use rsyncd for the backup and restore protocol for both my linux
and windows boxes (use cygwin rsyncd as a service on the windows boxes).

JS

> Regards,
> Adam

P.S. unless it is bad list etiquette (don't think so), please cc or bcc
backu...@sundquist.imapmail.org with responses since I have the e-mail
delivery turned off for this list and read the responses on gmane.  This
way I can respond to the correct e-mail and keep the threading correct.

--
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Fwd: Re: Restore completes but doesn't end

2013-01-14 Thread Adam Goryachev
On 15/01/13 13:13, backu...@sundquist.imapmail.org wrote:
> On Sun, Jan 13, 2013, at 10:38 PM,Adam Goryachev 
> websitemanagers.com.au> wrote:
>
> Here's the tail end of ps axf:
>
>  9397 ?S  0:49 /usr/bin/perl
>  /usr/share/backuppc/bin/BackupPC -d
>  9403 ?S  3:45  \_ /usr/bin/perl
>  /usr/share/backuppc/bin/BackupPC_trashClean
> 24076 ?S  0:11  \_ /usr/bin/perl
> /usr/share/backuppc/bin/BackupPC_restore temp temp restoreReq.24065.0
> root@eeebox:/#
>
> and the strace:
>
> root@eeebox:/# strace -p 24076
> Process 24076 attached - interrupt to quit
> select(8, [5], NULL, [5], NULL
>
> Yes, I use rsyncd for the backup and restore protocol for both my linux
> and windows boxes (use cygwin rsyncd as a service on the windows boxes).

OK, so that is the right process, and it tells us that it is waiting for
something to happen. Is the remote box a windows machine (I think it was
but I forget now)? I've had this exact issue with windows rsyncd before
when doing backups more than restores, and for me, the solution was one
or more of:
1) Upgrade to the newest version of rsync
2) Upgrade to the newest version of ssh and use rsync over ssh or rsyncd
over ssh

I'm not sure what else I did, but now I use the vss/rsync method which
mostly/usually works

Regards,
Adam

-- 
Adam Goryachev
Website Managers
www.websitemanagers.com.au


--
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] windows/scripts

2013-01-14 Thread elrich
Hello Michael,

first of all thank you for answering me.
I'm going to use winexe to test it out since the teacher wants us to stop the 
service.
Whil reading the read me file, I saw that winexe is using the samba protocole.
Since my windows server isn't in the same network, I'll to go throw the 
internet but I head that samba isn't secured.
Is using winexe still a good choice? Even if I have to go throw the internet?

Thank you

+--
|This was sent by elrich.edw...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/