billw2
07f536e9d9
Merge pull request #95 from bdwilson/master
...
add trusted paths that often fail if run via cron
2020-05-24 14:10:44 -05:00
Brian Wilson
da45b9f5de
add trusted paths that often fail if run via cron
2020-05-21 14:42:14 -04:00
Bill Wilson
3c5d373022
Check for /dev/ in findmnt results for source /boot and root
...
There can be multiple findmnt lines (eg systemd and /dev/...) for /boot
on some systems and the device /dev entry is the one needed.
So grep for /dev/ on those findmnt results.
2019-08-26 17:30:06 -05:00
billw2
7ac40602cd
Merge pull request #76 from hkuno9000/exclude-option
...
Feat: add exclude option
2019-08-25 19:49:54 -05:00
Hiroshi Kuno
ed0732f5c8
Feat: add exclude option
2019-08-26 09:35:56 +09:00
Bill Wilson
8b22bea69d
Add -p size option so first partition can be resized.
...
V 2.0.21
The recent Rasbian Buster release increases the /boot partition to 256M
so added the -p option so a Stretch system updated to Buster can increase
the destination /boot when cloning.
2019-08-25 18:15:00 -05:00
Bill Wilson
033cb61192
Added Copyright notice to rpi-clone
2019-02-07 10:58:13 -06:00
billw2
c5660ff476
Create LICENSE
...
Added LICENSE file.
2019-02-07 10:53:34 -06:00
Bill Wilson
82b833c7a4
If no destination partitions, set n_dst_partitions to zero.
2017-11-30 14:04:50 -06:00
Bill Wilson
fe7a646261
Add HXA rsync options. -L changes ext labels for sync clones.
...
Add to rsync options preserve hard links, extended attributes and access
control lists.
2017-10-16 10:05:04 -05:00
Bill Wilson
31e571f7e1
2.0.18 - Add -L option for ext partition labeling.
...
If label ends with '#', label all ext partitions and replace '#' with
partition number.
2017-09-27 14:00:44 -05:00
Bill Wilson
0f0e299e46
Remove -b from findmnt command. Wheezy's findmnt does not have it.
2017-09-26 17:47:09 -05:00
Bill Wilson
24f1d5f3a3
Add desktop example to README. Mention grub-install in summary.
2017-09-24 11:23:15 -05:00
Bill Wilson
896fd9fee4
More formatting. Reverse order of destination disk mounted checks.
2017-09-23 19:34:13 -05:00
Bill Wilson
08da1feceb
More progress printing formatting changes.
2017-09-23 16:58:31 -05:00
Bill Wilson
2a5d17fd16
Adjusted progress printing. Stop mkfs verbose output.
2017-09-23 16:22:03 -05:00
Bill Wilson
41b70a47b3
When initializing, put disk id change back after sfdisk, delay after partprobe.
...
fdisk can complain when changing disk id is before sfdisk.
Delay after partprobe, device name changes in /dev can take a moment.
2017-09-23 14:18:53 -05:00
Bill Wilson
dd5e4d63cf
Add quick guide to examples in README.md
2017-09-23 11:27:32 -05:00
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