[BackupPC-users] BackupPC not deleting Backups according to FullKeepCnt

2009-07-22 Thread Christian Bock
Hi,

I am new to an existing BackupPC server. It was set up a long time ago
and worked fine but the machine died. So the config Files were moved to
a new server where BackupPC was installed via RPM on ubuntu.

Backups are working fine, but old Backups won't get removed, so the HDD
is running out of space very quickly. I found a script to remove single
backups by hand, but I want it to be done automatically.

I know that I didn't provide a lot info so far, but if you know where to
srart searching for the problem, I'd be greatful if you pointed me there
and/or ask for additional info

Thank you in advance

Christian Bock

--
___
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] backup restore via command line

2009-07-22 Thread shion

Thanks for your help.

I have tried tar with parameter p as root user and it works.  :D 

-p, --same-permissions, --preserve-permissions
ignore umask when extracting files (the default for root)

+--
|This was sent by svenbroe...@web.de via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
___
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] ftp error: xfer start failed: Can't open connection to : Invalid argument

2009-07-22 Thread Mirco Piccin
Hi,

 I am struggling to get ftp transfer working in 3.2.0 beta0. And I keep
 ketting the error message: xfer start failed: Can't open connection to :
 Invalid argument

about the Invalid argument issue, i attach here a Holger Parplies:



Sorry, that is a bug in Xfer::Ftp, line 190, which references $args-{host},
which, it seems, should read $args-{Host} instead (at least that's what
getFTPArgs() returns). There are two more occurrences of the same typo and
several usages of $t-{host} instead of $args-{Host}, though that is probably
intentional (logging the host name as defined in BackupPC rather than the
actual DNS name or IP used). I'd attach a patch, but it's really only

:%s/\$args-{host}/$args-{Host}/gc



At the moment also i can't do backup using ftp still.
Regards
M
--
___
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] Wrong user: my userid is 502, instead of (backuppc4afs), Please su backuppc4afs first

2009-07-22 Thread Wenping Yang
Hello,

After installed Backuppc4afs on Mac 10.5 server, I could start backup
from CGI interface, but it could not automatically start scheduled
backup.  The error in LOG is:

/usr/local/BackupPC/bin/BackupPC_nightly: Wrong user: my userid is 502,
instead of  (backuppc4afs)
Please su backuppc4afs first

The problem is that userid 502 is backuppc4afs, I don't understand why
it thinks they are different.
Anyone had this problem before?

Thank you.

Wenping



--
___
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] Advice on offsite strategy using external drives

2009-07-22 Thread tog benson
This may be a little long-winded, but I need some input.

In the past I've used external drives to keep a rotation of offsite backups.  
One drive would be offsite while the other was receiving dumps of data.  I used 
an archive host to dump tar_gzip files of all my data.

This system worked great with the exception that dumping massive tgz files was 
a long process and the process in general required plenty of human interaction.

Someone recommended that I try putting the root backuppc folder (including the 
conf, pool, cpool and pc etc. folders) on the external drive and let 
the nightly backups dump right onto the external.  Then the second external 
driver (also configured with the coreect backuppc root) could be mounted in the 
same location on the filesystem, requireing less human interaction.

I love the notion of this system.  I can simply replace the drives from time to 
time and the data will be dumped right onto the drives.  I just have to make 
sure that the configs, etc. are kept consistent.

What concerns me is the format of the folders and files int he backuppc system

In the cpool the file names are all hashes.  When there are rwgular files, 
there's the prefix added by backuppc.  In short, my data is munged; recovery 
requires a working backuppc install.  

The nice thing about tgz dumps was that my data was dumped in a format that was 
easily used.

Does anyone else do it this way?  Should I not be terribly concerned about the 
munging? 


  

--
___
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] Wrong user: my userid is 502, instead of (backuppc4afs), Please su backuppc4afs first

2009-07-22 Thread Stephen Joyce
How did you determine that userid 502 is backuppc4afs? Do id backuppc4afs 
and id 502 return the same results? What about su backuppc4afs -c id?

Have you configured the Mac to be aware of either an ldap server or AD 
domain in Directory Services? It's easy to accidentally configure duplicate 
uids or uidnumbers if so. [Remember each Mac has its own directory service 
and only uses bsd flatfiles in single-user mode, so don't be distracted 
by them.]

If you find you do have a duplicate, file ownership may be an issue after 
correcting it.

Cheers, Stephen (who has discovered there are generally more reasons to 
dislike Macs than to like them)
--
Don't let the perfect be the enemy of the good.

On Wed, 22 Jul 2009, Wenping Yang wrote:

 Hello,

 After installed Backuppc4afs on Mac 10.5 server, I could start backup
 from CGI interface, but it could not automatically start scheduled
 backup.  The error in LOG is:

 /usr/local/BackupPC/bin/BackupPC_nightly: Wrong user: my userid is 502,
 instead of  (backuppc4afs)
 Please su backuppc4afs first

 The problem is that userid 502 is backuppc4afs, I don't understand why
 it thinks they are different.
 Anyone had this problem before?

 Thank you.

 Wenping



 --
 ___
 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 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] Advice on offsite strategy using external drives

2009-07-22 Thread Carl Wilhelm Soderstrom
On 07/22 08:17 , tog benson wrote:
 In the past I've used external drives to keep a rotation of offsite
 backups.  One drive would be offsite while the other was receiving dumps
 of data.  I used an archive host to dump tar_gzip files of all my data.

This is the way I do it at one location. I have a directory called
/var/lib/backuppc/dump, and tgz archives of all the hosts get dumped there
by virtue of a custom script. The script also handles the mounting and
unmounting of an external drive.

So someone (an unskilled office worker) swaps the drive once a week after
they get an e-mail of a successful backup. They then take the drive with the
new data and remove it offsite.

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

--
___
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] Wrong user: my userid is 502, instead of (backuppc4afs), Please su backuppc4afs first

2009-07-22 Thread Wenping Yang
I used command id to determine userid. Actually id backuppc4afs, id
502 and su backuppc4afs -c id gave the same results:

RArwjms04:bin root# id backuppc4afs
uid=502(backuppc4afs) gid=1025(backuppc4afs) groups=1025(backuppc4afs)
RArwjms04:bin root# id 502
uid=502(backuppc4afs) gid=1025(backuppc4afs) groups=1025(backuppc4afs)
RArwjms04:bin root# su backuppc4afs -c id
uid=502(backuppc4afs) gid=1025(backuppc4afs) groups=1025(backuppc4afs)

My Mac machine is not using LDAP or AD, it is a standalone machine.
Account backuppc4afs is a local account.

When I read the source code, I found that script BackupPC is using
getpwnam() to check uid. And it seems that output of getpwnam() from
Linux and Mac are different:

Linux:
usernamex56780Fname Lname/afs/rwjresearch.umdnj.edu/home/username/bin/bash
(account name: username, uid: 5678)

Mac:
backuppc4afs50210250backuppc4afs/Users/backuppc4afs/bin/bash0
(account name: backuppc4afs, uid:502)

I think those  might have caused the problem.

Wenping



Stephen Joyce wrote:
 How did you determine that userid 502 is backuppc4afs? Do id backuppc4afs 
 and id 502 return the same results? What about su backuppc4afs -c id?

 Have you configured the Mac to be aware of either an ldap server or AD 
 domain in Directory Services? It's easy to accidentally configure duplicate 
 uids or uidnumbers if so. [Remember each Mac has its own directory service 
 and only uses bsd flatfiles in single-user mode, so don't be distracted 
 by them.]

 If you find you do have a duplicate, file ownership may be an issue after 
 correcting it.

 Cheers, Stephen (who has discovered there are generally more reasons to 
 dislike Macs than to like them)
 --
 Don't let the perfect be the enemy of the good.

 On Wed, 22 Jul 2009, Wenping Yang wrote:

   
 Hello,

 After installed Backuppc4afs on Mac 10.5 server, I could start backup
 from CGI interface, but it could not automatically start scheduled
 backup.  The error in LOG is:

 /usr/local/BackupPC/bin/BackupPC_nightly: Wrong user: my userid is 502,
 instead of  (backuppc4afs)
 Please su backuppc4afs first

 The problem is that userid 502 is backuppc4afs, I don't understand why
 it thinks they are different.
 Anyone had this problem before?

 Thank you.

 Wenping



 --
 ___
 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 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 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] Advice on offsite strategy using external drives

2009-07-22 Thread tog benson
 So someone (an unskilled office worker) swaps the drive
 once a week after
 they get an e-mail of a successful backup. They then take
 the drive with the
 new data and remove it offsite.

Part of the reason I don't want to do this is that three drives are required in 
order to have on offsite at any given time.  I backup nightly to one, dump to 
another and have another offsite.

I am short on cash right now...

Two drives acting as the backuppc root dir's seemed simpler.  Less human 
interaction...


  

--
___
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] Status not updating

2009-07-22 Thread tog benson
I move to another drive the backuppc root dir that contains these folders:

   conf  cpool  log  passwd  pc  perl_module  pool  trash

and now my status on the front page isn't updating:

* Pool file system was recently at 70% (7/13 02:07), today's max is 70% 
(7/13 02:03) and yesterday's max was 70%. 


The Max for yesterday and today is 12%.  Is this perhaps an issue with the 
status.pl?




  

--
___
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] Rsync not working on MAC

2009-07-22 Thread Tony Ferguson
Hi,  
   
I have backuppc running fine backing-up windows and mac machines, except one 
mac.  It fails in the first few minutes of the backup.  
If I run the backup from the command line then it hangs - if I remove the 
--server and the --sender switches and run the command it works fine.   
Please can you advise me on what to do?

Kind Regards
Tony Ferguson
Mobile 082-464-6018
Office 011-476-3904
Fax 011-678-3291
Life is a coin. You can spend it anyway you wish, but you can only spend it 
once. 
  
   
 --
___
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/