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/