Page 1 of 1

Backup using tar

Posted: Thu Jan 21, 2016 8:48 pm
by galaxyrider
Hello
I am trying to make a backup of home as described here https://www.raspberrypi.org/documentati ... /backup.md
using the tar command but I keep getting this error message

tar (child): pi_home.tar.gz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now

I want to back this up to do a fresh install of NOOBS on a bigger SD card and then restore the backup.
Thanks.

Re: Backup using tar

Posted: Thu Jan 21, 2016 8:53 pm
by karrika
You need supervisor privileges to do it. That is achieved by adding the word "sudo",

Code: Select all

cd /home/
sudo tar czf pi_home.tar.gz pi

Re: Backup using tar

Posted: Thu Jan 21, 2016 9:20 pm
by B.Goode
I have reported this as an Issue for the Documentation maintainers: https://github.com/raspberrypi/documentation/issues/299

Re: Backup using tar

Posted: Fri Jan 22, 2016 6:20 am
by galaxyrider
Thank you. I'll do that later.