galaxyrider
Posts: 33
Joined: Sat Dec 26, 2015 2:36 pm

Backup using tar

Thu Jan 21, 2016 8:48 pm

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.

User avatar
karrika
Posts: 1263
Joined: Mon Oct 19, 2015 6:21 am
Location: Finland

Re: Backup using tar

Thu Jan 21, 2016 8:53 pm

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

User avatar
B.Goode
Posts: 10725
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Backup using tar

Thu Jan 21, 2016 9:20 pm

I have reported this as an Issue for the Documentation maintainers: https://github.com/raspberrypi/documentation/issues/299

galaxyrider
Posts: 33
Joined: Sat Dec 26, 2015 2:36 pm

Re: Backup using tar

Fri Jan 22, 2016 6:20 am

Thank you. I'll do that later.

Return to “Troubleshooting”