Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Restoring a backup gives error #588
Comments
@github/backup-utils for awareness |
#484 might be related. |
The current We probably should setup a nonprivileged user within the image for Docker best practices reasons, and to allow the image to be run by non root users in different environments. |
So is the answer for now to run the restore as root? |
Worth a shot @MartinLesterSynamedia ! |
When I try and restore a backup, I get an error:
It seems that because the docker container is creating all the files and folders as
755 root:root
and my usergithub
is not a member of root that I could not write to the folder and the restore fails.I think I have fixed the issue with
sudo chmod g+s production
and then making all the folders in that path owned by thegithub
group.This was not obvious, took quite a while to find as a solution and still meant I had to retrospectively
chgrp
the entire backup folder which takes a long while. I am also not sure it is enough as the default is 755 not 775 and in an effort to discover if the backups are valid simply didchmod -r 775 current
, which also takes a long while.Am I doing something wrong?
Should I just be running the restore as root?
Should I be running the restore using your docker container?