Comment 2 for bug 1374343

Revision history for this message
Germar (germar) wrote :

I'm not sure what's the best way to fix this. So I would like to start a discussion about this.

We need to have a place which is writeable for all users and which can easily be excluded to prevent backing up other users snapshots. So it should be one 'central' folder for all users.

One approach would be to use $XDG_RUNTIME_DIR. But this isn't set during cronjobs. So we would need to make some crude workarounds to find out the path.

I think it would be better to create an init script which will create /run/backintime and chmod 1777 this folder to make it writeable for all. BackInTime would use /run/backintime in the same way as /tmp/backintime before. It would be necessary to call this script after installation.