Re: [BackupPC-users] Unable to change the storage place
Yes, thats valid point. However, i would stick with with +X option... Jan On 02/12/2017 11:24 PM, Les Mikesell wrote: > On Sun, Feb 12, 2017 at 12:14 PM, Jan Stransky >wrote: >> I would rather use: >> chmod -r o+rX /path >> It adds execute only to directories, and keeps on files when present. > Not sure it is desirable to add the extra permissions below the point > where it is owned by backuppc. > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
Yippee ! Backuppc restarted ! Les, thank for your help and your patience :) @ Patrick Bégou, je suis sur Ubuntu 16.04 Le 2017-02-12 à 10:47, Les Mikesell a écrit : > On Sun, Feb 12, 2017 at 7:32 AM, Edith Cloutier >wrote: >> You have reason; I have a problem with the permissions : >> >> ls -ld /media >> drwxr-xr-x 3 root root 4096 jun 11 2016 /media >> >>ls -ld /media/edith >> drwxr-x---+ 3 root root 4096 fév 5 21:18 /media/edith >> >> ls -ld /media/edith/Disque640Go >> drwxr-xr-x 3 root root 4096 fév 9 10:57 /media/edith/Disque640Go >> >> ls -ld /media/edith/Disque640Go/backuppc >> drwxr-x--- 7 backuppc backuppc 4096 fév 9 10:46 >> /media/edith/Disque640Go/backuppc >> >> >> How can I correct this situation ? I'm not very good with the commands >> who change the permissions. > You can use chmod with the symbolic form for the permissions. > > chmod o+rx /path > for each of the directories will add read and execute for everyone (other). > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
Helo, The first problem is to use this kind of auto mounting for your disk. It is for simple user not to use in an system administrator point of view. To move /var/lib/backuppc to a new disk permanently you must at least. Stop backuppc add a permanetly entry in the /etc/fstab file to mount your new disk in /var/lib/backuppc move backuppc to backuppc.old (use mv …) recreate the diectory (mkdir /var/lib/backuppc) mount your new disk (use mount /var/lib/backuppc if your /etc/fstab is correct is suffisant) give the good owner (chown backuppc /var/lib/backuppc) give the good group (chgrp backuppc /var/lib/backuppc) move the existing files (rsync or tar …) restart backuppc and take a long breath. Best regard. C. G > Le 12 févr. 2017 à 18:24, Les Mikesella écrit : > > On Sun, Feb 12, 2017 at 12:14 PM, Jan Stransky > wrote: >> I would rather use: >> chmod -r o+rX /path >> It adds execute only to directories, and keeps on files when present. > > Not sure it is desirable to add the extra permissions below the point > where it is owned by backuppc. > > -- > Les Mikesell >lesmikes...@gmail.com > > -- > 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@lists.sourceforge.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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
And may be takes care to selinux to access BakupPC home directory in an unusual place... I don't know what your OS is. Patrick Jan Stransky a écrit : > I would rather use: > chmod -r o+rX /path > It adds execute only to directories, and keeps on files when present. > Jan > > On 02/12/2017 04:47 PM, Les Mikesell wrote: >> On Sun, Feb 12, 2017 at 7:32 AM, Edith Cloutier >>wrote: >>> You have reason; I have a problem with the permissions : >>> >>> ls -ld /media >>> drwxr-xr-x 3 root root 4096 jun 11 2016 /media >>> >>> ls -ld /media/edith >>> drwxr-x---+ 3 root root 4096 fév 5 21:18 /media/edith >>> >>> ls -ld /media/edith/Disque640Go >>> drwxr-xr-x 3 root root 4096 fév 9 10:57 /media/edith/Disque640Go >>> >>> ls -ld /media/edith/Disque640Go/backuppc >>> drwxr-x--- 7 backuppc backuppc 4096 fév 9 10:46 >>> /media/edith/Disque640Go/backuppc >>> >>> >>> How can I correct this situation ? I'm not very good with the commands >>> who change the permissions. >> You can use chmod with the symbolic form for the permissions. >> >> chmod o+rx /path >> for each of the directories will add read and execute for everyone (other). >> > > -- > 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@lists.sourceforge.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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
I would rather use: chmod -r o+rX /path It adds execute only to directories, and keeps on files when present. Jan On 02/12/2017 04:47 PM, Les Mikesell wrote: > On Sun, Feb 12, 2017 at 7:32 AM, Edith Cloutier >wrote: >> You have reason; I have a problem with the permissions : >> >> ls -ld /media >> drwxr-xr-x 3 root root 4096 jun 11 2016 /media >> >>ls -ld /media/edith >> drwxr-x---+ 3 root root 4096 fév 5 21:18 /media/edith >> >> ls -ld /media/edith/Disque640Go >> drwxr-xr-x 3 root root 4096 fév 9 10:57 /media/edith/Disque640Go >> >> ls -ld /media/edith/Disque640Go/backuppc >> drwxr-x--- 7 backuppc backuppc 4096 fév 9 10:46 >> /media/edith/Disque640Go/backuppc >> >> >> How can I correct this situation ? I'm not very good with the commands >> who change the permissions. > You can use chmod with the symbolic form for the permissions. > > chmod o+rx /path > for each of the directories will add read and execute for everyone (other). > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
On Sun, Feb 12, 2017 at 7:32 AM, Edith Cloutierwrote: > You have reason; I have a problem with the permissions : > > ls -ld /media > drwxr-xr-x 3 root root 4096 jun 11 2016 /media > > ls -ld /media/edith > drwxr-x---+ 3 root root 4096 fév 5 21:18 /media/edith > > ls -ld /media/edith/Disque640Go > drwxr-xr-x 3 root root 4096 fév 9 10:57 /media/edith/Disque640Go > > ls -ld /media/edith/Disque640Go/backuppc > drwxr-x--- 7 backuppc backuppc 4096 fév 9 10:46 > /media/edith/Disque640Go/backuppc > > > How can I correct this situation ? I'm not very good with the commands > who change the permissions. You can use chmod with the symbolic form for the permissions. chmod o+rx /path for each of the directories will add read and execute for everyone (other). -- Les Mikesell lesmikes...@gmail.com -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
You have reason; I have a problem with the permissions : ls -ld /media drwxr-xr-x 3 root root 4096 jun 11 2016 /media ls -ld /media/edith drwxr-x---+ 3 root root 4096 fév 5 21:18 /media/edith ls -ld /media/edith/Disque640Go drwxr-xr-x 3 root root 4096 fév 9 10:57 /media/edith/Disque640Go ls -ld /media/edith/Disque640Go/backuppc drwxr-x--- 7 backuppc backuppc 4096 fév 9 10:46 /media/edith/Disque640Go/backuppc How can I correct this situation ? I'm not very good with the commands who change the permissions. Thanks Le 2017-02-11 à 22:03, Les Mikesell a écrit : > On Sat, Feb 11, 2017 at 8:28 PM, Edith Cloutier >wrote: >> sudo su -s /bin/bash backuppc >> [sudo] Mot de passe de edith : >> bash: /var/lib/backuppc/.bashrc: Permission denied > Is that fatal or do you still get a shell running as backuppc at that point? > > Is it the file itself with incorrect permissions? Maybe everything is > blocked by permissions on a directory above the one where your symlink > points. Use 'ls -ld' on each starting with /media and make sure > there is rx permission for everyone or at least backuppc. > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
On Sat, Feb 11, 2017 at 8:28 PM, Edith Cloutierwrote: > sudo su -s /bin/bash backuppc > [sudo] Mot de passe de edith : > bash: /var/lib/backuppc/.bashrc: Permission denied Is that fatal or do you still get a shell running as backuppc at that point? Is it the file itself with incorrect permissions? Maybe everything is blocked by permissions on a directory above the one where your symlink points. Use 'ls -ld' on each starting with /media and make sure there is rx permission for everyone or at least backuppc. -- Les Mikesell lesmikes...@gmail.com -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
sudo su -s /bin/bash backuppc [sudo] Mot de passe de edith : bash: /var/lib/backuppc/.bashrc: Permission denied Thanks for your help, Le 2017-02-11 à 21:19, Les Mikesell a écrit : > On Sat, Feb 11, 2017 at 7:14 PM, Edith Cloutier >wrote: >> None >> > You'll have to explore why you can't su to the backuppc user and cd > into that directory. "sudo su -s /bin/bash backuppc" should work or > give you a hint about what is failing. > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
On Sat, Feb 11, 2017 at 7:14 PM, Edith Cloutierwrote: > None > You'll have to explore why you can't su to the backuppc user and cd into that directory. "sudo su -s /bin/bash backuppc" should work or give you a hint about what is failing. -- Les Mikesell lesmikes...@gmail.com -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
None Le 2017-02-11 à 19:48, Les Mikesell a écrit : > On Sat, Feb 11, 2017 at 5:18 PM, Edith Cloutier >wrote: >> ls -ld /media/edith/Disque640Go/backuppc >> drwxr-x--- 7 backuppc backuppc 4096 fév 9 10:46 >> /media/edith/Disque640Go/backuppc >> >> /dev/sda1 587G 70M 557G 1% /media/edith/Disque640Go >> ext4 >> > Still looks reasonable - do you have any of the extended security > mechanisms enabled? AppArmor or SeLinux? > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
On Sat, Feb 11, 2017 at 5:18 PM, Edith Cloutierwrote: > ls -ld /media/edith/Disque640Go/backuppc > drwxr-x--- 7 backuppc backuppc 4096 fév 9 10:46 > /media/edith/Disque640Go/backuppc > > /dev/sda1 587G 70M 557G 1% /media/edith/Disque640Go > ext4 > Still looks reasonable - do you have any of the extended security mechanisms enabled? AppArmor or SeLinux? -- Les Mikesell lesmikes...@gmail.com -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
ls -ld /media/edith/Disque640Go/backuppc drwxr-x--- 7 backuppc backuppc 4096 fév 9 10:46 /media/edith/Disque640Go/backuppc /dev/sda1 587G 70M 557G 1% /media/edith/Disque640Go ext4 Thanks Le 2017-02-11 à 17:53, Les Mikesell a écrit : > On Sat, Feb 11, 2017 at 4:41 PM, Edith Cloutier >wrote: >> ~$ ls -l /var/lib/backuppc >> lrwxrwxrwx 1 backuppc backuppc 33 fév 9 10:58 /var/lib/backuppc -> >> /media/edith/Disque640Go/backuppc >> edith@edithbureau:~$ ls -l /media/edith/Disque640Go/backuppc >> total 20 >> drwxr-x--- 6 backuppc backuppc 4096 fév 9 10:50 cpool >> drwxr-x--- 2 backuppc backuppc 4096 fév 9 10:57 log >> drwxr-x--- 3 backuppc backuppc 4096 fév 9 10:46 pc >> drwxr-x--- 2 backuppc backuppc 4096 sep 21 11:37 pool >> drwxr-x--- 2 backuppc backuppc 4096 sep 21 11:37 trash >> > That looks OK. What about "ls -ld /media/edith/Disque640Go/backuppc" > for the directory itself? > > > Also, what filesystem type is this? > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
On Sat, Feb 11, 2017 at 4:41 PM, Edith Cloutierwrote: > ~$ ls -l /var/lib/backuppc > lrwxrwxrwx 1 backuppc backuppc 33 fév 9 10:58 /var/lib/backuppc -> > /media/edith/Disque640Go/backuppc > edith@edithbureau:~$ ls -l /media/edith/Disque640Go/backuppc > total 20 > drwxr-x--- 6 backuppc backuppc 4096 fév 9 10:50 cpool > drwxr-x--- 2 backuppc backuppc 4096 fév 9 10:57 log > drwxr-x--- 3 backuppc backuppc 4096 fév 9 10:46 pc > drwxr-x--- 2 backuppc backuppc 4096 sep 21 11:37 pool > drwxr-x--- 2 backuppc backuppc 4096 sep 21 11:37 trash > That looks OK. What about "ls -ld /media/edith/Disque640Go/backuppc" for the directory itself? Also, what filesystem type is this? -- Les Mikesell lesmikes...@gmail.com -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
~$ ls -l /var/lib/backuppc lrwxrwxrwx 1 backuppc backuppc 33 fév 9 10:58 /var/lib/backuppc -> /media/edith/Disque640Go/backuppc edith@edithbureau:~$ ls -l /media/edith/Disque640Go/backuppc total 20 drwxr-x--- 6 backuppc backuppc 4096 fév 9 10:50 cpool drwxr-x--- 2 backuppc backuppc 4096 fév 9 10:57 log drwxr-x--- 3 backuppc backuppc 4096 fév 9 10:46 pc drwxr-x--- 2 backuppc backuppc 4096 sep 21 11:37 pool drwxr-x--- 2 backuppc backuppc 4096 sep 21 11:37 trash Thanks Le 2017-02-11 à 17:28, Les Mikesell a écrit : > On Sat, Feb 11, 2017 at 3:31 PM, Edith Cloutier >wrote: >> I tried to do it : >> >>sudo -i -u backuppc >> sudo: unable to change the folder towards /var/lib/backuppc: Permission >> denied >> sudo: unable to execute /bin/sh: Permission denied >> >> What's the bug ? Where's it ? > What does "ls -l /var/lib/backuppc" show? And if it shows a symlink, > repeat for the target to see ownership and permissions. > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
On Sat, Feb 11, 2017 at 3:31 PM, Edith Cloutierwrote: > I tried to do it : > > sudo -i -u backuppc > sudo: unable to change the folder towards /var/lib/backuppc: Permission > denied > sudo: unable to execute /bin/sh: Permission denied > > What's the bug ? Where's it ? What does "ls -l /var/lib/backuppc" show? And if it shows a symlink, repeat for the target to see ownership and permissions. -- Les Mikesell lesmikes...@gmail.com -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
I tried to do it : sudo -i -u backuppc sudo: unable to change the folder towards /var/lib/backuppc: Permission denied sudo: unable to execute /bin/sh: Permission denied What's the bug ? Where's it ? Le 2017-02-10 à 20:50, Les Mikesell a écrit : > On Fri, Feb 10, 2017 at 6:59 PM, Edith Cloutier >wrote: >> I did a new Backuppc's installation with your suggestions. >> >> But when I tried to start backuppc, I had the same response : >> >> Job for backuppc.service failed because the control process exited with >> error code. See "systemctl status backuppc.service" and "journalctl -xe" for >> details. >> >> What could I try next to solve the problem ? > Try executing that symlink command that the log says is failing > manually as the backuppc user. You might get a better error message > that way. > > -- > Les Mikesell > lesmikes...@gmail.com > > -- > 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@lists.sourceforge.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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
On Fri, Feb 10, 2017 at 6:59 PM, Edith Cloutierwrote: > I did a new Backuppc's installation with your suggestions. > > But when I tried to start backuppc, I had the same response : > > Job for backuppc.service failed because the control process exited with > error code. See "systemctl status backuppc.service" and "journalctl -xe" for > details. > > What could I try next to solve the problem ? Try executing that symlink command that the log says is failing manually as the backuppc user. You might get a better error message that way. -- Les Mikesell lesmikes...@gmail.com -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
I did a new Backuppc's installation with your suggestions. But when I tried to start backuppc, I had the same response : Job for backuppc.service failed because the control process exited with error code. See "systemctl status backuppc.service" and "journalctl -xe" for details. What could I try next to solve the problem ? Thanks Le 2017-02-08 18:28, Les Mikesell a écrit : > On Wed, Feb 8, 2017 at 4:26 PM, Edith Cloutier >wrote: > >> 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 > > Something wrong with permissions... > >> I used this method : sudo service backuppc stop sudo mkdir >> /media/edith/Disque640Go/backuppc/ sudo rsync -va /var/lib/backuppc >> /media/edith/Disque640Go/ > > This should have been -vaH to preserve hardlinks. And it may take > a long time. > >> 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 > > This should have been chown -r to recurse down the tree. -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
On Wed, Feb 8, 2017 at 4:26 PM, Edith Cloutierwrote: > 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 Something wrong with permissions... > I used this method : > > sudo service backuppc stop > sudo mkdir /media/edith/Disque640Go/backuppc/ > sudo rsync -va /var/lib/backuppc /media/edith/Disque640Go/ This should have been -vaH to preserve hardlinks. And it may take a long time. > 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 This should have been chown -r to recurse down the tree. -- Les Mikesell lesmikes...@gmail.com -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
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@lists.sourceforge.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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project:http://backuppc.sourceforge.net/
Re: [BackupPC-users] Unable to change the storage place
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@lists.sourceforge.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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] Unable to change the storage place
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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/