Commit Graph

37 Commits

Author SHA1 Message Date
Bill Wilson
5882f69aef Move setting of new Disk ID to after dd. 2017-09-22 19:18:01 -05:00
Bill Wilson
46c7e0fdd1 Change disk ID if resize fails. 2017-09-22 17:30:12 -05:00
Bill Wilson
b2e494e8ac Give dest disk new disk id right after partition image to avoid remounts. 2017-09-22 17:20:53 -05:00
Bill Wilson
2359c3959d Change version number. 2017-09-22 16:37:00 -05:00
Bill Wilson
bffda282e0 Change some error messages and README examples. 2017-09-22 16:33:24 -05:00
Bill Wilson
7087dae68d Adjusted some error messages and fixed README typos 2017-09-22 11:42:40 -05:00
Bill Wilson
2b4bacd958 Fix --convert-fstab-to-partuuid. Add grub-install run if grub found. 2017-09-21 17:47:02 -05:00
Bill Wilson
927ec680d2 V 2.0.5: -f2 multi partition clone to 2 partitions. Redo some README examples. 2017-09-21 16:00:23 -05:00
Bill Wilson
1597f6b7ce Convert fstab device names to PARTUUID option. README changes.
Added --convert-fstab-to-partuuid option that converts a device name
using fstab and cmdline.txt to use PARTUUID as is standard in recent
Raspbian distributions.  Just a helper option for users that want to
convert.

Added back in clone to smaller 4GB card example.
2017-09-20 06:45:56 -05:00
Bill Wilson
17849312cf Demote the README example 4 caution a bit. The issue seems to be with my Pi. 2017-09-18 17:57:58 -05:00
Bill Wilson
7697e2cc24 Add option to preserve SD to USB cmdline.txt boots
Implemented Peter Collinson's idea for preserving the SD card cmdline.txt
that is set up to boot to USB when cloning from USB back to the SD card.

Update README.md examples.
2017-09-18 13:07:59 -05:00
Bill Wilson
d00c0d179e Add quiet mode, edit README.md examples 2017-09-17 16:17:48 -05:00
Bill Wilson
013d65b61e Add USB boots to SD card slot (mmcblk0) clones and update README.md 2017-09-16 14:46:07 -05:00
Bill Wilson
2e7ea43d1e New Version 2.0 - a complete rewrite.
The examples in README.md show the new capabilities.
2017-09-15 18:06:48 -05:00
Bill Wilson
2d8412dd12 Bugfix: did not set SRC_ROOT when using -s option 2017-08-19 17:08:30 -05:00
Bill Wilson
8b1a6590c5 Use mtab to get source booted disk so can clone from USB disks.
Previously SD card mmcblk0 was hardwired as the source disk so clones from
USB disk did not work.  Using mtab to get the booted disk allows cloning
from USB disks.  Should that fail, a -s option can force the source disk.
The source disk must be the booted disk.
2017-08-19 13:56:21 -05:00
Bill Wilson
154867712c Remove /mnt and /media excludes. No longer need to make optional mount dirs.
Since SpoddyCoder's no cross file system patch, /mnt and /media mounts will
be excluded so don't need to explicitly exclude them.
2017-05-26 19:50:31 -05:00
billw2
f4c3285d30 Merge pull request #34 from SpoddyCoder/cross_filesystem_feature
Cross Filesystem Feature

Split rsync into 2 separate processes, 1 for /boot, 1 for rest of filesystem
and add -x rsync flag to make not crossing filesytem boundaries the default.

Added --cross-filesystems switch to reproduce old behaviour.
2017-05-26 19:47:08 -05:00
SpoddyCoder
a37954c930 Split rsync into two processes, one for /boot one for rest of filesystem. Added --cross-filesystems switch and made no cross filesystems default behaviour 2017-05-24 22:13:32 +01:00
Bill Wilson
f961aee3f9 Remove any leading /dev/ and warn dest disk ending in digit may be a partition. 2016-09-09 10:41:14 -05:00
Bill Wilson
2dd5220aa3 Use -F with mkfs.ext4 and avoid questions. 2016-03-23 21:14:07 -05:00
Bill Wilson
f4df34029c Do not > /dev/null for the mkfs.ext4 since mkfs can ask a question. 2016-03-16 20:15:43 -05:00
Bill Wilson
18361ca159 Added a link to Mehdi HAMIDA's French translation. 2015-07-16 08:50:42 -05:00
Bill Wilson
835c8a5fc3 Add -x option and tweak some echo messages 2015-02-17 09:19:55 -06:00
Bill Wilson
d0109f03e8 Edit the README.md 2015-02-16 22:35:36 -06:00
Bill Wilson
9ea4af03e5 Exclude dphys swapfile from the clone and fix some issues
If using dphys swapfile, exclude it from the rsync clone.

Jessie versions of parted and fdisk have some changes to account for:
	* Add a missing -s flag to one of the parted commands.
	* Dump parted stderr to /dev/null since it now complains about destination
	  disk partitions ending outside of disk before I get chance to resize
	  the partitions.
	* Strip trailing s from PART_START - (fdisk now doesn't seem to accept...)
2015-02-16 22:13:11 -06:00
Bill Wilson
eb7721e0ea fsck the destination boot partition after dd 2014-03-18 12:39:22 -05:00
Bill Wilson
d10b873d2f Handle unmounting busy destination partitions 2013-02-28 13:56:18 -06:00
Bill Wilson
c65e13f90c Edited README.md 2013-02-20 21:59:34 -06:00
Bill Wilson
21314baacd Edited README.md 2013-02-20 21:57:35 -06:00
Bill Wilson
1facf6e0ff Abort with message if cannot run rsync 2013-02-20 21:20:40 -06:00
Bill Wilson
301438f204 Added -h|--help option 2013-01-17 20:29:18 -06:00
Bill Wilson
35ac1a5162 Edited README.md 2013-01-17 20:15:51 -06:00
Bill Wilson
e80a8184b7 Edited README.md 2013-01-17 12:56:59 -06:00
Bill Wilson
501388b8f5 Edited README.md 2013-01-17 12:19:59 -06:00
Bill Wilson
ac868c94ce Initial git add of rpi-clone which was on pastebin. 2013-01-17 12:09:02 -06:00
billw2
185103c253 Initial commit 2013-01-17 10:02:11 -08:00