Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
Question
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.2.0
Operating system (distribution) and version.
Ubuntu 18.04
Hardware / network configuration, and filesystems used.
local repo, external usb SSD, ext4
How much data is handled by borg?
less than 500G
Full borg commandline that lead to the problem (leave away excludes and passwords)
Describe the problem you're observing.
I would just like to know how to modify the sample script for automated local backups
(found in the docs here https://borgbackup.readthedocs.io/en/stable/deployment/automated-local.html)
so that I can create separate archives for the root user and my user.
I have read through several Issues like #3864, #7504, #3587, etc. and want to avoid the "Permission mixup" issue when extracting or dealing with my archives later. I concluded I should make my system backup as root and my home backup as my user. But since I'm following the guide above, this is a systemd service that will run the script as root, so won't both my system and home archives be owned by root? I want my home archive to be owned by my user and all my home files to have the correct permissions for my user. From what I've researched, it sounds like making both archives as root will mix up or drop those permissions since I will need to use sudo when I extract or copy my files from my home user archive. Should I switch to my home user in the script when creating my home archive?
Also, I'm running into another error while running the script as root and making an archive on a repo that was initialized by my user
No key file for repository /mnt/borg-backup-disk/borg-backups/backup_local.borg found in /root/.config/borg/keys
Should I set the BORG_KEY_FILE or BORG_CONFIG_DIR environment variables?
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
This is partly a hypothetical problem, I haven't encountered it yet.
Include any warning/errors/backtraces from the system logs
Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
Question
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.2.0
Operating system (distribution) and version.
Ubuntu 18.04
Hardware / network configuration, and filesystems used.
local repo, external usb SSD, ext4
How much data is handled by borg?
less than 500G
Full borg commandline that lead to the problem (leave away excludes and passwords)
Describe the problem you're observing.
I would just like to know how to modify the sample script for automated local backups
(found in the docs here https://borgbackup.readthedocs.io/en/stable/deployment/automated-local.html)
so that I can create separate archives for the root user and my user.
I have read through several Issues like #3864, #7504, #3587, etc. and want to avoid the "Permission mixup" issue when extracting or dealing with my archives later. I concluded I should make my system backup as root and my home backup as my user. But since I'm following the guide above, this is a systemd service that will run the script as root, so won't both my system and home archives be owned by root? I want my home archive to be owned by my user and all my home files to have the correct permissions for my user. From what I've researched, it sounds like making both archives as root will mix up or drop those permissions since I will need to use sudo when I extract or copy my files from my home user archive. Should I switch to my home user in the script when creating my home archive?
Also, I'm running into another error while running the script as root and making an archive on a repo that was initialized by my user
No key file for repository /mnt/borg-backup-disk/borg-backups/backup_local.borg found in /root/.config/borg/keysShould I set the BORG_KEY_FILE or BORG_CONFIG_DIR environment variables?
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
This is partly a hypothetical problem, I haven't encountered it yet.
Include any warning/errors/backtraces from the system logs