Opened 17 years ago
Closed 16 years ago
#6106 closed defect (fixed)
trac-admin does not preserve permissions when performing a hotcopy
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11.3 |
Component: | admin/console | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
as root, i use trac-admin to create a backup using: trac-admin /var/www/trac hotcopy trac-backup
on my machine, the conf directory is 755, owned by www-data, with group www-data. on my machine, the db directory is 775+Sg owned by root, with group www-data.
in the backup, the db directory is demoted to 755. in the backup, both the db and conf directory are owned by root, with group root. i'm writing a script on my end to touchup these permissions. just thought you should know.
Attachments (0)
Change History (8)
comment:1 by , 17 years ago
comment:2 by , 16 years ago
Milestone: | → 0.11.3 |
---|---|
Owner: | changed from | to
Right, files are copied with shutil.copy2()
which preserves permissions. But directories are created with a simple os.mkdir()
.
Seems easy enough to fix, I'll give it a shot.
(I know what comes next: file and directory ownership is not preserved either. I'll pass on that one, as this is difficult to get right cross-platform :-)
comment:3 by , 16 years ago
Status: | new → assigned |
---|
Fixed in trunk in [7678]. I'll backport the fix to 0.11.3 once 0.11.2.1 is out.
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Backported to 0.11-stable in [7693].
comment:5 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:6 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:7 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
i thought i would add, i am running trac-admin as root.