c0rp-aubakirov / flyback

Automatically exported from code.google.com/p/flyback
0 stars 0 forks source link

Permissions are not restored #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Restore some files of a user as root
2. The files will be restored but not the permissions or the modification
times.

What is the expected output? What do you see instead?

FB should restore the files as they were: Same permissions, same last
modification, access, create times.

What version of the product are you using? On what operating system?

0.4 on openSUSE 10.3

Original issue reported on code.google.com by adigu...@gmail.com on 7 Sep 2008 at 9:42

GoogleCodeExporter commented 9 years ago
I confirm the issue and please find below the solution. The copy command in file
backup_backend.py should have an additional "-a" option, to ensure that the time
stamps are preserved when restoring.

# diff backup_backend.py.org backup_backend.py

293c293
<                 cmd = 'cp -vR "%s" "%s"' % (file, dest)
---
>                 cmd = 'cp -avR "%s" "%s"' % (file, dest)
295c295
<                 cmd = 'cp -v "%s" "%s"' % (file, dest)
---
>                 cmd = 'cp -av "%s" "%s"' % (file, dest)

Original comment by marinal...@gmail.com on 5 Oct 2008 at 10:22

GoogleCodeExporter commented 9 years ago
I have made "-a" modification to the warpback branch of flyback
http://code.google.com/p/warpback

Original comment by jarrod.c...@gmail.com on 1 Dec 2008 at 1:52

GoogleCodeExporter commented 9 years ago
fixed in svn

Original comment by pub...@kered.org on 5 Dec 2008 at 6:56