From: Michele Z. <m....@gm...> - 2016-09-07 16:37:51
|
Hello, Is it possible to access backups created with a different machine? My backuppc server died, but /var/lib/backuppc was on a different disk so I still have full backups of localhost. Ideally I would like to restore the full system but it would already be very good to recover the mysql databases and selected system configuration files. I reinstalled ubuntu, reinstalled backuppc, relinked /var/lib/backuppc but - No joy with the GUI (old backups do not show) - No joy using the command line. (as backuppc user) $ /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 224 -s '/' /var/lib/mysql > /tmp/dbs.tar /usr/share/backuppc/bin/BackupPC_tarCreate: bad backup number 224 for host localhost - BackupPC_zcat works but I have not figured out how to restore user:group and permissions Is there a way to get the GUI to read the backups (I am lazy)? If not is there a way to trick BackupPC_tarCreate? Note that when I re-installed backuppc it probably wrote new files in /var/lib/backuppc/pc/ and I do not have backups of those. Cheers, Michele |
From: David T. <da...@tr...> - 2016-09-07 18:08:34
|
As I remember almost all settings are stored in the .conf file. Here is a blog post when I needed to move the pool a few years ago... http://blog.trebacz.com/2009/10/my-weekend-linux-maintenance-activities.html It has a link to the SourceForge thread that I found helpful also. Great think is backuppc hasn't changed much since then... *David Trebacz* David Trebacz Profile Picture www.linkedin.com/in/trebacz <http://www.linkedin.com/in/trebacz> Email:da...@tr... <mailto:da...@tr...> Mobile: 815-529-2638 On 09/07/2016 09:37 AM, Michele Zarri wrote: > Hello, > > Is it possible to access backups created with a different machine? > > My backuppc server died, but /var/lib/backuppc was on a different disk > so I still have full backups of localhost. > Ideally I would like to restore the full system but it would already be > very good to recover the mysql databases and selected system > configuration files. > > I reinstalled ubuntu, reinstalled backuppc, relinked /var/lib/backuppc but > - No joy with the GUI (old backups do not show) > - No joy using the command line. > > (as backuppc user) > $ /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 224 -s '/' > /var/lib/mysql > /tmp/dbs.tar > /usr/share/backuppc/bin/BackupPC_tarCreate: bad backup number 224 for > host localhost > > - BackupPC_zcat works but I have not figured out how to restore > user:group and permissions > > Is there a way to get the GUI to read the backups (I am lazy)? If not is > there a way to trick BackupPC_tarCreate? > > Note that when I re-installed backuppc it probably wrote new files in > /var/lib/backuppc/pc/ and I do not have backups of those. > > Cheers, > > Michele > > ------------------------------------------------------------------------------ > _______________________________________________ > 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: Adam G. <mai...@we...> - 2016-09-07 23:06:46
|
On 08/09/16 02:37, Michele Zarri wrote: > Hello, > > Is it possible to access backups created with a different machine? > > My backuppc server died, but /var/lib/backuppc was on a different disk > so I still have full backups of localhost. > Ideally I would like to restore the full system but it would already be > very good to recover the mysql databases and selected system > configuration files. > > I reinstalled ubuntu, reinstalled backuppc, relinked /var/lib/backuppc but > - No joy with the GUI (old backups do not show) > - No joy using the command line. > > (as backuppc user) > $ /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 224 -s '/' > /var/lib/mysql > /tmp/dbs.tar > /usr/share/backuppc/bin/BackupPC_tarCreate: bad backup number 224 for > host localhost > > - BackupPC_zcat works but I have not figured out how to restore > user:group and permissions > > Is there a way to get the GUI to read the backups (I am lazy)? If not is > there a way to trick BackupPC_tarCreate? > > Note that when I re-installed backuppc it probably wrote new files in > /var/lib/backuppc/pc/ and I do not have backups of those. It would help if you provided the error messages you get with the gui in the logs... However, my guess is that the userid/groupid for the new install doesn't match the old. You have two choices: 1) Uninstall backuppc, remove the user/group backuppc, manually create the user/group backuppc but make sure you match the userid/groupid on the files in /var/lib/backuppc.... 2) Re-mount /var/lib/backuppc and map all existing files to the new userid/groupid that the backuppc user has. Another possibility, you need to re-create the config files and/or hosts file.... The contents probably don't matter a lot, as long as the hostnames match the old ones (see /var/lib/backuppc/pc/ for the right names). Hope that helps.... Regards, Adam -- Adam Goryachev Website Managers www.websitemanagers.com.au |
From: Micha K. <mi...@ko...> - 2016-09-08 08:55:54
|
Hi, the configuration is in /etc/backuppc there is a hosts file which defines the active hosts. It could be enough to add the host you wish to restore to this file. Met vriendelijke groet, Micha Kersloot www.kovoks.nl | www.mailcasa.eu | Volg @kovoks op Twitter E mi...@ko... T +31 (0)345 - 53 29 27 A Bellweg 36 | 4104 BJ Culemborg KvK 11033334 ----- Oorspronkelijk bericht ----- > Van: "Michele Zarri" <m....@gm...> > Aan: bac...@li... > Verzonden: Woensdag 7 september 2016 18:37:42 > Onderwerp: [BackupPC-users] access backups created by different server > Hello, > > Is it possible to access backups created with a different machine? > > My backuppc server died, but /var/lib/backuppc was on a different disk > so I still have full backups of localhost. > Ideally I would like to restore the full system but it would already be > very good to recover the mysql databases and selected system > configuration files. > > I reinstalled ubuntu, reinstalled backuppc, relinked /var/lib/backuppc but > - No joy with the GUI (old backups do not show) > - No joy using the command line. > > (as backuppc user) > $ /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 224 -s '/' > /var/lib/mysql > /tmp/dbs.tar > /usr/share/backuppc/bin/BackupPC_tarCreate: bad backup number 224 for > host localhost > > - BackupPC_zcat works but I have not figured out how to restore > user:group and permissions > > Is there a way to get the GUI to read the backups (I am lazy)? If not is > there a way to trick BackupPC_tarCreate? > > Note that when I re-installed backuppc it probably wrote new files in > /var/lib/backuppc/pc/ and I do not have backups of those. > > Cheers, > > Michele > > ------------------------------------------------------------------------------ > _______________________________________________ > 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: Michele Z. <m....@gm...> - 2016-09-08 21:20:41
|
On 08/09/16 00:06, Adam Goryachev wrote: > On 08/09/16 02:37, Michele Zarri wrote: >> Hello, >> >> Is it possible to access backups created with a different machine? >> >> My backuppc server died, but /var/lib/backuppc was on a different disk >> so I still have full backups of localhost. >> Ideally I would like to restore the full system but it would already be >> very good to recover the mysql databases and selected system >> configuration files. >> >> I reinstalled ubuntu, reinstalled backuppc, relinked /var/lib/backuppc but >> - No joy with the GUI (old backups do not show) >> - No joy using the command line. >> >> (as backuppc user) >> $ /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 224 -s '/' >> /var/lib/mysql > /tmp/dbs.tar >> /usr/share/backuppc/bin/BackupPC_tarCreate: bad backup number 224 for >> host localhost >> >> - BackupPC_zcat works but I have not figured out how to restore >> user:group and permissions >> >> Is there a way to get the GUI to read the backups (I am lazy)? If not is >> there a way to trick BackupPC_tarCreate? >> >> Note that when I re-installed backuppc it probably wrote new files in >> /var/lib/backuppc/pc/ and I do not have backups of those. > It would help if you provided the error messages you get with the gui in > the logs... > However, my guess is that the userid/groupid for the new install doesn't > match the old. You have two choices: > 1) Uninstall backuppc, remove the user/group backuppc, manually create > the user/group backuppc but make sure you match the userid/groupid on > the files in /var/lib/backuppc.... > 2) Re-mount /var/lib/backuppc and map all existing files to the new > userid/groupid that the backuppc user has. > > Another possibility, you need to re-create the config files and/or hosts > file.... The contents probably don't matter a lot, as long as the > hostnames match the old ones (see /var/lib/backuppc/pc/ for the right > names). > > Hope that helps.... > > Regards, > Adam > Thanks guys, I found out that the issue was relatively trivial: the file "backups" in the root localhost (/var/lib/backuppc/pc/localhost/backups) was overwritten when backuppc was reinstalled so that it only had one entry. I guess it could be possible to re-build the previous backups using the file backupInfo within each backup but it is too much work. Instead I renamed the last directory with a full backup (in my case 224) 0 and I was back in action. So the (partial) solution was simply: mv /var/lib/backuppc/pc/localhost/0 /var/lib/backuppc/pc/localhost/0.original mv /var/lib/backuppc/pc/localhost/224 /var/lib/backuppc/pc/localhost/0 Regards, Michele |
From: Holger P. <wb...@pa...> - 2016-09-13 17:08:18
|
Hi, Michele Zarri wrote on 2016-09-08 22:20:32 +0100 [Re: [BackupPC-users] access backups created by different server]: > > On 08/09/16 02:37, Michele Zarri wrote: > >> [...] > >> /usr/share/backuppc/bin/BackupPC_tarCreate: bad backup number 224 for > >> host localhost > >> [...] > I found out that the issue was relatively trivial: the file "backups" in > the root localhost (/var/lib/backuppc/pc/localhost/backups) was > overwritten when backuppc was reinstalled so that it only had one entry. > > I guess it could be possible to re-build the previous backups using the > file backupInfo within each backup but it is too much work. really? As in su - backuppc /usr/share/backuppc/bin/BackupPC_fixupBackupSummary ? Admitted, you might need to delete the single entry from the backups file first, but it will probably work equally well if you don't. Why is there an entry anyway? Does your distribution ship BackupPC with an initial backup for localhost? ;-) > Instead I renamed the last directory with a full backup (in my case 224) > 0 and I was back in action. Well, yes, but you lose your backup history, and you'll probably run into problems when you try to do backups ... Regards, Holger |