Page 1 of 1

after making a backup of raspbian with tar. how to restore?

Posted: Mon Mar 06, 2017 6:30 pm
by must-be
if i have a tar of a full system backup.
how can i restore the system in case of a failure?

Re: after making a backup of raspbian with tar. how to resto

Posted: Mon Mar 06, 2017 6:43 pm
by Heater
Depends. How did you make the tar? A tar or what exactly?

Re: after making a backup of raspbian with tar. how to resto

Posted: Mon Mar 06, 2017 9:14 pm
by must-be
i didin't made a tar file yet. i just saw some youtube about tar and cron and wondered to myself how it can be done (full restoration)

the file should be a .tar.gz file type..

and it should be stored locally.

Re: after making a backup of raspbian with tar. how to resto

Posted: Mon Mar 06, 2017 9:19 pm
by rpdom
The easiest way to make a working backup of a Raspbian card is to get another card and a USB adapter for it, plug it into the Pi and run the SD Card copier. Then you will have a card that will have identical contents to your current card.

(If running Raspbian Lite, you will need to install piclone and run that from the command line).

Re: after making a backup of raspbian with tar. how to resto

Posted: Tue Mar 07, 2017 4:07 pm
by k-pi
You only need backups of your data, the system can be re installed or upgraded.

So basically just create a .tar or .tar.gz of your own data, & store it away from your currently in use disk.

Re: after making a backup of raspbian with tar. how to resto

Posted: Tue Mar 07, 2017 7:39 pm
by must-be
thanks you both
i will try the "copier" solution

i started the question tho both because of the interest of how to use tar in general and in copying the whole system

but also because i really want a backup of my raspbian.
i mess things up often and it is good not to need to install and configure from scrach