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/


[BackupPC-users] BackupPC V3 -> V4 pool migration mandatory?

2024-02-03 Thread Adam Pribyl

Do I need to migrate anything with V3 to V4 upgrade (using tar, no rsync)?

I am fine having old backups in V3, create a new ones with V4. Does 
BackupPC V4 handles this? I know there is

/usr/share/BackupPC/bin/BackupPC_migrateV3toV4 -a
but is it mandatory to continue backuppc operation?

My pool is large, server "slow".

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