Greetings, > Sent: Saturday, February 03, 2024 at 4:24 PM > From: "G.W. Haywood" <bac...@jubileegroup.co.uk> > 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 proc defaults 0 0 PARTUUID=4fe29e33-01 /boot/firmware vfat defaults 0 2 PARTUUID=4fe29e33-02 / ext4 defaults,noatime 0 1 LABEL=backup /var/lib/backuppc/ ext4 defaults,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/