I have full root access to a Raspberry Pi. I'd like to copy its complete setup (full XBMC, configuration etc) to another SD card over SSH. The SD card currently in the Pi is 4GB, the one I'd like to copy to is 8GB.

Is this possible?

  • Whatever method you use, beware my caveats here about what not to copy if the system is running at the time (whether or not you use rsync, as that answer does). – goldilocks Dec 17 '14 at 15:50
  • 1
    Here's a question: why? You need physical access to swap the cards anyway so why go through the trouble copying the system over ssh while runing that very system? Turn off the Pi, unplug the card, copy the content to new card, insert new card, start Pi. – Ghanima Dec 17 '14 at 18:54
  • @Ghanima While it might not be strictly necessary here, there are situations where cloning a Pi over the network can be very convenient (an example from experience would be creating a clone of a Pi that I have root access to but that's locked in a basement to which I don't normally have a key). – n.st Dec 18 '14 at 5:18
  • I would take a look at this question and answers raspberrypi.stackexchange.com/questions/311/… – BluGeni Dec 18 '14 at 19:02

There are various ways how you can achieve this:

  1. Use rsync
  2. Use scp (see here for more details)
  3. Mount the remote pi with sshfs
| improve this answer | |
  • You linked this question for number 2. – BluGeni Dec 18 '14 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.