[BackupPC-users] Jeff, script question (was Re: How to run night manually?)

2010-09-22 Thread Jeffrey J. Kosowsky
Robin Lee Powell wrote at about 12:38:34 -0700 on Tuesday, September 21, 2010:
  On Mon, Sep 20, 2010 at 11:08:17AM +0200, Sorin Srbu wrote:
   -Original Message- From: Robin Lee Powell
   [mailto:rlpow...@digitalkingdom.org] Sent: Monday, September 20,
   2010 3:47 AM To: sorin.s...@orgfarm.uu.se; General list for user
   discussion, questions and support Subject: How to run night
   manually?
   
   On Fri, Sep 17, 2010 at 01:48:55PM +0200, Sorin Srbu wrote:
Wasn't there a gotcha' running the nightly cleanup manually?
   
   Was there?  I'd very much like to hear about it.
   
   What's the right way to do that?
   
   I based my comment on the warning(s) given in the
   http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=How_to_delete_backups
   wiki article. You might find more articles of use to you on
   http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Special%3ASearchsearch=BackupPC_nightlygo=Go.
  
  Oooh,
  http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=BackupPC_FixLinks
  looks very nifty!
  
  My question is (for Jeff, really): when you run nightly via the
  server like that, does it respect MaxBackupPCNightlyJobs and
  BackupPCNightlyPeriod ?  I wanted to force a do everything, please
  run.
  
  -Robin
  
Assuming you are talking to about BackupPC_fixLinks, the script calls
a function run_nightly from the library jLib.pm (my set of library
routines) that in turn uses the BackupPC server messaging system to
run the standard BackupPC_nightly routine. This is the sanctioned,
generally safe way to call various BackupPC routines.

Honestly, I never really looked into whether it enforces the
constraints you mention above. But looking at the code, it seems that
these constraints are enforced only by the BackupPC main routine
(i.e. daeomon) itself (which then after checking such constraints uses
the same server messaging system to actually call the BackupPC_nightly
routine). Therefore my standalone routine would NOT enforce such constraints.

But that is really what I think you want in most cases. Because if you
want BackupPC_nightly to be run as part of the regular BackupPC daemon
scheduling conditions then leave out the -c flag that manually triggers
BackupPC_nightly to run immediately. If you want to force a run now,
then add the -c flag.

Hope this clarifies

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] Mail problem with BPC

2010-09-22 Thread Sorin Srbu
Hi all,

Getting the below error in my BPC logs, but am not quite sure where to start
look for the errant t. The path to mail is correct, it's just that it
seems an option t is added to the mail command.

2010-09-22 03:31:33 BackupPC_nightly now running BackupPC_sendEmail
2010-09-22 03:31:35  admin : /bin/mail: invalid option -- t
2010-09-22 03:31:35  admin : Usage: mail [-iInv] [-s subject] [-c cc-addr]
[-b bcc-addr] to-addr ...
2010-09-22 03:31:35  admin : [-- sendmail-options ...]
2010-09-22 03:31:35  admin :mail [-iInNv] -f [name]
2010-09-22 03:31:35  admin :mail [-iInNv] [-u user]

Thanks for any help or hints.

-- 
BW,
Sorin
---
# Sorin Srbu[Sysadmin, Systems Engineer]
# Dept of Medicinal Chemistry,  Phone: +46 (0)18-4714482 3 signals GSM
# Div of Org Pharm Chem,Mobile: +46 (0)701-718023
# Box 574, Uppsala University,  Fax: +46 (0)18-4714482
# SE-751 23 Uppsala, Sweden Visit: BMC, Husargatan 3, D5:512b
#   Web: http://www.orgfarm.uu.se
---
# ()  ASCII ribbon campaign - Against html E-mail 
# /\
#
# MotD follows:
# Multitasking /adj./ 3 PCs and a chair with wheels!



smime.p7s
Description: S/MIME cryptographic signature
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
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] Some directory are not in the backup

2010-09-22 Thread IvyAlice
Hello everybody,

Using rsyncd method, I tried tu backup all the /etc directory
On the client, in /etc/rsyncd.conf I got
---
…include from = /etc/rsyncd.backupETC.include
---

And in the /etc/rsyncd.backupETC.include I just have
---
/etc/***
---

So in my backups, I thought I see all the datas. But when I go to the 
/etc/pam.d or in the /etc/vim directory, I got no files even thought the files 
exists on the machines I backed up.

So some files missing, but the log show no error, and worst, in the XferLOG.x.z 
I see the missing files
---
  create d 755   0/04096 etc/pam.d
  create   644   0/0 182 etc/pam.d/atd
  create   644   0/0 384 etc/pam.d/chfn
  create   644   0/0 581 etc/pam.d/chsh
  create   644   0/0 392 etc/pam.d/common-account
  create   644   0/0 436 etc/pam.d/common-auth
  create   644   0/01212 etc/pam.d/common-password
ect..
---

I really don’t understand why some sub-directory are void.

What can I test now ? 

Best regards.

Ivy

+--
|This was sent by ivy-al...@hotmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
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] Mail problem with BPC

2010-09-22 Thread Les Mikesell
On 9/22/2010 2:12 AM, Sorin Srbu wrote:
 Hi all,

 Getting the below error in my BPC logs, but am not quite sure where to start
 look for the errant t. The path to mail is correct, it's just that it
 seems an option t is added to the mail command.

 2010-09-22 03:31:33 BackupPC_nightly now running BackupPC_sendEmail
 2010-09-22 03:31:35  admin : /bin/mail: invalid option -- t
 2010-09-22 03:31:35  admin : Usage: mail [-iInv] [-s subject] [-c cc-addr]
 [-b bcc-addr] to-addr ...
 2010-09-22 03:31:35  admin : [-- sendmail-options ...]
 2010-09-22 03:31:35  admin :mail [-iInNv] -f [name]
 2010-09-22 03:31:35  admin :mail [-iInNv] [-u user]

 Thanks for any help or hints.

The -t option is for sendmail to tell it the To: address is already in 
the headers. You need to use a sendmail-compatible program in 
$Conf{SendmailPath}.  Postfix and other mailers generally supply one if 
you don't run sendmail.

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


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] Some directory are not in the backup

2010-09-22 Thread Les Mikesell
On 9/22/2010 4:34 AM, IvyAlice wrote:
 Hello everybody,

 Using rsyncd method, I tried tu backup all the /etc directory
 On the client, in /etc/rsyncd.conf I got
 ---
 …include from = /etc/rsyncd.backupETC.include
 ---

 And in the /etc/rsyncd.backupETC.include I just have
 ---
 /etc/***
 ---

 So in my backups, I thought I see all the datas. But when I go to the 
 /etc/pam.d or in the /etc/vim directory, I got no files even thought the 
 files exists on the machines I backed up.

 So some files missing, but the log show no error, and worst, in the 
 XferLOG.x.z I see the missing files
 ---
create d 755   0/04096 etc/pam.d
create   644   0/0 182 etc/pam.d/atd
create   644   0/0 384 etc/pam.d/chfn
create   644   0/0 581 etc/pam.d/chsh
create   644   0/0 392 etc/pam.d/common-account
create   644   0/0 436 etc/pam.d/common-auth
create   644   0/01212 etc/pam.d/common-password
 ect..
 ---

 I really don’t understand why some sub-directory are void.

 What can I test now ?

First, since that looks like a unix-like target, is there some reason 
you don't want to use rsync over ssh instead of configuring rsyncd?

You can test if the problem is your rsyncd config by running a stock 
rsync against it like:
rsync -av  host::module
(note the double :'s).  If you don't give a destination you should see a 
directory listing of the files - or you can add a local target directory 
to copy to.  If all you want is /etc you could just have a module with 
that as the path and omit any include/excludes.

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



--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] Restore takes way too long and the fails

2010-09-22 Thread Robin Lee Powell
There is something *very* wrong with either the tar used to make the
archive, or the tar used to restore.  I wouldn't trust anything it
outputs at all.

What version of tar on both ends?

Have you tried getting a zip archive from the GUI instead?  Or using
BackupPC_zipCreate on the CLI?

-Robin

On Tue, Sep 14, 2010 at 03:22:28PM +0200, Marcus Hardt wrote:
 Update:
 
 On Tuesday 14 September 2010 13:16:01 Marcus Hardt wrote:
  Update:
  
  tar xf restore.tar  will fail, if restore.tar is pretty big
 
 fails
 
  cat restore.tar | tar x   seems to work
 
 fails
 
 But:
 using the 'i' option for 
  -i, --ignore-zeros
ignore zeroed blocks in archive (means EOF)
 
 makes tar wander through the archive even thought it might have detected EOF 
 markers (i.e. two consecutive zero-filled records according to the 
 wikipedia page of the tar format)
 
 I observed several warnings in my cmdline:
 
   tar tfi restore.tar |wc -l
 tar: Skipping to next header
 tar: Skipping to next header
 tar: Skipping to next header
 tar: Skipping to next header
 tar: Skipping to next header
 tar: Skipping to next header
 tar: Skipping to next header
 tar: Skipping to next header
 tar: Exiting with failure status due to previous errors
 387781
 
 I can only hope this works and helps others.
 
 M.
 
 
  And I thought windows was terrible...
  
  M.
  
  On Monday 13 September 2010 23:26:42 Les Mikesell wrote:
   On 9/13/2010 10:49 AM, Marcus Hardt wrote:
Hi,

btw:  this problem seems to be client unspecific. I see the same
errors using smbclient and rsync via ssh.
   
   But windows specific?  Are you sure the windows user has write access
   and the file isn't locked by something else having it open?
   
And, of course I'm in deep shit now, since I told everone how super
great backuppc was...
   
   There is at least the option of downloading an archive file through a
   browser and restoring from that.
 -- 
 M.
 
 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 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/

-- 
http://singinst.org/ :  Our last, best hope for a fantastic future.
Lojban (http://www.lojban.org/): The language in which this parrot
is dead is ti poi spitaki cu morsi, but this sentence is false
is na nei.   My personal page: http://www.digitalkingdom.org/rlp/

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] Jeff, script question (was Re: How to run night manually?)

2010-09-22 Thread Robin Lee Powell
On Wed, Sep 22, 2010 at 02:31:29AM -0400, Jeffrey J. Kosowsky wrote:
 Honestly, I never really looked into whether it enforces the
 constraints you mention above. But looking at the code, it seems
 that these constraints are enforced only by the BackupPC main
 routine (i.e. daeomon) itself (which then after checking such
 constraints uses the same server messaging system to actually call
 the BackupPC_nightly routine). Therefore my standalone routine
 would NOT enforce such constraints.

*Fantastic*.  Thank you!  That's exactly what I wanted.

-Robin

-- 
http://singinst.org/ :  Our last, best hope for a fantastic future.
Lojban (http://www.lojban.org/): The language in which this parrot
is dead is ti poi spitaki cu morsi, but this sentence is false
is na nei.   My personal page: http://www.digitalkingdom.org/rlp/

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] smbclient and -N option

2010-09-22 Thread Xuo
 Hi,

I want to backup a directory of a PC running XP from my Linux BackupPC
server.
The command I use is smbclient with the following arguments :
/usr/bin/smbclient ordi_de_pauline\\Users -U admin -E -d 1 -c
tarmode\ full -Tc -

The important thing is that I had to remove the -N option (no password)
of smbclient which is used by defaults in config.pl.
With the -N option, I had a tree connect failed:
NT_STATUS_ACCESS_DENIED error.

I hope it can be useful to somebody.

Regards.

Xuo.

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] smbclient and -N option

2010-09-22 Thread Les Mikesell
On 9/22/2010 1:53 PM, Xuo wrote:
   Hi,

 I want to backup a directory of a PC running XP from my Linux BackupPC
 server.
 The command I use is smbclient with the following arguments :
 /usr/bin/smbclient ordi_de_pauline\\Users -U admin -E -d 1 -c
 tarmode\ full -Tc -

 The important thing is that I had to remove the -N option (no password)
 of smbclient which is used by defaults in config.pl.
 With the -N option, I had a tree connect failed:
 NT_STATUS_ACCESS_DENIED error.

 I hope it can be useful to somebody.


I think this is specific to the version of samba/smbclient on the 
backuppc server - but I don't know which version(s) had this issue.

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



--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] smbclient and -N option

2010-09-22 Thread Xuo
 Le 22/09/2010 21:26, Les Mikesell a écrit :
 On 9/22/2010 1:53 PM, Xuo wrote:
   Hi,

 I want to backup a directory of a PC running XP from my Linux BackupPC
 server.
 The command I use is smbclient with the following arguments :
 /usr/bin/smbclient ordi_de_pauline\\Users -U admin -E -d 1 -c
 tarmode\ full -Tc -

 The important thing is that I had to remove the -N option (no password)
 of smbclient which is used by defaults in config.pl.
 With the -N option, I had a tree connect failed:
 NT_STATUS_ACCESS_DENIED error.

 I hope it can be useful to somebody.

 I think this is specific to the version of samba/smbclient on the 
 backuppc server - but I don't know which version(s) had this issue.

Hi,

I use version 3.5.3 of smbclient running under Mandriva 2010.1.

Regards.

xuo.

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] excludes for smb HOWTO

2010-09-22 Thread Chris Purves
I had a lot of trouble when trying to exclude certain files and directories for 
a backup using smb for the transfer method.  I was unable to find solutions in 
this mailing list or the samba mailing list and so I did a bunch of testing 
with smbclient.  I found that for smbclient to properly match it was necessary 
to use '\' for directory separators (not '/') and in addition the last 
separator must be a double backslash ('\\') and in addition to that each 
backslash must be escaped with, of course, a backslash. (quadruple backslash in 
places)

An example:

$Conf{BackupFilesExclude} = {
   '*' = [
 'Application Data',
 '\\DocumentsMy Music',
 '\\Downloads\\big_filesdebian_install_dvd.iso
 'ntuser.dat.LOG1',
 '*.lock',
 '*\\Thumbs.db',
 '*\\.*'
   ]
};

In the above example, the Application Data directory is excluded.  To exclude 
\Documents\My Music, the quadruple backslash is placed before My Music and 
not Documents.  Next the file debian_install_dvd.iso in the directory 
Downloads\big_files is excluded.  Note again that the last directory 
separator has a quadruple backslash.  The next line excludes the file 
ntuser.dat.LOG1 in the root directory.  The next line excludes any .lock 
file.  Note that the asterisk at the beginning not only matches the first part 
of the filename but also the directory tree.  When matching files it is 
necessary to match the directories as well, which leads to the next line which 
excludes the Thumbs.db file found in any directory.  The last line excludes 
any file or directory which begins with '.'.

Note that if you use the BackupPC GUI, the backslashes do not need to be 
escaped.  You can use single and double backslashes instead of double and 
quadruple.

This is how it worked for me using BackupPC 3.1.0 with samba 3.2.5 on Debian 
Lenny backing up a Windows Vista computer.  Since I can't imagine that this is 
how it's supposed to work you may or may not get the same results with 
different versions of samba or Windows or whatever.  But hopefully others are 
able to make use of my own trials and heartache.

-- 
Chris Purves

I can calculate the motion of heavenly bodies, but not the madness of people. 
- Sir Isaac Newton

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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/