Re: [BackupPC-users] error restoring backup

2024-02-17 Thread daggs via BackupPC-users


> Sent: Friday, February 16, 2024 at 5:02 PM
> From: "Les Mikesell" 
> To: "daggs" 
> Cc: "General list for user discussion, questions and support" 
> 
> Subject: Re: [BackupPC-users] error restoring backup
>
> On Fri, Feb 16, 2024 at 2:31 AM daggs  wrote:
> >
> > managed to get it to work, the the -s was / and the rest was all the 
> > folders one after another as * didn't worked
> >
> 
> If you aren't familiar with the unix/linux shell, * would have to be
> enclosed in single quotes like '*'.  Otherwise it expands to the list
> of files in your current directory before the command sees it.
> 

I am familiar with the unix/linux shell, '*' didn't worked too
ragardless, now I have the backup restored.

Thanks.


___
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] error restoring backup

2024-02-16 Thread Les Mikesell
On Fri, Feb 16, 2024 at 2:31 AM daggs  wrote:
>
> managed to get it to work, the the -s was / and the rest was all the folders 
> one after another as * didn't worked
>

If you aren't familiar with the unix/linux shell, * would have to be
enclosed in single quotes like '*'.  Otherwise it expands to the list
of files in your current directory before the command sees it.

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


___
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] error restoring backup

2024-02-16 Thread daggs via BackupPC-users


> Sent: Wednesday, February 14, 2024 at 12:04 AM
> From: "Les Mikesell" 
> To: "daggs" 
> Cc: "General list for user discussion, questions and support" 
> 
> Subject: Re: [BackupPC-users] error restoring backup
>
> On Tue, Feb 13, 2024 at 1:15 PM daggs  wrote:
> >
> > I want to restore it to a mount I've attached to the backup server
> > so Backuppc_tarCreate -h host -n -1 | tar xf -C /mnt
> > will do the trick?
> >
> 
> Backuppc_tarCreate needs a '-s sharename' option which would be the
> share you used for the backup (maybe '/') and you can specify a list
> of files or directories to restore.  You can also use '-l' to just
> list the files.  I'd try that first - and maybe restore a small
> directory like /etc or a single file first to see if you are on the
> right track.   I'm retired and a little fuzzy on this myself.Also,
> is the drive mounted as /mnt or something under /mnt?   I'd cd into
> the top of that mount point to run the command instead of using -C.
> Also tar needs a '-' after the f option to tell it to read stdin.
> 
managed to get it to work, the the -s was / and the rest was all the folders 
one after another as * didn't worked

thanks for the help


___
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] error restoring backup

2024-02-13 Thread Les Mikesell
On Tue, Feb 13, 2024 at 1:15 PM daggs  wrote:
>
> I want to restore it to a mount I've attached to the backup server
> so Backuppc_tarCreate -h host -n -1 | tar xf -C /mnt
> will do the trick?
>

Backuppc_tarCreate needs a '-s sharename' option which would be the
share you used for the backup (maybe '/') and you can specify a list
of files or directories to restore.  You can also use '-l' to just
list the files.  I'd try that first - and maybe restore a small
directory like /etc or a single file first to see if you are on the
right track.   I'm retired and a little fuzzy on this myself.Also,
is the drive mounted as /mnt or something under /mnt?   I'd cd into
the top of that mount point to run the command instead of using -C.
Also tar needs a '-' after the f option to tell it to read stdin.

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


___
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] error restoring backup

2024-02-13 Thread daggs via BackupPC-users


> Sent: Sunday, February 11, 2024 at 8:26 AM
> From: "Les Mikesell" 
> To: "daggs" 
> Cc: "General list for user discussion, questions and support" 
> 
> Subject: Re: [BackupPC-users] error restoring backup
>
> On Sun, Feb 11, 2024 at 12:08 AM daggs  wrote:
> >
> >
> > > > what is the expected behavior if I restore to remote and not localhost?
> > > >
> > >
> > > That's going to depend on ssh being set up correctly on the remote.
> > > And it will use the method configured for that host for the restore.
> > > If you want the large tar image file instead you could use the web
> > > interface to download it on some other computer with space.
> > >
> >
> > both machines are headless...
> > also, I'm not sure I can place a >2 TB file anywhere on my systems.
> >
> > I assume I can use BackupPC_zcat on each file and restore it to the proper 
> > location, thing is, I have the files which are part of either full backup 
> > and incremental backup
> > and the last save is a incremental one, so is there a way to work with only 
> > the incremental one and have BackupPC_zcat know when to take it from the 
> > full backup?
> 
> Did you want to restore to the original remote host or to a mounted
> local filesystem?  If the latter, and the problem is not having space
> for the intermediate tar image file, then pipe the tarCreate command
> output to an appropriate tar restore command. Note that the extract
> will happen in your current directory unless you include a -C path
> option, and ownership is going to be set according to the numeric user
> id on the original file which may not match when on a different
> machine.
I want to restore it to a mount I've attached to the backup server
so Backuppc_tarCreate -h host -n -1 | tar xf -C /mnt
will do the trick?

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


___
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] error restoring backup

2024-02-10 Thread Les Mikesell
On Sun, Feb 11, 2024 at 12:08 AM daggs  wrote:
>
>
> > > what is the expected behavior if I restore to remote and not localhost?
> > >
> >
> > That's going to depend on ssh being set up correctly on the remote.
> > And it will use the method configured for that host for the restore.
> > If you want the large tar image file instead you could use the web
> > interface to download it on some other computer with space.
> >
>
> both machines are headless...
> also, I'm not sure I can place a >2 TB file anywhere on my systems.
>
> I assume I can use BackupPC_zcat on each file and restore it to the proper 
> location, thing is, I have the files which are part of either full backup and 
> incremental backup
> and the last save is a incremental one, so is there a way to work with only 
> the incremental one and have BackupPC_zcat know when to take it from the full 
> backup?

Did you want to restore to the original remote host or to a mounted
local filesystem?  If the latter, and the problem is not having space
for the intermediate tar image file, then pipe the tarCreate command
output to an appropriate tar restore command. Note that the extract
will happen in your current directory unless you include a -C path
option, and ownership is going to be set according to the numeric user
id on the original file which may not match when on a different
machine.

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


___
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] error restoring backup

2024-02-10 Thread daggs via BackupPC-users


> Sent: Saturday, February 10, 2024 at 11:14 PM
> From: "Les Mikesell" 
> To: "daggs" 
> Cc: "General list for user discussion, questions and support" 
> 
> Subject: Re: [BackupPC-users] error restoring backup
>
> On Sat, Feb 10, 2024 at 1:15 PM daggs  wrote:
> >
> > what is the expected behavior if I restore to remote and not localhost?
> >
> 
> That's going to depend on ssh being set up correctly on the remote.
> And it will use the method configured for that host for the restore.
> If you want the large tar image file instead you could use the web
> interface to download it on some other computer with space.
> 

both machines are headless...
also, I'm not sure I can place a >2 TB file anywhere on my systems.

I assume I can use BackupPC_zcat on each file and restore it to the proper 
location, thing is, I have the files which are part of either full backup and 
incremental backup
and the last save is a incremental one, so is there a way to work with only the 
incremental one and have BackupPC_zcat know when to take it from the full 
backup?


___
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] error restoring backup

2024-02-10 Thread Les Mikesell
On Sat, Feb 10, 2024 at 1:15 PM daggs  wrote:
>
> what is the expected behavior if I restore to remote and not localhost?
>

That's going to depend on ssh being set up correctly on the remote.
And it will use the method configured for that host for the restore.
If you want the large tar image file instead you could use the web
interface to download it on some other computer with space.

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


___
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] error restoring backup

2024-02-10 Thread daggs via BackupPC-users
what is the expected behavior if I restore to remote and not localhost?

> Sent: Saturday, February 10, 2024 at 7:42 PM
> From: "Les Mikesell" 
> To: "General list for user discussion, questions and support" 
> 
> Cc: "daggs" 
> Subject: Re: [BackupPC-users] error restoring backup
>
> On Sat, Feb 10, 2024 at 10:53 AM daggs via BackupPC-users
>  wrote:
> >
> > the log doesn't specify the command but I think I have a clue, I saw that 
> > the cmd is something in the line of this: 
> > https://unix.stackexchange.com/questions/291402/backuppc-restore-using-command-line-tools
> >
> > so it restores it to local path, in my case the tar file should be almost 3 
> > TB of size and the local path as at most 16 GB.
> > the target path has enough space.
> > so I assume the issue is lack of space
> 
> tarCreate writes to stdout, which in that example is redirected to a
> local file.  Send it where you have space - or test again restoring
> only a small directory.
> 
> -- 
>Les Mikesell
>  lesmikes...@gmail.com
>


___
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] error restoring backup

2024-02-10 Thread Les Mikesell
On Sat, Feb 10, 2024 at 10:53 AM daggs via BackupPC-users
 wrote:
>
> the log doesn't specify the command but I think I have a clue, I saw that the 
> cmd is something in the line of this: 
> https://unix.stackexchange.com/questions/291402/backuppc-restore-using-command-line-tools
>
> so it restores it to local path, in my case the tar file should be almost 3 
> TB of size and the local path as at most 16 GB.
> the target path has enough space.
> so I assume the issue is lack of space

tarCreate writes to stdout, which in that example is redirected to a
local file.  Send it where you have space - or test again restoring
only a small directory.

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


___
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] error restoring backup

2024-02-10 Thread daggs via BackupPC-users
the log doesn't specify the command but I think I have a clue, I saw that the 
cmd is something in the line of this: 
https://unix.stackexchange.com/questions/291402/backuppc-restore-using-command-line-tools

so it restores it to local path, in my case the tar file should be almost 3 TB 
of size and the local path as at most 16 GB.
the target path has enough space.
so I assume the issue is lack of space

> Sent: Saturday, February 10, 2024 at 3:21 AM
> From: "Norman Goldstein" 
> To: backuppc-users@lists.sourceforge.net
> Subject: Re: [BackupPC-users] error restoring backup
>
> Run tarCreate at the command prompt. The log file may have the tarCreate 
> command line that was used.
> 
> On 2024-02-09 14:27, daggs via BackupPC-users wrote:
> >> Sent: Thursday, February 08, 2024 at 11:40 PM
> >> From: "Les Mikesell" 
> >> To: "General list for user discussion, questions and support" 
> >> 
> >> Cc: "daggs" 
> >> Subject: Re: [BackupPC-users] error restoring backup
> >>
> >> On Thu, Feb 8, 2024 at 2:46 PM daggs via BackupPC-users
> >>  wrote:
> >>> any ideas? maybe to use the cli interface?
> >>>
> >> If normal permissions and mount status are OK, the next thing that
> >> could be preventing writing is selinux.  Is it enabled/enforcing?
> >>
> > no selinux but I have advanced, I've rebooted the server and tried the same 
> > flow, this time I don't get the error as before, I get an request sent but 
> > when I'm looking inside the server status tab, I see this:
> > localhost   restore backuppc2024-02-09 22:24
> > 2024-02-09 22:24BackupPC_tarCreate failed
> >
> > how can I get more info on why it failed?
> >
> >
> > ___
> > 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/
> 
> 
> 
> ___
> 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/
>


___
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] error restoring backup

2024-02-09 Thread Norman Goldstein
Run tarCreate at the command prompt. The log file may have the tarCreate 
command line that was used.


On 2024-02-09 14:27, daggs via BackupPC-users wrote:

Sent: Thursday, February 08, 2024 at 11:40 PM
From: "Les Mikesell" 
To: "General list for user discussion, questions and support" 

Cc: "daggs" 
Subject: Re: [BackupPC-users] error restoring backup

On Thu, Feb 8, 2024 at 2:46 PM daggs via BackupPC-users
 wrote:

any ideas? maybe to use the cli interface?


If normal permissions and mount status are OK, the next thing that
could be preventing writing is selinux.  Is it enabled/enforcing?


no selinux but I have advanced, I've rebooted the server and tried the same 
flow, this time I don't get the error as before, I get an request sent but when 
I'm looking inside the server status tab, I see this:
localhost   restore backuppc2024-02-09 22:24
2024-02-09 22:24BackupPC_tarCreate failed

how can I get more info on why it failed?


___
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/




___
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] error restoring backup

2024-02-09 Thread daggs via BackupPC-users
> Sent: Thursday, February 08, 2024 at 11:40 PM
> From: "Les Mikesell" 
> To: "General list for user discussion, questions and support" 
> 
> Cc: "daggs" 
> Subject: Re: [BackupPC-users] error restoring backup
>
> On Thu, Feb 8, 2024 at 2:46 PM daggs via BackupPC-users
>  wrote:
> >
> 
> > any ideas? maybe to use the cli interface?
> >
> 
> If normal permissions and mount status are OK, the next thing that
> could be preventing writing is selinux.  Is it enabled/enforcing?
> 

no selinux but I have advanced, I've rebooted the server and tried the same 
flow, this time I don't get the error as before, I get an request sent but when 
I'm looking inside the server status tab, I see this:
localhost   restore backuppc2024-02-09 22:24
2024-02-09 22:24BackupPC_tarCreate failed

how can I get more info on why it failed?


___
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] error restoring backup

2024-02-08 Thread Les Mikesell
On Thu, Feb 8, 2024 at 2:46 PM daggs via BackupPC-users
 wrote:
>

> any ideas? maybe to use the cli interface?
>

If normal permissions and mount status are OK, the next thing that
could be preventing writing is selinux.  Is it enabled/enforcing?

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


___
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] error restoring backup

2024-02-08 Thread daggs via BackupPC-users
> Sent: Sunday, February 04, 2024 at 4:11 PM
> From: "daggs via BackupPC-users" 
> To: backuppc-users@lists.sourceforge.net
> Cc: "daggs" , backuppc-users@lists.sourceforge.net
> Subject: Re: [BackupPC-users] error restoring backup
>
> > Sent: Sunday, February 04, 2024 at 3:58 PM
> > From: "G.W. Haywood" 
> > To: backuppc-users@lists.sourceforge.net
> > Subject: Re: [BackupPC-users] error restoring backup
> >
> > Hi there,
> >
> > > On Sun, 4 Feb 2024, Les Mikesell wrote:
> > > > On Sun, 4 Feb 2024, daggs wrote:
> > > > ...
> > > > $ cat /etc/fstab
> > > > proc/proc   procdefaults  0   0
> > > > PARTUUID=4fe29e33-01  /boot/firmware  vfatdefaults  0   
> > > > 2
> > > > PARTUUID=4fe29e33-02  /   ext4defaults,noatime  0   
> > > > 1
> > > > LABEL=backup /var/lib/backuppc/ext4defaults,noatime,ro  0   
> > > > 1
> > > > # a swapfile is not a swap partition, no line here
> > > > #   use  dphys-swapfile swap[on|off]  for that
> > > >
> > > > is there any other info required?
> > >
> > > Specifically, you need to know why the backuppc user can't write in
> > > that location.
> >
> > Looks like fstab tells us.  It doesn't matter *what* the permissions
> > say in the filesystem if you mount it read only... :/
> but if you look at mount output, you'll see it is rw as I've remounted as rw
>
> Dagg
>

any ideas? maybe to use the cli interface?


___
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] error restoring backup

2024-02-04 Thread daggs via BackupPC-users
> Sent: Sunday, February 04, 2024 at 3:58 PM
> From: "G.W. Haywood" 
> To: backuppc-users@lists.sourceforge.net
> Subject: Re: [BackupPC-users] error restoring backup
>
> Hi there,
>
> > On Sun, 4 Feb 2024, Les Mikesell wrote:
> > > On Sun, 4 Feb 2024, daggs wrote:
> > > ...
> > > $ cat /etc/fstab
> > > proc/proc   procdefaults  0   0
> > > PARTUUID=4fe29e33-01  /boot/firmware  vfatdefaults  0   2
> > > PARTUUID=4fe29e33-02  /   ext4defaults,noatime  0   1
> > > LABEL=backup /var/lib/backuppc/ext4defaults,noatime,ro  0   1
> > > # a swapfile is not a swap partition, no line here
> > > #   use  dphys-swapfile swap[on|off]  for that
> > >
> > > is there any other info required?
> >
> > Specifically, you need to know why the backuppc user can't write in
> > that location.
>
> Looks like fstab tells us.  It doesn't matter *what* the permissions
> say in the filesystem if you mount it read only... :/
but if you look at mount output, you'll see it is rw as I've remounted as rw

Dagg


___
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] error restoring backup

2024-02-04 Thread G.W. Haywood

Hi there,


On Sun, 4 Feb 2024, Les Mikesell wrote:
> On Sun, 4 Feb 2024, daggs wrote:
> ...
> $ cat /etc/fstab
> proc/proc   procdefaults  0   0
> PARTUUID=4fe29e33-01  /boot/firmware  vfatdefaults  0   2
> PARTUUID=4fe29e33-02  /   ext4defaults,noatime  0   1
> LABEL=backup /var/lib/backuppc/ext4defaults,noatime,ro  0   1
> # a swapfile is not a swap partition, no line here
> #   use  dphys-swapfile swap[on|off]  for that
> 
> is there any other info required?


Specifically, you need to know why the backuppc user can't write in
that location.


Looks like fstab tells us.  It doesn't matter *what* the permissions
say in the filesystem if you mount it read only... :/

--

73,
Ged.


___
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] error restoring backup

2024-02-03 Thread daggs via BackupPC-users


> Sent: Sunday, February 04, 2024 at 12:38 AM
> From: "Les Mikesell" 
> To: "General list for user discussion, questions and support" 
> 
> Cc: "daggs" 
> Subject: Re: [BackupPC-users] error restoring backup
>
> > > > Error: Can't open/create 
> > > > /var/lib/backuppc/pc/localhost/restoreReq.22495.0
>
> > is there any other info required?
>
> Specifically, you need to know why the backuppc user can't write in
> that location.
> Maybe 'ls -l /var/lib/backuppc/pc'
> or
> 'ls -ld /var/lib/backuppc/pc/localhost'
> will tell you.

$ ls -ld /var/lib/backuppc/pc/localhost
drwxr-x--- 4 backuppc backuppc 4096 Feb  1 01:00 /var/lib/backuppc/pc/localhost
$ ls -l /var/lib/backuppc/pc
total 72
drwxr--r--  5 backuppc backuppc 4096 Feb  1 01:00 dtv_server
drwxr--r-- 11 backuppc backuppc 4096 Feb  1 01:00 idesesm-pc
drwxr-x---  4 backuppc backuppc 4096 Feb  1 01:00 localhost
drwxr-x---  2 backuppc backuppc 4096 Feb  1 01:00 media
drwxr-x---  3 backuppc backuppc 4096 Feb  1 01:00 michal_desktop
drwxr--r-- 10 backuppc backuppc 4096 Feb  1 01:00 michalvirtpc
drwxr-x---  7 backuppc backuppc 4096 Feb  3 23:00 nas_server
drwxr--r-- 10 backuppc backuppc 4096 Feb  1 01:00 ncc-5001-d_confs_n_scripts
drwxr--r--  7 backuppc backuppc 4096 Feb  1 01:00 ncc-5001-d_home
drwxr--r--  5 backuppc backuppc 4096 Feb  1 01:00 ncc-5001-d_imgs
drwxr--r--  7 backuppc backuppc 4096 Feb  1 01:00 ncc-5001-d_media
drwxr-x---  5 backuppc backuppc 4096 Feb  1 01:00 ncc-5001-d_personal
drwxr--r--  7 backuppc backuppc 4096 Feb  1 01:00 ncc-5001-d_pictures
drwxr--r--  8 backuppc backuppc 4096 Feb  1 01:00 ncc-5001-d_remote_media
drwxr-x---  4 backuppc backuppc 4096 Feb  1 01:00 ncc-5001-d_snapshot
drwxr--r-- 15 backuppc backuppc 4096 Feb  3 23:00 streamer
drwxr--r--  4 backuppc backuppc 4096 Feb  1 01:00 tvheadend_server
drwxr-x---  6 backuppc backuppc 4096 Feb  3 23:00 utils_server

seems ok to me



___
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] error restoring backup

2024-02-03 Thread Les Mikesell
> > > Error: Can't open/create /var/lib/backuppc/pc/localhost/restoreReq.22495.0

> is there any other info required?

Specifically, you need to know why the backuppc user can't write in
that location.
Maybe 'ls -l /var/lib/backuppc/pc'
or
'ls -ld /var/lib/backuppc/pc/localhost'
will tell you.

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


___
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] error restoring backup

2024-02-03 Thread daggs via BackupPC-users
Greetings,

> Sent: Saturday, February 03, 2024 at 4:24 PM
> From: "G.W. Haywood" 
> To: backuppc-users@lists.sourceforge.net
> Subject: Re: [BackupPC-users] error restoring backup
>
> Hi there,
>
> On Sat, 3 Feb 2024, daggs wrote:
>
> > I want to restore a remote backup to a external device which is connected 
> > to my backup server under mount.
> > I've selected the remote host and the backup host (localhost) at path /mnt 
> > but I get the below error.
> > Error: Can't open/create /var/lib/backuppc/pc/localhost/restoreReq.22495.0
> >
> > what can be the issue?
>
> When you do *anything*, for example in this case a restore, there's a
> 'user' involved.  That user has permissions.  The permissions need at
> least to grant read access to what needs to be read and write access
> to what needs to be written.  The 'open/create' in the error message
> *seems* to be telling us that the user doesn't have permission, but I
> wouldn't rule out the possibility that the path is non-existent from
> what I've seen so far.  Is there any more to the error message?

no, that is the only error I see, what I did was to install backuppc and then 
copy the data from the old drive to the new one where backuppc runs.

>
>
> It might be as simple as giving write permission on a directory to the
> user doing the restore, but you might need to look at
>
> (a) the user ids
>- which user is doing the restore
>- where the restored files are expected to be written
>- what permissions will the user need to do whatever is required
that depends on the ui, I don't know what is the user used by the ui

>
> (b) those parts of the BackupPC configuration which concern
>- the locations of the various bits of the BackupPC system and
>- the user(s) which are allowed to run backups and restores
>
where can I find it?

> If you can give more details about how you attempted to perform the
> restore (if you used the command line, then let us see the commands),
> about your configuration, about all the different bits of equipment,
> and how they're supposed to talk to each other, we should be able to
> give you better help.  If you mounted any of the bits manually, let
> us see the mount command(s) (and the content of /etc/fstab if used).
as said, I'm using the ui to restore from an old host's data to localhost at 
/mnt/

$ mount
...
/dev/sda1 on /var/lib/backuppc type ext4 (rw,relatime)
/dev/sdb1 on /mnt type ext3 (rw,relatime)
...

$ ls -l /mnt/ -a /var/lib/backuppc
/mnt/:
total 24
drwxrwxrwx  3 root root  4096 Feb  2 14:32 .
drwxr-xr-x 18 root root  4096 Dec 11 01:24 ..
drwx--  2 root root 16384 Feb  2 14:32 lost+found

/var/lib/backuppc:
total 48
drwxr-xr-x   9 root root  4096 Jan 27 13:32 .
drwxr-xr-x  30 root root  4096 Jan 26 13:41 ..
drwxr-xr-x 146 backuppc backuppc  4096 Jan 30 20:11 cpool
drwxr-xr-x   2 backuppc www-data  4096 Jan 27 13:31 etc_backuppc
drwxr-x---   2 backuppc backuppc  4096 Feb  3 18:00 log
drwx--   4  126  126 16384 Sep  6  2015 lost+found
drwxr-xr-x  20 backuppc backuppc  4096 Aug 19  2020 pc
drwxr-xr-x   2 backuppc backuppc  4096 Sep  6  2015 pool
drwxr-   2 backuppc backuppc  4096 Jul 31  2020 trash

$ cat /etc/fstab
proc/proc   procdefaults  0   0
PARTUUID=4fe29e33-01  /boot/firmware  vfatdefaults  0   2
PARTUUID=4fe29e33-02  /   ext4defaults,noatime  0   1
LABEL=backup /var/lib/backuppc/ext4defaults,noatime,ro  0   1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

is there any other info required?

Thanks,

Dagg
>
> --
>
> 73,
> Ged.
>


___
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] error restoring backup

2024-02-03 Thread G.W. Haywood

Hi there,

On Sat, 3 Feb 2024, daggs wrote:


I want to restore a remote backup to a external device which is connected to my 
backup server under mount.
I've selected the remote host and the backup host (localhost) at path /mnt but 
I get the below error.
Error: Can't open/create /var/lib/backuppc/pc/localhost/restoreReq.22495.0

what can be the issue?


When you do *anything*, for example in this case a restore, there's a
'user' involved.  That user has permissions.  The permissions need at
least to grant read access to what needs to be read and write access
to what needs to be written.  The 'open/create' in the error message
*seems* to be telling us that the user doesn't have permission, but I
wouldn't rule out the possibility that the path is non-existent from
what I've seen so far.  Is there any more to the error message?

It might be as simple as giving write permission on a directory to the
user doing the restore, but you might need to look at

(a) the user ids
  - which user is doing the restore
  - where the restored files are expected to be written
  - what permissions will the user need to do whatever is required

(b) those parts of the BackupPC configuration which concern
  - the locations of the various bits of the BackupPC system and
  - the user(s) which are allowed to run backups and restores

If you can give more details about how you attempted to perform the
restore (if you used the command line, then let us see the commands),
about your configuration, about all the different bits of equipment,
and how they're supposed to talk to each other, we should be able to
give you better help.  If you mounted any of the bits manually, let
us see the mount command(s) (and the content of /etc/fstab if used).

--

73,
Ged.


___
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/


[BackupPC-users] error restoring backup

2024-02-02 Thread daggs via BackupPC-users
Greetings,

I want to restore a remote backup to a external device which is connected to my 
backup server under mount.
I've selected the remote host and the backup host (localhost) at path /mnt but 
I get the below error.
Error: Can't open/create /var/lib/backuppc/pc/localhost/restoreReq.22495.0

what can be the issue?

Thanks,

Dagg



___
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/