I have a server with a user named
deploy-user and have written a backup script to backup a number of websites associated with this user. However one of the sites I'm trying to backup has a directory
/home/usera/web/www.example.com/some/random_dir is owned by
What permissions would I give
deploy-user to be able to backup that directory. Options I am aware of are either:
- Running the script as
root, which I don't really want to do.
deploy-userto the same group. But then
apache-data-userwill have to many permissions.
Has anyone got a suggestion of the best way to backup this directory?