frdmn / minebackup.sh

Bash script to backup Minecraft servers using rdiff-backup
15 stars 5 forks source link

Is it possible to send the messages from the script to another user's screen session? #6

Open Tundral opened 6 years ago

Tundral commented 6 years ago

So on my server, I would like to have the server and its files owned by a normal user and to have the backup script ran and the backup folders owned by root.

This way the server can run with user privileges and the separation would protect the backed up files from me or an admin in case someone was malicious or did something stupid with commands an paths.

I looked up on how to make a screen session multiuser and got it to work, but can't get the script executed as the root user to post the commands to the normal user's screen session.

Any remedy to my problem?