Permission denied problem restoring files after reinstalling Ubuntu
Have only just started using BIT, and am having problems restoring files from backup after having reinstalled Ubuntu.
Previously, my hard drive was partitioned quite differently to how it is now after the reinstall. For historic reasons, the data I was backing up was in a folder called /home/home/data.
After reinstalling Ubuntu, I would like to now keep all my data in a folder called /data/stuff, so basically I want everything that used to be in /home/home/data to now appear in /data/stuff.
I could just copy everything across, but all the files are stored readonly in the backup, and I want BIT to restore the original permissions, which I figure it can. Is there some way to do this?
I tried creating a /home/home/data folder so that it would restore the files there, but in the terminal it logs:
INFO: Restore: /home/home/
sending incremental file list
rsync: rename home to backup home.backup.
rsync: delete_file: make_backup(home) failed: Permission denied (13)
could not make way for new directory: home
rsync: rename home to backup home.backup.
rsync: delete_file: make_backup(home) failed: Permission denied (13)
could not make way for new directory: home
*** Skipping any contents from this failed directory ***
sent 1413 bytes received 28 bytes 2882.00 bytes/sec
total size is 14395937125 speedup is 9990240.89
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1058) [sender=3.0.5]
WARNING: Command "rsync -avRAXE --whole-file --backup --suffix=
Is it trying to rename my /home folder?! I obviously don't want it to do that, I just want it to restore the files there.
I don't know if this is relevant, but my /home folder is a symlink (Ubuntu is on sda1, /data is sda5, /home points to /data/homejaunty).
Thanks, Phil.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Phil Dunkerley for more information if necessary.