[SOLVED] Luckybackup super-user not available after install via Software Manager

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
johnbeen
Level 1
Level 1
Posts: 14
Joined: Sun Jul 01, 2018 5:33 am
Location: The Netherlands
Contact:

[SOLVED] Luckybackup super-user not available after install via Software Manager

Post by johnbeen » Wed Jul 04, 2018 8:25 am

Dear all,

For quiet some time now I use LuckyBackup for my backup needs. I think it works flawless.
Previously when I installed LuckyBackup via the Software Manager in Linux Mint it installed two instances, LuckyBackup and LuckyBackup Super-User which both could be started via separate icons in the applications menu. I always used the super user one because of some specific folders that could only be backuped in SU mode. But now, when I install LuckyBackup via the Linux Mint 19 Software Manager, it only installs the LB standard mode and the SU version is not available. Anyone out there who is having the same issue? And of course a workaround?

Thanks in advance.
Last edited by johnbeen on Wed Jul 11, 2018 6:58 am, edited 1 time in total.

User avatar
greerd
Level 6
Level 6
Posts: 1056
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: Luckybackup super-user not available after install via Software Manager

Post by greerd » Wed Jul 04, 2018 9:38 am

I've noticed that too, but as I only use LuckBackup for my /home I don't worry about it.

I can guess why super-user version is not included and my guess is that because Mint19 dropped gksu (as did Ubuntu 18.04) from the repos. LuckyBackup hasen't been in active development for a few years now so I doubt it'll ever adjust to the pkexec version.

You could try running it from the command line pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY luckybackup and see if that works. Checkout this thread viewtopic.php?f=47&t=270721 for more info on the topic.

Cheers

johnbeen
Level 1
Level 1
Posts: 14
Joined: Sun Jul 01, 2018 5:33 am
Location: The Netherlands
Contact:

Re: Luckybackup super-user not available after install via Software Manager

Post by johnbeen » Wed Jul 04, 2018 10:18 am

greerd wrote:
Wed Jul 04, 2018 9:38 am
I've noticed that too, but as I only use LuckBackup for my /home I don't worry about it.

I can guess why super-user version is not included and my guess is that because Mint19 dropped gksu (as did Ubuntu 18.04) from the repos. LuckyBackup hasen't been in active development for a few years now so I doubt it'll ever adjust to the pkexec version.

You could try running it from the command line pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY luckybackup and see if that works. Checkout this thread viewtopic.php?f=47&t=270721 for more info on the topic.

Cheers
Hi greerd. Thanks for your quick reply. In the meantime I searched on the web and read about lack of development on LB as you also point out in your reaction. As an alternative I am looking now into BackInTime, which is kind of the same. I like how this app is setup and I like the workflow, so probably BackInTime will be my new goto backup app.
Thanks again.

User avatar
Sir Charles
Level 7
Level 7
Posts: 1897
Joined: Thu Jan 04, 2018 1:00 pm

Re: Luckybackup super-user not available after install via Software Manager

Post by Sir Charles » Wed Jul 04, 2018 10:49 am

johnbeen wrote:
Wed Jul 04, 2018 8:25 am
And of course a workaround?

I have tried to work my way around this issue by creating a policy fileluckybackup.policy put in/usr/share/polkit-1/actions/ with the following content:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

  <action id="org.freedesktop.policykit.pkexec.run-luckybacup">
    <description>Run LuckyBackup</description>
    <message>Authentication is required to run LuckyBackup</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/luckybackup</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
  </action>

</policyconfig>
and then launching Luckybackup in superuser mode from terminal by:

Code: Select all

pkexec /usr/bin/luckybackup
Next, I created a launcher for it in the application menu and it seems to be working.
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

User avatar
trytip
Level 11
Level 11
Posts: 3700
Joined: Tue Jul 05, 2016 1:20 pm

Re: Luckybackup super-user not available after install via Software Manager

Post by trytip » Wed Jul 04, 2018 11:10 am

i don't understand why you go out of your way to avoid using timeshift which is already provided for you and doesn't need much effort from the user. true that timeshift is mainly constructed to restore the user/root filesystem not the user/home but i have never needed to restore my personal files which are already stored on different storage drives
Image

User avatar
greerd
Level 6
Level 6
Posts: 1056
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: Luckybackup super-user not available after install via Software Manager

Post by greerd » Wed Jul 04, 2018 11:20 am

I use timeshift for my system ('/'), but luckybackup for my /home. That's the default for timeshift anyhow (excludes /home) and it allows easier and faster restores.

On my system timeshift is scheduled to backup to an internal drive so I can recover from a borked update quickly while luckbackup is run manually to backup to an external usb drive. Works for me.

johnbeen
Level 1
Level 1
Posts: 14
Joined: Sun Jul 01, 2018 5:33 am
Location: The Netherlands
Contact:

Re: Luckybackup super-user not available after install via Software Manager

Post by johnbeen » Thu Jul 05, 2018 3:32 pm

trytip wrote:
Wed Jul 04, 2018 11:10 am
i don't understand why you go out of your way to avoid using timeshift which is already provided for you and doesn't need much effort from the user. true that timeshift is mainly constructed to restore the user/root filesystem not the user/home but i have never needed to restore my personal files which are already stored on different storage drives
Hi trytip,
Thanks for your input. To be honest I never considered Timeshift because I thought it was only there to backup system files. My data is spread out over 5 internal and external drives (setup separately for my docs, my android and web development data, my photography related data, my video editing, etc) and to backup all that data I use an external Raid solution. In my opinion Luckybackup provided a very nice workflow for setting up, naming and processing backups of all these source drives to this Raid box, so until now I never thought about an alternative backup solution.
But based on your idea to use Timeshift I had a look and I see that I can indeed add my drives to be backed up as well. Thank you for that. I will have a look if it works for me.

johnbeen
Level 1
Level 1
Posts: 14
Joined: Sun Jul 01, 2018 5:33 am
Location: The Netherlands
Contact:

Re: Luckybackup super-user not available after install via Software Manager

Post by johnbeen » Thu Jul 05, 2018 3:35 pm

Marziano wrote:
Wed Jul 04, 2018 10:49 am
johnbeen wrote:
Wed Jul 04, 2018 8:25 am
And of course a workaround?

I have tried to work my way around this issue by creating a policy fileluckybackup.policy put in/usr/share/polkit-1/actions/ with the following content:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

  <action id="org.freedesktop.policykit.pkexec.run-luckybacup">
    <description>Run LuckyBackup</description>
    <message>Authentication is required to run LuckyBackup</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/luckybackup</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
  </action>

</policyconfig>
and then launching Luckybackup in superuser mode from terminal by:

Code: Select all

pkexec /usr/bin/luckybackup
Next, I created a launcher for it in the application menu and it seems to be working.
Hi Marziano,
This seems like a smart solution. I like the effort of workarounds and I will at least try it out to see if it works for me. Thanks for your input.

User avatar
trytip
Level 11
Level 11
Posts: 3700
Joined: Tue Jul 05, 2016 1:20 pm

Re: Luckybackup super-user not available after install via Software Manager

Post by trytip » Thu Jul 05, 2018 5:16 pm

johnbeen wrote:
Thu Jul 05, 2018 3:32 pm
Hi trytip,
... To be honest I never considered Timeshift because I thought it was only there to backup system files. My data is spread out over 5 internal and external drives (setup separately for my docs, my android and web development data, my photography related data, my video editing, etc) and to backup all that data I use an external Raid solution. In my opinion Luckybackup provided a very nice workflow for setting up, naming and processing backups of all these source drives to this Raid box, so until now I never thought about an alternative backup solution.
But based on your idea to use Timeshift I had a look and I see that I can indeed add my drives to be backed up as well. Thank you for that. I will have a look if it works for me.
you are correct. the point of timeshift is to backup ONLY the system files stored in your root directory. it was never intended to backup personal files like documents and videos (but it can if you include them provided they are stored on ext2-4 filesystems) . i have my videos and documents safely stored on other drives and do not need them included in timeshift. i have too many terabytes to backup and that would mean i need double the hard drive space for backup.
timeshift is a way to reverse changes that cause upgrades and updates rendering your system not to boot or boot with errors.
Image

octathlon
Level 2
Level 2
Posts: 61
Joined: Sat Jun 28, 2014 3:14 pm

Re: Luckybackup super-user not available after install via Software Manager

Post by octathlon » Thu Jul 05, 2018 6:17 pm

I would NOT include your personal data files in your Timeshift backup. If you do, then if you do a restore you would lose all changes to your data files that you had made since that backup. That's why it is intended just for your system files. I don't know if it's possible to set up separate Timeshift backup regimes for system and data files separately.
Mint 19 Cinnamon 64bit on Dell Inspiron N7110 Dual core Intel Core i5-2450M
Mint 19 XFCE 64bit on System76 Pangolin Intel Core 2 duo
Full-time Linux user since 2007, Mint since 2014

powerhouse
Level 6
Level 6
Posts: 1086
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

Re: Luckybackup super-user not available after install via Software Manager

Post by powerhouse » Mon Jul 16, 2018 1:43 pm

trytip wrote:
Wed Jul 04, 2018 11:10 am
i don't understand why you go out of your way to avoid using timeshift which is already provided for you and doesn't need much effort from the user. true that timeshift is mainly constructed to restore the user/root filesystem not the user/home but i have never needed to restore my personal files which are already stored on different storage drives
As others explained already, Timeshift serves a very specific purpose and can't be considered a backup solution for user data.

Luckybackup is a very versatile backup program, actually a GUI frontend for rsync. I don't think it matters too much that it's not in active development, after all it is a front end to software that is in active development.

I use Luckybackup to backup local EXT4 based files to other local drives and to a remote server, as well as NTFS volumes (from my Windows VM) to remote storage, or to external drives. Some of my data is stored in 4 places, not including cloud storage (which would be a bit expensive for multiple terabytes).

Changing command syntax is a bad thing. I understand the cons of gksudo etc., but why not improve the original application/command? Why do I have to learn different commands with every new release of Linux Mint, Ubuntu etc.?

I hope those who package Luckybackup will update the package to include a super-user launcher that actually works.
Asus Sabertooth X79, i7 3930K CPU, 8x4GB Kingston DDR3, Noctua NH-D14 CPU cooler, GTX 970 + Quadro 2000 GPU, Asus Xonar Essence STX, Sandisk 120GB + Samsung EVO 860 1TB SSD + 4 HDD, Corsair 500R, SeaSonic 660W Gold X PS https://heiko-sieger.info

User avatar
trytip
Level 11
Level 11
Posts: 3700
Joined: Tue Jul 05, 2016 1:20 pm

Re: [SOLVED] Luckybackup super-user not available after install via Software Manager

Post by trytip » Mon Jul 16, 2018 4:26 pm

@powerhouse
whatever works for you is what's the best. i never need a backup program for my personal files, i have them stored on other drives. timeshift restored my mint19 after i deleted the partition and installed another os. so if i want to test out a new os and don't want to mess with resizing other partitions i delete my current os try the new one and then restore it with timeshift as if it was never deleted.
Image

powerhouse
Level 6
Level 6
Posts: 1086
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

Re: [SOLVED] Luckybackup super-user not available after install via Software Manager

Post by powerhouse » Sat Jul 21, 2018 7:21 am

trytip wrote:
Mon Jul 16, 2018 4:26 pm
@powerhouse
whatever works for you is what's the best. i never need a backup program for my personal files, i have them stored on other drives. timeshift restored my mint19 after i deleted the partition and installed another os. so if i want to test out a new os and don't want to mess with resizing other partitions i delete my current os try the new one and then restore it with timeshift as if it was never deleted.
Thanks for the comment. I do use Timeshift too (should have mentioned it in the first place), but as you said, for system backups only.

Thanks Marziano, your solution worked for me, too.
Asus Sabertooth X79, i7 3930K CPU, 8x4GB Kingston DDR3, Noctua NH-D14 CPU cooler, GTX 970 + Quadro 2000 GPU, Asus Xonar Essence STX, Sandisk 120GB + Samsung EVO 860 1TB SSD + 4 HDD, Corsair 500R, SeaSonic 660W Gold X PS https://heiko-sieger.info

User avatar
Sir Charles
Level 7
Level 7
Posts: 1897
Joined: Thu Jan 04, 2018 1:00 pm

Re: [SOLVED] Luckybackup super-user not available after install via Software Manager

Post by Sir Charles » Sat Jul 21, 2018 7:38 am

@powerhouse

You are welcome!
:D to hear that it worked!

Cheers
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

Mark_1
Level 1
Level 1
Posts: 8
Joined: Thu Mar 16, 2017 4:58 pm

Re: [SOLVED] Luckybackup super-user not available after install via Software Manager

Post by Mark_1 » Mon Jul 23, 2018 5:54 am

Hi, I've been using Luckybackup for years and never needed ‘super-user’ but on mint 19 Luckybackup doesn’t ‘see’ any drives, internal or network other than Home, rendering it completely unusable. I wonder if what you have been discussing wrt super-user privileges could have a bearing on this or is my issue something else?
Appreciate any help you can give

Cheers

User avatar
karlchen
Level 20
Level 20
Posts: 11328
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: [SOLVED] Luckybackup super-user not available after install via Software Manager

Post by karlchen » Thu Aug 09, 2018 4:51 pm

<moderator on>
Split off Hairyman's post into a separate thread, Problems using Timeshift, because the post is about Timeshift; but this thread is about Luckybackup and marked as [solved]
</moderator off>
Image
Linux Mint 19.2 32-bit xfce Desktop, Total Commander 9.22a 32-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

Post Reply

Return to “Software & Applications”