must-be
Posts: 31
Joined: Sat Mar 04, 2017 5:05 pm

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

Mon Mar 06, 2017 6:30 pm

if i have a tar of a full system backup.
how can i restore the system in case of a failure?

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

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

Mon Mar 06, 2017 6:43 pm

Depends. How did you make the tar? A tar or what exactly?
Memory in C++ is a leaky abstraction .

must-be
Posts: 31
Joined: Sat Mar 04, 2017 5:05 pm

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

Mon Mar 06, 2017 9:14 pm

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.

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

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

Mon Mar 06, 2017 9:19 pm

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).

k-pi
Posts: 930
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

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

Tue Mar 07, 2017 4:07 pm

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.

must-be
Posts: 31
Joined: Sat Mar 04, 2017 5:05 pm

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

Tue Mar 07, 2017 7:39 pm

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

Return to “General discussion”