|
From: ALSto <all...@ro...> - 2010-08-21 02:34:09
|
--- On Fri, 8/20/10, Loren Serfass <lor...@gm...> wrote: From: Loren Serfass <lor...@gm...> Subject: [BackupPC-users] set-up question: how do I avoid "Cannot open: Permission denied" and "0 bytes"? Please help! To: bac...@li... Date: Friday, August 20, 2010, 9:50 PM Hello, I am a new user of this software and new to this list. Apologies for the long email, but I want to make it clear exactly where I am in order to avoid wasting your time with back-and-forth. Please be patient and help me, because I have spent hours and hours following the provided instructions, reading user forums, and experimenting. Posting this is my very last resort. If you find a glaring gap in my knowledge or something obvious that I did wrong, I would be overjoyed. For background: I am working with BackupPC version 3.1.0-4, installed by synaptic onto Debian lenny (I'd rather not install from the more recent source). I am trying to back up my internal hard drive onto an external hard drive which is mounted at /var/lib/backuppc. I have read the documentation, the ssh setup instructions, and the localhost instructions from the following websites. http://backuppc.sourceforge.net/faq/BackupPC.html http://backuppc.sourceforge.net/faq/ssh.html http://backuppc.sourceforge.net/faq/localhost.html My progress so far: ---BackupPC starts properly when run from the root account and I can log onto the interface in a web browser. (I get "start-stop-daemon: command not found" when I run it as the backuppc user.) ---After following instructions, the ssh seems to be set up properly, since running "ssh -l root localhost whoami" as the backuppc user prints just "root." (This is the test given in the ssh instructions). ---I have enabled the backuppc user to use sudo with the commands /bin/tar and /usr/bin/rsync. I'm pretty sure these are working correctly because when I am logged into a terminal as backuppc I can still tar a file that has -rw------- permissions and root ownership. ---I have tried both tar and rsync as the XferMethod. I have changed the TarClientCmd and RsyncClientCmd to use sudo. I tried to do it as described on the localhost FAQ (though this is one of the more difficult parts for me). ---There are cpool, log, pc, pool, and trash directories in /var/lib/backuppc. Each has permissions drwxr-x--- Each is owned by backuppc and has group backuppc. ---I have excluded /var/lib/backuppc from the backups, and made a few other minor changes. HOWEVER: When I request a full backup of localhost, I STILL get "Cannot open: Permission denied" errors in the log file. The problem files all have -rw------- permissions, so it seems that tar isn't working properly when run through the program although it works fine on that type of file when run by the backuppc user in isolation. I have been mostly starting backuppc when logged in as root, by the way. That seems counterintuitive to me, but when I start it when logged on the backuppc user, I get "start-stop-daemon: command not found". Most frustrating, the log file always ends with "...full backup X complete, 2891 files, 0 bytes, 37 xferErrs (0 bad files, 0 bad shares, 37 other)". The "0 bytes" part seems to mean that it didn't back up ANY data. And it only takes a few seconds, so I know that it's not backing up. I get these same problems after many backups and also after reinstalling/reconfiguring, so it's very consistent. Perplexingly, it seems to be trying to back up only the /etc directory. Why isn't it doing the whole / directory? That's what I tried to set up. I just want to back up my whole hard drive onto an external drive. Are these problems easy to solve, or should I switch away from backuppc? If so, could you recommend something easy? Thank you for your time. ------------------------------------------------------------------------------ Hi Loren; Before delving to far and sorry a back-forth question... What type of external HDD do you have? If it is USB, what file system is it formatted with? Allen... |
|
From: Loren S. <lor...@gm...> - 2010-08-21 04:02:49
|
Thanks Allen,
I forgot to mention that. It's a usb hard drive formatted to ext3, like
my internal drive.
Loren
On Fri, Aug 20, 2010 at 10:33 PM, ALSto <all...@ro...> wrote:
> --- On Fri, 8/20/10, Loren Serfass <lor...@gm...> wrote:
>
> From: Loren Serfass <lor...@gm...>
> Subject: [BackupPC-users] set-up question: how do I avoid "Cannot open:
> Permission denied" and "0 bytes"? Please help!
> To: bac...@li...
> Date: Friday, August 20, 2010, 9:50 PM
>
> Hello,
> I am a new user of this software and new to this list. Apologies for
> the long email, but I want to make it clear exactly where I am in order to
> avoid wasting your time with back-and-forth. Please be patient and help me,
> because I have spent hours and hours following the provided instructions,
> reading user forums, and experimenting. Posting this is my very last
> resort. If you find a glaring gap in my knowledge or something obvious that
> I did wrong, I would be overjoyed.
>
> For background: I am working with BackupPC version 3.1.0-4, installed
> by synaptic onto Debian lenny (I'd rather not install from the more recent
> source). I am trying to back up my internal hard drive onto an external
> hard drive which is mounted at /var/lib/backuppc.
>
> I have read the documentation, the ssh setup instructions, and the
> localhost instructions from the following websites.
> http://backuppc.sourceforge.net/faq/BackupPC.html
>
> http://backuppc.sourceforge.net/faq/ssh.html
> http://backuppc.sourceforge.net/faq/localhost.html
>
>
>
> My progress so far:
>
> ---BackupPC starts properly when run from the root account and I can log
> onto the interface in a web browser. (I get "start-stop-daemon: command not
> found" when I run it as the backuppc user.)
>
>
> ---After following instructions, the ssh seems to be set up properly, since
> running "ssh -l root localhost whoami" as the backuppc user prints just
> "root." (This is the test given in the ssh instructions).
>
>
> ---I have enabled the backuppc user to use sudo with the commands /bin/tar
> and /usr/bin/rsync. I'm pretty sure these are working correctly because
> when I am logged into a terminal as backuppc I can still tar a file that has
> -rw------- permissions and root ownership.
>
>
> ---I have tried both tar and rsync as the XferMethod. I have changed the
> TarClientCmd and RsyncClientCmd to use sudo. I tried to do it as described
> on the localhost FAQ (though this is one of the more difficult parts for
> me).
>
>
> ---There are cpool, log, pc, pool, and trash directories in
> /var/lib/backuppc. Each has permissions drwxr-x--- Each is owned by
> backuppc and has group backuppc.
>
> ---I have excluded /var/lib/backuppc from the backups, and made a few other
> minor changes.
>
>
> HOWEVER:
>
> When I request a full backup of localhost, I STILL get "Cannot open:
> Permission denied" errors in the log file. The problem files all have
> -rw------- permissions, so it seems that tar isn't working properly when run
> through the program although it works fine on that type of file when run by
> the backuppc user in isolation. I have been mostly starting backuppc when
> logged in as root, by the way. That seems counterintuitive to me, but when
> I start it when logged on the backuppc user, I get "start-stop-daemon:
> command not found".
>
>
> Most frustrating, the log file always ends with "...full backup X complete,
> 2891 files, 0 bytes, 37 xferErrs (0 bad files, 0 bad shares, 37 other)".
> The "0 bytes" part seems to mean that it didn't back up ANY data. And it
> only takes a few seconds, so I know that it's not backing up. I get these
> same problems after many backups and also after reinstalling/reconfiguring,
> so it's very consistent.
>
>
> Perplexingly, it seems to be trying to back up only the /etc directory.
> Why isn't it doing the whole / directory? That's what I tried to set up. I
> just want to back up my whole hard drive onto an external drive.
>
>
> Are these problems easy to solve, or should I switch away from backuppc?
> If so, could you recommend something easy?
>
> Thank you for your time.
>
>
> ------------------------------------------------------------------------------
>
> Hi Loren;
>
> Before delving to far and sorry a back-forth question... What type of
> external HDD do you have? If it is USB, what file system is it formatted
> with?
>
> Allen...
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> BackupPC-users mailing list
> Bac...@li...
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
|
|
From: Les M. <les...@gm...> - 2010-08-21 04:13:51
|
Loren Serfass wrote:
> Thanks Allen,
> I forgot to mention that. It's a usb hard drive formatted to ext3,
> like my internal drive.
Is it mounted or symlinked as /var/lib/backuppc as the packaged installs require?
--
Les Mikesell
les...@gm...
|
|
From: Loren S. <lor...@gm...> - 2010-08-21 04:26:51
|
Hi Les,
Hmm. Most recently, I first mounted it at /var/lib/backuppc and then
did a fresh install. That way it automatically put on the cpool, log, pc,
etcetera directories as it installed from synaptic. I think that's OK, as
some pages recommended it and it seemed simpler than the symlink option.
Should mounting it this way work?
Thanks,
Loren
On Sat, Aug 21, 2010 at 12:13 AM, Les Mikesell <les...@gm...>wrote:
> Loren Serfass wrote:
> > Thanks Allen,
> > I forgot to mention that. It's a usb hard drive formatted to ext3,
> > like my internal drive.
>
> Is it mounted or symlinked as /var/lib/backuppc as the packaged installs
> require?
>
> --
> Les Mikesell
> les...@gm...
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> BackupPC-users mailing list
> Bac...@li...
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
|
|
From: Loren S. <lor...@gm...> - 2010-08-21 04:31:12
|
By the way, I think that the external hard drive issue might be a distraction. I get exactly the same errors when I don't connect the external hard drive and I instead try to backup to the /var/lib/backuppc directory on the internal disk. Hope this helps, Loren On Sat, Aug 21, 2010 at 12:26 AM, Loren Serfass <lor...@gm...>wrote: > Hi Les, > Hmm. Most recently, I first mounted it at /var/lib/backuppc and then > did a fresh install. That way it automatically put on the cpool, log, pc, > etcetera directories as it installed from synaptic. I think that's OK, as > some pages recommended it and it seemed simpler than the symlink option. > Should mounting it this way work? > > Thanks, > Loren > > > > > On Sat, Aug 21, 2010 at 12:13 AM, Les Mikesell <les...@gm...>wrote: > >> Loren Serfass wrote: >> > Thanks Allen, >> > I forgot to mention that. It's a usb hard drive formatted to ext3, >> > like my internal drive. >> >> Is it mounted or symlinked as /var/lib/backuppc as the packaged installs >> require? >> >> -- >> Les Mikesell >> les...@gm... >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> BackupPC-users mailing list >> Bac...@li... >> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users >> Wiki: http://backuppc.wiki.sourceforge.net >> Project: http://backuppc.sourceforge.net/ >> > > |
|
From: Les M. <les...@gm...> - 2010-08-21 05:34:57
|
Loren Serfass wrote:
> By the way, I think that the external hard drive issue might be a
> distraction. I get exactly the same errors when I don't connect the
> external hard drive and I instead try to backup to the /var/lib/backuppc
> directory on the internal disk.
Yes, I'd guess your use of sudo in the client commands is not resulting in
running as root. I've always just used ssh like any other host to get local
files even though it is less efficient.
--
Les Mikesell
les...@gm...
|
|
From: Loren S. <lor...@gm...> - 2010-08-22 04:55:04
|
I got it working! I now have successful full and incremental backups, using
tar as XferMethod (I plan to switch to rsync).
The solution, suitably obvious in retrospect: I realized that there was
a file called "localhost.pl" which was overriding my settings in config.pl.
The documentation said that configuration files in the folder __CONFDIR__/pc
override __CONFDIR__/config.pl, so I thought it was sufficient to make sure
that __CONFDIR__/pc/config.pl was all right. I neglected the $host.pl file.
I was clued in to this indirectly by a user forum. The purpose of this
file is explained in the documentation, of course, but I didn't notice.
Thanks,
Loren
On Sat, Aug 21, 2010 at 3:17 PM, Loren Serfass <lor...@gm...>wrote:
> Hi Allen,
> Now I've got it so that backuppc can use the start-stop-daemon. I did
> it by changing every occurrence of "start-stop-daemon" in the
> /etc/init.d/backuppc script to "/sbin/start-stop-daemon" (for some reason I
> can't make persistent changes to backuppc's PATH. I can't write any .bash*
> files to the /home/backuppc directory! Could this be part of the problem?)
> So now BackupPC starts properly when run by user backuppc.
>
> BUT-----
>
> I'm still getting the same errors! "0 bytes," "Cannot open: Permission
> denied," and only trying to back up the /etc folder!
>
> Does anybody know what is wrong?
>
> Thank you.
>
>
>
>
> On Sat, Aug 21, 2010 at 8:54 AM, Allen <all...@ro...> wrote:
>
>> On 10-08-21 01:34 AM, Les Mikesell wrote:
>> > Loren Serfass wrote:
>> >
>> >> By the way, I think that the external hard drive issue might be a
>> >> distraction. I get exactly the same errors when I don't connect the
>> >> external hard drive and I instead try to backup to the
>> /var/lib/backuppc
>> >> directory on the internal disk.
>> >>
>> > Yes, I'd guess your use of sudo in the client commands is not resulting
>> in
>> > running as root. I've always just used ssh like any other host to get
>> local
>> > files even though it is less efficient.
>> >
>> >
>> I was just asking about the USB to verify that the format was suitable.
>> Sounds to be ok.
>>
>> It looks as if your path in the startup script or the environment path
>> does not have /sbin (or whereever start-stop-daemon is located) for user
>> backuppc. Make sure it is installed and validate the startup script path
>> or environment string for PATH when logged in as backuppc.
>>
>> Allen...
>>
>> --
>> /////////////////////////////////////////
>> Break away from the Gates of Windows...
>> Support OpenSource communities.
>> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> BackupPC-users mailing list
>> Bac...@li...
>> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki: http://backuppc.wiki.sourceforge.net
>> Project: http://backuppc.sourceforge.net/
>>
>
>
|
|
From: Les M. <les...@gm...> - 2010-08-22 15:54:06
|
On 8/21/10 11:54 PM, Loren Serfass wrote: > I got it working! I now have successful full and incremental backups, using tar > as XferMethod (I plan to switch to rsync). > The solution, suitably obvious in retrospect: I realized that there was a > file called "localhost.pl <http://localhost.pl>" which was overriding my > settings in config.pl <http://config.pl>. The documentation said that > configuration files in the folder __CONFDIR__/pc override __CONFDIR__/config.pl > <http://config.pl>, so I thought it was sufficient to make sure that > __CONFDIR__/pc/config.pl <http://config.pl> was all right. I neglected the > $host.pl <http://host.pl> file. > I was clued in to this indirectly by a user forum. The purpose of this > file is explained in the documentation, of course, but I didn't notice. Aren't you using the web interface to make your changes? -- Les Mikesell les...@gm... |
|
From: Allen <all...@ro...> - 2010-08-21 12:53:42
|
On 10-08-21 01:34 AM, Les Mikesell wrote:
> Loren Serfass wrote:
>
>> By the way, I think that the external hard drive issue might be a
>> distraction. I get exactly the same errors when I don't connect the
>> external hard drive and I instead try to backup to the /var/lib/backuppc
>> directory on the internal disk.
>>
> Yes, I'd guess your use of sudo in the client commands is not resulting in
> running as root. I've always just used ssh like any other host to get local
> files even though it is less efficient.
>
>
I was just asking about the USB to verify that the format was suitable.
Sounds to be ok.
It looks as if your path in the startup script or the environment path
does not have /sbin (or whereever start-stop-daemon is located) for user
backuppc. Make sure it is installed and validate the startup script path
or environment string for PATH when logged in as backuppc.
Allen...
--
/////////////////////////////////////////
Break away from the Gates of Windows...
Support OpenSource communities.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|
|
From: Loren S. <lor...@gm...> - 2010-08-21 19:18:06
|
Hi Allen,
Now I've got it so that backuppc can use the start-stop-daemon. I did
it by changing every occurrence of "start-stop-daemon" in the
/etc/init.d/backuppc script to "/sbin/start-stop-daemon" (for some reason I
can't make persistent changes to backuppc's PATH. I can't write any .bash*
files to the /home/backuppc directory! Could this be part of the problem?)
So now BackupPC starts properly when run by user backuppc.
BUT-----
I'm still getting the same errors! "0 bytes," "Cannot open: Permission
denied," and only trying to back up the /etc folder!
Does anybody know what is wrong?
Thank you.
On Sat, Aug 21, 2010 at 8:54 AM, Allen <all...@ro...> wrote:
> On 10-08-21 01:34 AM, Les Mikesell wrote:
> > Loren Serfass wrote:
> >
> >> By the way, I think that the external hard drive issue might be a
> >> distraction. I get exactly the same errors when I don't connect the
> >> external hard drive and I instead try to backup to the /var/lib/backuppc
> >> directory on the internal disk.
> >>
> > Yes, I'd guess your use of sudo in the client commands is not resulting
> in
> > running as root. I've always just used ssh like any other host to get
> local
> > files even though it is less efficient.
> >
> >
> I was just asking about the USB to verify that the format was suitable.
> Sounds to be ok.
>
> It looks as if your path in the startup script or the environment path
> does not have /sbin (or whereever start-stop-daemon is located) for user
> backuppc. Make sure it is installed and validate the startup script path
> or environment string for PATH when logged in as backuppc.
>
> Allen...
>
> --
> /////////////////////////////////////////
> Break away from the Gates of Windows...
> Support OpenSource communities.
> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> BackupPC-users mailing list
> Bac...@li...
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
|