BackupPC-users

Re: [BackupPC-users] Unable to change the storage place

2017-02-08 17:44:13
Subject: Re: [BackupPC-users] Unable to change the storage place
From: Edith Cloutier <edith.cloutier AT mediom DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Wed, 8 Feb 2017 17:26:12 -0500

Thanks Jan for your answer.

The command ""systemctl status backuppc.service" give this :

<  ● backuppc.service - LSB: Launch backuppc server

   Loaded: loaded (/etc/init.d/backuppc; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since lun 2017-02-06 07:57:34 EST; 17s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 17175 ExecStart=/etc/init.d/backuppc start (code=exited, status=1/FAILURE)

fév 06 07:57:34 edithbureau systemd[1]: Starting LSB: Launch backuppc server...
fév 06 07:57:34 edithbureau backuppc[17175]:  * Starting backuppc...
fév 06 07:57:34 edithbureau backuppc[17175]: 2017-02-06 07:57:34 Can't create a test hardlink between a file in /var/lib/backuppc/pc and /var/lib/backuppc/cpool.  Either these are different file syste
fév 06 07:57:34 edithbureau systemd[1]: backuppc.service: Control process exited, code=exited status=1
fév 06 07:57:34 edithbureau systemd[1]: Failed to start LSB: Launch backuppc server.
fév 06 07:57:34 edithbureau systemd[1]: backuppc.service: Unit entered failed state.
fév 06 07:57:34 edithbureau systemd[1]: backuppc.service: Failed with result 'exit-code'

>

And "journalctl -xe" :

<
-- L'unité (unit) backuppc.service a commencé à démarrer.
fév 06 07:57:34 edithbureau backuppc[17175]:  * Starting backuppc...
fév 06 07:57:34 edithbureau backuppc[17175]: 2017-02-06 07:57:34 Can't create a test hardlink between a file in /var/lib/backuppc/pc and /var/lib/backuppc/cpool.  Either these are different file syste
fév 06 07:57:34 edithbureau systemd[1]: backuppc.service: Control process exited, code=exited status=1
fév 06 07:57:34 edithbureau systemd[1]: Failed to start LSB: Launch backuppc server.
-- Subject: L'unité (unit) backuppc.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) backuppc.service a échoué, avec le résultat failed.
fév 06 07:57:34 edithbureau systemd[1]: backuppc.service: Unit entered failed state.
fév 06 07:57:34 edithbureau systemd[1]: backuppc.service: Failed with result 'exit-code'.
fév 06 07:57:34 edithbureau sudo[17147]: pam_unix(sudo:session): session closed for user root
fév 06 07:58:48 edithbureau AptDaemon[15927]: INFO: Quitting due to inactivity
fév 06 07:58:48 edithbureau AptDaemon[15927]: INFO: Quitting was requested
fév 06 07:58:48 edithbureau org.debian.apt[994]: 07:58:48 AptDaemon [INFO]: Quitting due to inactivity
fév 06 07:58:48 edithbureau org.debian.apt[994]: 07:58:48 AptDaemon [INFO]: Quitting was requested
lines 1279-1345/1345 (END)

>

As I wasn't able to install "jdupes", I couldn't use it. Sorry, I'm not an IT's expert.

Thanks for the support,


Le 2017-02-06 à 03:43, Jan Stransky a écrit :
These two commands could give some clues:
"systemctl status backuppc.service" and "journalctl -xe"

However, I think, hardlinking of BackupPC is key here. You need to use -H with rsync to preserve hardlinks, which BackupPC creates.
An option, which might help now and prevent another copying of the pool, is using "jdupes" (https://github.com/jbruchon/jdupes) to restore the hradlinks in pool.

Jan

On 02/03/2017 08:40 PM, Edith Cloutier wrote:
I use the Backuppc 's version 3.3.1-2ubuntu3.1 with Ubuntu 16.04
I want change the storage place from /var/lib/backuppc (sdb) to /media/edith/Disque640Go/backuppc (sda).

I used this method :
sudo service backuppc stop
sudo mkdir /media/edith/Disque640Go/backuppc/
sudo rsync -va /var/lib/backuppc /media/edith/Disque640Go/
sudo mv /var/lib/backuppc /var/lib/backuppc_origine
sudo ln -s /media/edith/Disque640Go/backuppc /var/lib/backuppc
sudo chown -h backuppc:backuppc /var/lib/backuppc
sudo service backuppc start

And I have this result : Job for backuppc.service failed because the control process exited with error code. See "systemctl status backuppc.service" and "journalctl -xe" for details.


Before I used Backuppc with Ubuntu 14.04 and 12.04, and it was perfect.
Why can't I use now ? What's the problem ?

Someone could help me ?

Edith



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/