hedeon
Posts: 1
Joined: Sun Mar 16, 2014 11:46 am

Raspbian backup without second computer

Sun Mar 16, 2014 11:55 am

Hi.

I was just wondering how to make backup of raspberry pi without using any other computer. Most of the tutorials I have found are referring to making SDcard image via windows/linux/mac. I don't want to do this this way, say my raspberry is in remote location, and I want to do this through SSH, to attached HDD.
Any advice would be much appreciated. Thanks.

User avatar
stevepdp
Posts: 285
Joined: Fri Oct 28, 2011 7:41 am

Re: Raspbian backup without second computer

Sun Mar 16, 2014 12:06 pm

If your Raspberry Pi is in a remote location, with attached storage, then it's probably best to use something like rsync or simpler in my opinion, tar.

This will get you started with the tar option.

If you then want to send those tarballs to your local workstation, you could use an SFTP client to browse the remote storage and download files. You've already got SSH enabled and SFTP uses SSH.

I don't believe it's possible to dd the filesystem while it's running. I may be wrong though :roll:

Hope this helps.

PiGraham
Posts: 3664
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Raspbian backup without second computer

Sun Mar 16, 2014 3:21 pm

Once you have the Pi running in the first place you can make another bootable SD card on the Pi by downloading NOOBS to it.
You need a USB SD card reader and a spare SD card.
If you have any large USB storage device you can copy an SD card in the USB SD card reader to a backup device.
With a second bootable SD card you can recover the sytem from backup by putting the reserve SD card into the system, booting and copying from the cabckup to a new or corrupted SD card.

If you don't have a USB SD card reader you will won't be able to restore from backup if your main card fails, unless you can get access to another computer.

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Raspbian backup without second computer

Sun Mar 16, 2014 3:51 pm

I use rsync. Works very well. I use rsync for all my Linux computers.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

Return to “Beginners”