My backups don’t complete because of the following error:

bup "-d" "/media/backonmybs/BackupSSD/KDENeon Backup" "init"
bup "-d" "/media/backonmybs/BackupSSD/KDENeon Backup" "index" "-u" "/home"
b'/home/': [Errno 13] Permission denied: b'chamaco/'                  
read Linux attr: [Errno 13] Permission denied: '/home/chamaco/'       
WARNING: 2 errors encountered.

Exit code: 1
Kup did not successfully complete the bup backup job: failed to index everything.

The main account with admin rights is backonmybs. The other account which has full admin rights is chamaco.

How can I change permissions so that backups complete successfully?

  • @ikidd
    link
    English
    2
    edit-2
    1 year ago

    I assume you want to run this a cronjob? If so, it’ll run under root permissions and should execute correctly when run by cron. Pipe the output to a file that you can monitor with “>>”. For testing you can sudo your command to see how it’ll work when cronned. Then do a sudo crontab -e to put a line for your backup script in crontab with the appropriate timing.

    Edit: you will be dropped into a vi session for editing crontab, quick primer: Insert key to be able to type, Esc key to run editor commands, `:wq" to write your changes, “:q!” to exit without writing changes.

    Add

    SHELL=/bin/bash
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    

    to the top of the file if it isnt already there.

    • BOMBSOP
      link
      English
      11 year ago

      I appreciate your response, but I don’t know what it means. I just use the GUI. I go to Application Launcher -> Settings -> System Settings -> Backups and follow the intuitive prompt to set up a weekly backup schedule. The error comes from the panel widget showing me a button to view the log file when it wasn’t able to complete the backup.

      • @ikidd
        link
        English
        11 year ago

        Alrighty. So if there is an option in whatever program you use to run as the root user, turn it on. Other than that, I’m not familiar with how to get bup to work as root from the GUI. Sorry.