[BackupPC-users] localhost backup and IPV6

2020-11-26 Thread Paul Leyland
Having received valuable help from David While (the 2nd of his
suggestions is still being tested but it is looking good) I thought I
would give something back in return. This may already be well known to
some but the material below might prove useful to others.

The localhost.pl target should dump /etc by using tar transport. The new
installation steadfastly refused to do so, saying that the system did
not respond to pings.  This is manifestly ridiculous!

I remembered from solving an issue on SWMBO's Win-10 machine some months
back that IPV6 and IPV4 do not always play well together.  Sure enough,
disabling IPV6 on the server made things start working again. This is an
all-IPV4 network here so disabling IPV6 is no great hardship.
https://itsfoss.com/disable-ipv6-ubuntu-linux/ shows how to do it on a
Ubuntu system.

The underlying issue ought to be fixed properly one day but this is a
good enough work-around for me for the time being.


Paul



OpenPGP_0xBA5077290CFFDDA6.asc
Description: application/pgp-keys


OpenPGP_signature
Description: OpenPGP digital signature
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] localhost backup error not clear

2007-07-27 Thread Antonio Marcos López Alonso

> Nils Breunese (Lemonbit  lemonbit.nl> writes:
> 
> Adam Goryachev wrote:
> 
> > I assume "Total de bytes escritos" is some sort of success message in
> > your language, but just as I can't be sure, I doubt that backuppc  
> > can be
> > sure either. Probably what you want to do is set your LANG or  
> > locale for
> > backuppc to some form of english. Hopefully someone else will suggest
> > the best method for that, but you could try something like:
> > export LANG=en_US
> > then re-run your manual backup, or some ping/tar command and ensure  
> > any
> > messages are in english. Then re-start the backuppc daemon with this
> > environment variable set.
> >
> > PS, could be wrong, but if it helps, please let everyone else know.
> 
> The commonly suggested way to fix this is to add '/usr/bin/env  
> LC_ALL=C' in front of the tar command.
> 
> Nils Breunese.
> 

Now it works!

I just modified TarClientCmd to set the env variable:

$Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo 
$tarPath -c -v -f - -C $shareName+ --totals';

It looks like some recent system update broke the old behavior :-( 

Thanks a lot, Nils and Adam!
Antonio





-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup error not clear

2007-07-27 Thread Nils Breunese (Lemonbit)

Adam Goryachev wrote:


Antonio Marcos López Alonso wrote:
Got fatal error during xfer (Total de bytes escritos: : %s (%s, %s/ 
s): 10055680

(9,6MiB, 2,6MiB/s))


I assume "Total de bytes escritos" is some sort of success message in
your language, but just as I can't be sure, I doubt that backuppc  
can be
sure either. Probably what you want to do is set your LANG or  
locale for

backuppc to some form of english. Hopefully someone else will suggest
the best method for that, but you could try something like:
export LANG=en_US
then re-run your manual backup, or some ping/tar command and ensure  
any

messages are in english. Then re-start the backuppc daemon with this
environment variable set.

PS, could be wrong, but if it helps, please let everyone else know.


The commonly suggested way to fix this is to add '/usr/bin/env  
LC_ALL=C' in front of the tar command.


Nils Breunese.


PGP.sig
Description: Dit deel van het bericht is digitaal ondertekend
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup error not clear

2007-07-26 Thread Adam Goryachev
Antonio Marcos López Alonso wrote:
> Got fatal error during xfer (Total de bytes escritos: : %s (%s, %s/s): 
> 10055680 
> (9,6MiB, 2,6MiB/s))
>   
I assume "Total de bytes escritos" is some sort of success message in 
your language, but just as I can't be sure, I doubt that backuppc can be 
sure either. Probably what you want to do is set your LANG or locale for 
backuppc to some form of english. Hopefully someone else will suggest 
the best method for that, but you could try something like:
export LANG=en_US
then re-run your manual backup, or some ping/tar command and ensure any 
messages are in english. Then re-start the backuppc daemon with this 
environment variable set.

PS, could be wrong, but if it helps, please let everyone else know.

Regards,
Adam

-- 
Adam Goryachev
Website Managers
Ph: +61 2 8304 [EMAIL PROTECTED]
Fax: +61 2 8304 0001www.websitemanagers.com.au


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] localhost backup error not clear

2007-07-26 Thread Antonio Marcos López Alonso
Hi,

I was succesfully running BackupPC for almost one year to backup a Windows 
laptop (using smb) and the backup server itself to a second hard disk (using 
tar method). For an (until now) unknown reason, the Windows backups keep 
running fine but the localhost are now failing. I have deleted all the previous 
backups and started new full backups unsuccesfully obtaining only one partial 
backup.

The scenario is that I got several tar shares in the localhost and when 
BackupPC finishes storing the first share, it outputs an error (see below) and 
aborts the process. The same happens when I rearrange the shares order to begin 
with another one.

When running "BackupPC_dump -v -f localhost" I get these (only the last lines 
are shown:

**
  pool 644   0/04696 manpath.config
  pool 644   0/0 369 profile
  pool 644   0/0   20847 mime.types
  pool 644   0/0  215938 bash_completion
tarExtract: Done: 0 errors, 2340 filesExist, 8276122 sizeExist, 2241159 
sizeExistComp, 2340 filesTotal, 8276122 sizeTotal
Got fatal error during xfer (Total de bytes escritos: : %s (%s, %s/s): 10055680 
(9,6MiB, 2,6MiB/s))
cmdSystemOrEval: about to system /bin/ping -c 1 localhost
cmdSystemOrEval: finished: got output PING localhost (127.0.0.1) 56(84) bytes 
of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.024 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.024/0.024/0.024/0.000 ms

cmdSystemOrEval: about to system /bin/ping -c 1 localhost
cmdSystemOrEval: finished: got output PING localhost (127.0.0.1) 56(84) bytes 
of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.025 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.025/0.025/0.025/0.000 ms

CheckHostAlive: returning 0.025
Backup aborted (Total de bytes escritos: : %s (%s, %s/s): 10055680 (9,6MiB, 
2,6MiB/s))
dump failed: Total de bytes escritos: : %s (%s, %s/s): 10055680 (9,6MiB, 
2,6MiB/s)
link localhost
**

How can I debug this further (as the "Got fatal error" is 
so "un-insightful")?

Thanks in advance,
Antonio


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup not compressing

2007-01-08 Thread Carl Wilhelm Soderstrom
keep in mind that you might not want to compress your backups of localhost.
at least not /etc.

that way it will be easier to recover your configuration files, when your OS
disk/partition dies or is corrupted. you won't need to configure backuppc in
order to recover the config files that tell you how to configure backuppc.
;)

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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup not compressing

2007-01-04 Thread Lluís Forns
sorry, at last it succeded. I just have to wait to compress all the pool

En/na Lluís Forns ha escrit:
> I have a problem backing up my localhost, it is not compressing (as 
> expected).
> the config file is:
>
> #
> # Local server backup of /etc as user backuppc
> #
> $Conf{XferMethod} = 'tar';
> $Conf{BackupPCUser} = 'root';
> $Conf{ArchiveComp} = 'gzip';
> $Conf{CompressLevel} = 3;
> $Conf{TarShareName} = 
> ['/etc','/home','/var/samba','/var/lib/mysql','/var/www'];
> $Conf{TarClientCmd} =   '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v 
> -f - -C $shareName' . ' --totals';
>
>
> do I need to set anything else?
>
> thanks a lot
>
>   


-- 
Lluís Forns
Tècnic Informàtic - Àrea de Comunicació (MEGSJC)
Tlf: 93-5902700 C/e: [EMAIL PROTECTED]
http://www.escoltesiguies.cat


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] localhost backup not compressing

2007-01-04 Thread Lluís Forns
I have a problem backing up my localhost, it is not compressing (as 
expected).
the config file is:

#
# Local server backup of /etc as user backuppc
#
$Conf{XferMethod} 

 = 'tar';
$Conf{BackupPCUser} 

 = 'root';
$Conf{ArchiveComp} 

 = 'gzip';
$Conf{CompressLevel} 

 = 3;
$Conf{TarShareName} 

 = ['/etc','/home','/var/samba','/var/lib/mysql','/var/www'];
$Conf{TarClientCmd} 

 =   '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName'
. ' --totals';


do I need to set anything else?

thanks a lot

-- 
Lluís Forns
Tècnic Informàtic - Àrea de Comunicació (MEGSJC)
Tlf: 93-5902700 C/e: [EMAIL PROTECTED]
http://www.escoltesiguies.cat


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup problems Version 2.1.2

2006-12-17 Thread Krsnendu dasa

I can run the ssh rsync thing (sudo hasn't work for me yet) from the command
line but it doesn't work from the web page. I think it is because it asks if
I want to accept the security key and then asks for the root password.
How can I get around this so it will run from CGI interface?

On 18/12/06, Krsnendu dasa <[EMAIL PROTECTED]> wrote:


When I ctrl-c out of the command I get these messages.

exiting after signal INT
Use of uninitialized value in chdir at /usr/lib/perl5/5.8.8/File/Find.pm
line 751.
Use of chdir('') or chdir(undef) as chdir() is deprecated at
/usr/lib/perl5/5.8.8/File/Find.pm line 751.
Use of uninitialized value in concatenation (.) or string at
/usr/lib/perl5/5.8.8/File/Find.pm line 752.
Can't cd to : No such file or directory
exiting after signal ALRM
Can't call method "getStats" on an undefined value at
/usr/share/BackupPC/bin/BackupPC_dump line 1002 during global destruction.


On 18/12/06, Krsnendu dasa <[EMAIL PROTECTED]> wrote:
>
>
>
> On 17/12/06, Les Stott < [EMAIL PROTECTED]> wrote:
> >
> >  Krsnendu dasa wrote:
> >
> > I am having problems backing up localhost. It only allows me to backup
> > directories and files with access set for all.
> >
> > I have tried rsyncd. When I use rsync from my windows computer I can
> > copy files from any share, but when I try to use it from BackupPC it gives
> > me permissions problems.
> >
> > Here is the xfer log:
> >
> > Connected to localhost:873, remote version 29
> > Negotiated protocol version 26
> > Connected to module intranet
> > Sending args: --server --sender --numeric-ids --perms --owner --group -D 
--links --times --block-size=2048 --recursive --checksum-seed=32761 --ignore-times . .
> >
> >
> >
> > Checksum caching enabled (checksumSeed = 32761)
> > Remote[1]: rsync: link_stat "/." (in intranet) failed: Permission denied 
(13)
> > Xfer PIDs are now 28142
> > Remote[1]: rsync error: some files could not be transferred (code 23) at
> >
> >
> > main.c(615) [sender=2.6.8]
> > Read EOF:
> > Tried again: got 0 bytes
> > Child is aborting
> > Done: 0 files, 0 bytes
> > Got fatal error during xfer (No files dumped for share intranet)
> > Backup aborted (No files dumped for share intranet)
> >
> >
> >
> > When that didn't work I thought I would try tar. I tried the sudo tar
> > trick given in the documentation, but it just seems to freeze waiting for a
> > password or something.
> > I cut and pasted the command from the documentation
> >
> > $Conf{TarClientCmd} 
 = 
'/usr/bin/sudo $tarPath -c -v -f - -C $shareName+ --totals';
> >
> >
> > And I used visudo to add:
> >
> > backuppc ALL = NOPASSWD: /bin/tar
> >
> >
> >  Hi, you've set visudo for the command /bin/tar but...
> >
> > the error states that it is using  /bin/gtar, which it gleans from
> > $tarPath
> >
> >
> >
> > The error message says:
> >
> > Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/School\ Intranet/ 
--totals .
> > Xfer PIDs are now 28657,28656
> > Password:
> > tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 
filesTotal, 0 sizeTotal
> >
> >
> >
> >
> > You'll need to match them up for it to work.
> >
>
> OK. I changed the visudo to /bin/gtar but it still gives the same error.
> I changed the share I wanted to backup to one with full permission and
> it still hangs.
>
> Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/krsnendu/test/
> --totals .
> started full dump, share=/home/krsnendu/test/
> Xfer PIDs are now 8266,8265
> xferPids 8266,8265
> cmdExecOrEval: about to exec /usr/bin/sudo /bin/gtar -c -v -f - -C
> /home/krsnendu/test/ --totals .
>
> you can also still use rsync with sudo and a script called rsyncSend.
> >
> > See 
http://backuppc.sourceforge.net/faq/ssh.html#how_can_client_access_as_root_be_avoided
> >
> >
> > Can I use rsyncd? What tricks would be needed for that?
>


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup problems Version 2.1.2

2006-12-17 Thread Krsnendu dasa

When I ctrl-c out of the command I get these messages.

exiting after signal INT
Use of uninitialized value in chdir at /usr/lib/perl5/5.8.8/File/Find.pm
line 751.
Use of chdir('') or chdir(undef) as chdir() is deprecated at
/usr/lib/perl5/5.8.8/File/Find.pm line 751.
Use of uninitialized value in concatenation (.) or string at
/usr/lib/perl5/5.8.8/File/Find.pm line 752.
Can't cd to : No such file or directory
exiting after signal ALRM
Can't call method "getStats" on an undefined value at
/usr/share/BackupPC/bin/BackupPC_dump line 1002 during global destruction.


On 18/12/06, Krsnendu dasa <[EMAIL PROTECTED]> wrote:




On 17/12/06, Les Stott <[EMAIL PROTECTED]> wrote:
>
>  Krsnendu dasa wrote:
>
> I am having problems backing up localhost. It only allows me to backup
> directories and files with access set for all.
>
> I have tried rsyncd. When I use rsync from my windows computer I can
> copy files from any share, but when I try to use it from BackupPC it gives
> me permissions problems.
>
> Here is the xfer log:
>
> Connected to localhost:873, remote version 29
> Negotiated protocol version 26
> Connected to module intranet
> Sending args: --server --sender --numeric-ids --perms --owner --group -D 
--links --times --block-size=2048 --recursive --checksum-seed=32761 --ignore-times 
. .
>
>
> Checksum caching enabled (checksumSeed = 32761)
> Remote[1]: rsync: link_stat "/." (in intranet) failed: Permission denied (13)
> Xfer PIDs are now 28142
> Remote[1]: rsync error: some files could not be transferred (code 23) at
>
> main.c(615) [sender=2.6.8]
> Read EOF:
> Tried again: got 0 bytes
> Child is aborting
> Done: 0 files, 0 bytes
> Got fatal error during xfer (No files dumped for share intranet)
> Backup aborted (No files dumped for share intranet)
>
>
> When that didn't work I thought I would try tar. I tried the sudo tar
> trick given in the documentation, but it just seems to freeze waiting for a
> password or something.
> I cut and pasted the command from the documentation
>
> $Conf{TarClientCmd} 
 
= '/usr/bin/sudo $tarPath -c -v -f - -C $shareName+ --totals';
>
>
> And I used visudo to add:
>
> backuppc ALL = NOPASSWD: /bin/tar
>
>
>  Hi, you've set visudo for the command /bin/tar but...
>
> the error states that it is using  /bin/gtar, which it gleans from
> $tarPath
>
>
>
> The error message says:
>
> Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/School\ Intranet/ 
--totals .
> Xfer PIDs are now 28657,28656
> Password:
> tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 
filesTotal, 0 sizeTotal
>
>
>
> You'll need to match them up for it to work.
>

OK. I changed the visudo to /bin/gtar but it still gives the same error.
I changed the share I wanted to backup to one with full permission and it
still hangs.

Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/krsnendu/test/
--totals .
started full dump, share=/home/krsnendu/test/
Xfer PIDs are now 8266,8265
xferPids 8266,8265
cmdExecOrEval: about to exec /usr/bin/sudo /bin/gtar -c -v -f - -C
/home/krsnendu/test/ --totals .

you can also still use rsync with sudo and a script called rsyncSend.
>
> See 
http://backuppc.sourceforge.net/faq/ssh.html#how_can_client_access_as_root_be_avoided
>
>
> Can I use rsyncd? What tricks would be needed for that?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup problems Version 2.1.2

2006-12-17 Thread Krsnendu dasa

On 17/12/06, Les Stott <[EMAIL PROTECTED]> wrote:


 Krsnendu dasa wrote:

I am having problems backing up localhost. It only allows me to backup
directories and files with access set for all.

I have tried rsyncd. When I use rsync from my windows computer I can copy
files from any share, but when I try to use it from BackupPC it gives me
permissions problems.

Here is the xfer log:

Connected to localhost:873, remote version 29
Negotiated protocol version 26
Connected to module intranet
Sending args: --server --sender --numeric-ids --perms --owner --group -D 
--links --times --block-size=2048 --recursive --checksum-seed=32761 
--ignore-times . .

Checksum caching enabled (checksumSeed = 32761)
Remote[1]: rsync: link_stat "/." (in intranet) failed: Permission denied (13)
Xfer PIDs are now 28142
Remote[1]: rsync error: some files could not be transferred (code 23) at
main.c(615) [sender=2.6.8]
Read EOF:
Tried again: got 0 bytes
Child is aborting
Done: 0 files, 0 bytes
Got fatal error during xfer (No files dumped for share intranet)
Backup aborted (No files dumped for share intranet)


When that didn't work I thought I would try tar. I tried the sudo tar
trick given in the documentation, but it just seems to freeze waiting for a
password or something.
I cut and pasted the command from the documentation

$Conf{TarClientCmd} 

 = '/usr/bin/sudo $tarPath -c -v -f - -C $shareName+ --totals';


And I used visudo to add:

backuppc ALL = NOPASSWD: /bin/tar


 Hi, you've set visudo for the command /bin/tar but...

the error states that it is using  /bin/gtar, which it gleans from
$tarPath



The error message says:

Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/School\ Intranet/ --totals 
.
Xfer PIDs are now 28657,28656
Password:
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 
filesTotal, 0 sizeTotal


You'll need to match them up for it to work.



OK. I changed the visudo to /bin/gtar but it still gives the same error.
I changed the share I wanted to backup to one with full permission and it
still hangs.

Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/krsnendu/test/ --totals
.
started full dump, share=/home/krsnendu/test/
Xfer PIDs are now 8266,8265
xferPids 8266,8265
cmdExecOrEval: about to exec /usr/bin/sudo /bin/gtar -c -v -f - -C
/home/krsnendu/test/ --totals .

you can also still use rsync with sudo and a script called rsyncSend.


See
http://backuppc.sourceforge.net/faq/ssh.html#how_can_client_access_as_root_be_avoided

Can I use rsyncd? What tricks would be needed for that?
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup problems Version 2.1.2

2006-12-16 Thread Les Stott

Krsnendu dasa wrote:
I am having problems backing up localhost. It only allows me to backup 
directories and files with access set for all.


I have tried rsyncd. When I use rsync from my windows computer I can 
copy files from any share, but when I try to use it from BackupPC it 
gives me permissions problems.


Here is the xfer log:
Connected to localhost:873, remote version 29
Negotiated protocol version 26
Connected to module intranet
Sending args: --server --sender --numeric-ids --perms --owner --group -D 
--links --times --block-size=2048 --recursive --checksum-seed=32761 
--ignore-times . .

Checksum caching enabled (checksumSeed = 32761)
Remote[1]: rsync: link_stat "/." (in intranet) failed: Permission denied (13)
Xfer PIDs are now 28142
Remote[1]: rsync error: some files could not be transferred (code 23) at 
main.c(615) [sender=2.6.8]
Read EOF: 
Tried again: got 0 bytes

Child is aborting
Done: 0 files, 0 bytes
Got fatal error during xfer (No files dumped for share intranet)
Backup aborted (No files dumped for share intranet)
  

When that didn't work I thought I would try tar. I tried the sudo tar 
trick given in the documentation, but it just seems to freeze waiting 
for a password or something.

I cut and pasted the command from the documentation

$Conf{TarClientCmd} 

 = '/usr/bin/sudo $tarPath -c -v -f - -C $shareName+ --totals';

And I used visudo to add:
backuppc ALL = NOPASSWD: /bin/tar


Hi, you've set visudo for the command /bin/tar but...

the error states that it is using  /bin/gtar, which it gleans from $tarPath



The error message says:
Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/School\ Intranet/ --totals 
.
Xfer PIDs are now 28657,28656
Password:
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 
filesTotal, 0 sizeTotal

  


You'll need to match them up for it to work.

you can also still use rsync with sudo and a script called rsyncSend.

See 
http://backuppc.sourceforge.net/faq/ssh.html#how_can_client_access_as_root_be_avoided


for examples.

regards,

Les
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] localhost backup problems Version 2.1.2

2006-12-16 Thread Krsnendu dasa

I am having problems backing up localhost. It only allows me to backup
directories and files with access set for all.

I have tried rsyncd. When I use rsync from my windows computer I can copy
files from any share, but when I try to use it from BackupPC it gives me
permissions problems.

Here is the xfer log:

Connected to localhost:873, remote version 29
Negotiated protocol version 26
Connected to module intranet
Sending args: --server --sender --numeric-ids --perms --owner --group
-D --links --times --block-size=2048 --recursive --checksum-seed=32761
--ignore-times . .
Checksum caching enabled (checksumSeed = 32761)
Remote[1]: rsync: link_stat "/." (in intranet) failed: Permission denied (13)
Xfer PIDs are now 28142
Remote[1]: rsync error: some files could not be transferred (code 23)
at main.c(615) [sender=2.6.8]
Read EOF:
Tried again: got 0 bytes
Child is aborting
Done: 0 files, 0 bytes
Got fatal error during xfer (No files dumped for share intranet)
Backup aborted (No files dumped for share intranet)


When that didn't work I thought I would try tar. I tried the sudo tar trick
given in the documentation, but it just seems to freeze waiting for a
password or something.
I cut and pasted the command from the documentation

$Conf{TarClientCmd}

= '/usr/bin/sudo $tarPath -c -v -f - -C $shareName+ --totals';


And I used visudo to add:

backuppc ALL = NOPASSWD: /bin/tar


The error message says:

Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/School\ Intranet/
--totals .
Xfer PIDs are now 28657,28656
Password:
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0
sizeExistComp, 0 filesTotal, 0 sizeTotal
Tar exited with error 256 () status
Got fatal error during xfer (No files dumped for share /home/School Intranet/)
Backup aborted (No files dumped for share /home/School Intranet/)

When I run it from the command line it gives this message:

CheckHostAlive: returning 0.077
Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /home/School\ Intranet/
--totals .
started full dump, share=/home/School Intranet/
Xfer PIDs are now 28639,28638
xferPids 28639,28638
cmdExecOrEval: about to exec /usr/bin/sudo /bin/gtar -c -v -f - -C
/home/School\\\ Intranet/ --totals .
Password:

It seems like it is waiting for a password or something. I tried entering
the root password but it didn't do anything.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup

2006-12-12 Thread Carl Wilhelm Soderstrom
On 12/13 08:41 , Krsnendu dasa wrote:
> Is there any advantage to using rsync for a localhost backup, or will
> tar be just as good or better. I have heard that tar is faster than
> rsync and because there is no network traffic involved it might be
> better to minimize cpu overhead and use tar.

I usually only back up /etc/ on the backup server itself (and I do keep the
backup pool on a disk separate from the OS). For that, it's probably just as
good to use tar. it's such a small amount of data that it really doesn't
matter in either case. 

I use tar to back up the local data, unless there's a huge amount of it that
doesn't change; just like the example in the Debian package. :)

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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] localhost backup

2006-12-12 Thread Krsnendu dasa
Is there any advantage to using rsync for a localhost backup, or will
tar be just as good or better. I have heard that tar is faster than
rsync and because there is no network traffic involved it might be
better to minimize cpu overhead and use tar.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] localhost backup path different from the rest

2006-11-27 Thread Carl Wilhelm Soderstrom
On 11/25 12:26 , Philippe Rousselot wrote:
> I would like to have a machine fully backep up from tuesday morning to
> sunday morning at 1 AM for a month  

if you'd like a certain backup job to go off at a certain time; use cron to
set it off. use a command something like this:
00 01 * * 1,3,4,5,6,7   backuppc /usr/share/backuppc/bin/BackupPC_serverMesg 
backup host.example.com host.example.com backuppc 1


you *may* want to set 
$Conf{FullPeriod} = -1;
in the per-machine config files, so that the backups don't go off
automatically; that they'll only go off when you click the button for that
in the web interface, or set them off with a cron job.

> I would like to keep the backup of the first sunday of every month for a
> year

look into /etc/backuppc/config.pl, and the comments for $Conf{FullKeepCnt}

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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] localhost backup path different from the rest

2006-11-24 Thread Philippe Rousselot
Hi,

I would like to have a machine fully backep up from tuesday morning to
sunday morning at 1 AM for a month  

I would like to keep the backup of the first sunday of every month for a
year

How can I do that ?




Thanks in advance

Philippe


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] localhost backup problems

2006-05-16 Thread Duane Rinehart








I
have successfully been able to backup Windows XP machines via rsync to the
server but can’t seem to get the localhost backed up.

 

Following
is my localhost.pl

 

#

#
Local server backup of /etc as user backuppc

#

$Conf{XferMethod}
= 'tar';

 

$Conf{TarClientCmd}
= '/usr/bin/sudo /etc/backuppc/tarCreate -v -f - -C $shareName+ --totals';

 

$Conf{TarShareName}
= ['/etc'];

 

$Conf{XferLogLevel}
= 1;

#EOF

 

I
believe I followed the FAQ correctly to setup sudo but I receive the following
message every time the server tries to backup:

 

Got fatal error during xfer (Tar exited with error 256 () status)

 

 

Suggestions?

 

 

Duane Rinehart

Senior Consultant

Robert Hale and Associates

www.roberthaleassociates.com

5405 Morehouse Drive, Suite 327

San Diego, CA
 92121

USA

t: +1 858-404-0200

f: +1 858-404-0204

 








[BackupPC-users] localhost backup not working

2005-10-27 Thread Phil Carinhas
 I can't get backuppc to exclude the files listed below, nor 
 can I get it to Purge the files from some bad backups. 

 My localhost.pl looks like:

#-
## Local server backup of /etc as user backuppc
##
$Conf{XferMethod} = 'rsync';
$Conf{RsyncClientPath} = '/usr/bin/rsync';
$Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList+';
$Conf{RsyncShareName} = ['/', '/boot', '/usr', '/var', '/home', '/data'];
$Conf{BackupFilesExclude} = ['/tmp', '/proc', 
'/backup','/data/iso','/data/dvd'];
$Conf{WakeupSchedule} = [3.0];
#-- Pre and Post Commands 
$Conf{DumpPreUserCmd} = '/usr/bin/sudo /bin/mount -r /boot';
$Conf{DumpPostUserCmd} = '/usr/bin/sudo /bin/umount /boot';
#-


 Is there a way to force a Purge without deleting all the good files?
 Thanks,

-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783|
 `'


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] localhost backup excluded files not working.

2005-10-26 Thread Phil Carinhas
 I can't get backuppc to exclude the files listed below, nor
  can I get it to Purge the files from some bad backups.

   My localhost.pl looks like:

   #-
   ## Local server backup of /etc as user backuppc
   ##
   $Conf{XferMethod} = 'rsync';
   $Conf{RsyncClientPath} = '/usr/bin/rsync';
   $Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList+';
   $Conf{RsyncShareName} = ['/', '/boot', '/usr', '/var', '/home',
   '/data'];
   $Conf{BackupFilesExclude} = ['/tmp', '/proc',
   +'/backup','/data/iso','/data/dvd'];
   $Conf{WakeupSchedule} = [3.0];
   #-- Pre and Post Commands 
   $Conf{DumpPreUserCmd} = '/usr/bin/sudo /bin/mount -r /boot';
   $Conf{DumpPostUserCmd} = '/usr/bin/sudo /bin/umount /boot';
   #-


Is there a way to force a Purge without deleting all the good files?
 Thanks,



-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783|
 `'


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/