this post was submitted on 31 Oct 2023
3 points (100.0% liked)

Linux Questions

999 readers
1 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 1 year ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 10 months ago* (last edited 10 months ago) (1 children)

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.

[–] [email protected] 1 points 10 months ago (1 children)

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.

[–] [email protected] 1 points 10 months 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.