- Notifications
You must be signed in to change notification settings - Fork11
tom-2015/imgclone
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This program can be used to create a backup of your Raspberry Pi SD card while it's active. It does this in the same way as the official piclone program (https://github.com/raspberrypi-ui/piclone).Main differences are:
- Command line based, so it can be used to automatically create backups
- It creates a backup to a disk image file (.img). So you can create multiple backups on 1 external SD card, USB drive, USB hard disk or even a network shared drive.
- Result backup will only be a few percent larger than the used disk space of your Raspberry SD card!
On the raspberry you open a terminal window and type following commands:
sudo apt-get update
sudo apt-get install gcc make git
git clone https://github.com/tom-2015/imgclone.git
cd imgclone
make
sudo make install
Attach external storage device (USB, Hard disk or mount a Samba share). cd to the drive:
cd /media/pi/<external drive>
Start backup:imgclone -d mybackup.img
To compress the image AFTER it is made use the -gzip or -bzip2 arguments.Show copy progress with the -p argument.
Make sure you have a NAS or other Samba shared drive in your network, then just mount it:
mkdir /tmp/backup
sudo mount -t cifs //<share_drive_ip>/<share_folder_name> /tmp/backup
imgclone -d /tmp/backup/mybackup.img
You can use standard procedure (dd or win32diskimager) to write the .img file to a (new) SD card.Insert to your Raspberry and start it! Run sudo raspi-config to expand the file system of the root partition to fill the entire SD card.Seehttps://www.raspberrypi.org/documentation/installation/installing-images/README.md
About
alternative program for piclone to create a backup of your SD card to a .IMG file
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Contributors3
Uh oh!
There was an error while loading.Please reload this page.