WERESYNC(1)
β¨ WERESYNC β¨
okay so bestie, welcome to weresync β the admin-section, section 1 manual for a little tool that clones linux drives incrementally. And there's a friend too: weresync-gui, which is the GUI interface for the weresync program. π¦
NAME π
weresync β clone linux drives incrementally β¨
weresync-gui β GUI interface for the weresync program. π
SYNOPSIS πΈ
weresync [ options ] [-g ROOT_PARTITION] [-B BOOT_PARTITION]
[-E EFI_PARTITION] [-L BOOTLOADER] [-l LVM_SOURCE [LVM_TARGET]]
source target
weresync-gui
DESCRIPTION π
WereSync clones linux drives incrementally producing a bootable clone. No cap. Clones produced by WereSync will have different UUIDs than the original drive, but WereSync will update the fstab and the bootloader to allow the clone to properly boot. It's giving thoughtful, honestly.
And the way you run it?? Clones can be created with one command or one button click β using weresync or weresync-gui respectively. Literally that easy. π
OPTIONS β
Heads up bestie: the weresync-gui command takes no arguments. These arguments apply to the weresync command. π«Ά
--h,--helpβ Displays help message. π¬-C,--check-and-partitionβ Checks if all partitions are large enough and formatted correctly to allow the drive to be copied. If the partitions are not valid, the target drive will be re-partitioned and reformatted. If unset, no checking occurs. π-s,--source-mask MASKβ A string to be passed toformat()that will produce a partition identifier (/dev/sda1or such) of the source drive when passed two arguments: the identifier (/dev/sda) and a partition number, in that order. Defaults to"{0}{1}"β¨-t,--target-mask MASKβ A string to be passed toformat()that will produce a partition identifier (/dev/sda1or such) of the source drive when passed two arguments: the identifier (/dev/sda) and a partition number, in that order. Defaults to"{0}{1}". π-e,--excluded-partitions LISTβ A list of comma separated partition numbers that should not be searched or copied at any time. These partitions will still be formatted if-Cis passed. Defaults to empty. π-b,--break-on-errorβ If passed, the program will halt if there are any errors copying. This flag is not recommended because it will halt even if encountering a normal issue, like a swap partition. π-g,--root-partition PART_NUMβ The partition mounted on/. It is recommended to pass this always, but WereSync will attempt to find the main partition even if it is not passed. π₯-B,--boot-partition PART_NUMβ The partition that should be mounted on/bootof the grub_partition. If you have a separate boot partition, you must use this flag. π₯Ύ-E,--efi-partition PART_NUMβ The partition that should be mounted on/boot/efiof the grub_partition. If passed, this will create the/boot/efifolder if it does not exist and pass it to grub. Required if you have an EFI partition. π-m,--source-mount DIRβ The directory to mount partitions from the source drive on. Cannot be the same as--target-mount. If unset, WereSync generates a randomly named directory in the/tmpdir. π-M,--target-mount DIRβ The directory to mount partitions from the target drive on. Cannot be the same as--source-mount. If unset, WereSync generates a randomly named directory in the/tmpdir. π§-r,--rsync-args RSYNC_ARGSβ The arguments to be passed to thersyncinstance used to copy files. Defaults to"-aAXxH --delete"β¨-l,--lvm SOURCE [TARGET]β This argument expects either one or two arguments specifying the logical volume groups to copy from and to, respectively. If no target VG is passed, WereSync will use the VGSOURCE-copy. If the target does not exist, WereSync will create it. π-L,--bootloader BOOTLOADERβ The plugin to use to install the bootloader. Such plugins can be found at the bottom of the help message. Defaults to using the"uuid_copy"plugin. π-v,--verboseβ Makes WereSync increase output and include more minor details. π£οΈ-d,--debugβ Causes a huge amount of output, useful for debugging the program. Usually not needed for casual use. π
COPYRIGHT π
Copyright 2016 Daniel Manila
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
EXAMPLES π
okay so to copy /dev/sda to /dev/sdb on a UEFI system, use:
sudo weresync -C -L grub2 -E 1 -g 2 /dev/sda /dev/sdb
This example uses grub2 as the bootloader (for most other UEFI bootloaders use -L uuid_copy or omit the -L option all together) with the efi partition on /dev/sda1, and the root partition on /dev/sda2. π¦
Subsequent copies should omit the-Coption, since it could cause weresync to repartition/dev/sdbagain, thus deleting existing data and making weresync's incremental abilities useless. Do not skip this bestie, seriously. π
To copy /dev/sda to /dev/sdb on a BIOS/Legacy system, use:
sudo weresync -C -L grub2 -g 1 /dev/sda /dev/sdb
This example uses grub2 as the bootloader (other bootloaders, such as syslinux, may be passed to the -L option) and has the root partition on /dev/sda1. The omittance of the -E option signals to WereSync that this is not a UEFI drive. π
As above, subsequent copies should be initiated without the -C option. π
The gui can simply be run with:
sudo weresync-gui
SEE ALSO π
Full documentation can be found at WereSync's documentation on Read The Docs: https://weresync.readthedocs.io/en/master/
AUTHOR π
Daniel Manila <dmv@springwater7.org>
and that's the whole vibe check, bestie π«Ά this page is from WereSync version 1.0, dated June 30th, 2017 β go clone something and slay π β¨πΈ
π¦ where this page comes from
- debian bookworm: weresync 1.0.9-2 Β· Apache-2.0
- debian trixie: weresync 1.1.5-2 Β· Apache-2.0
- ubuntu jammy: weresync 1.0.9-2 Β· Apache-2.0
- ubuntu noble: weresync 1.1.5-1ubuntu1 Β· Apache-2.0
- ubuntu questing: weresync 1.1.5-2
- ubuntu resolute: weresync 1.1.5-2build1 Β· Apache-2.0
- ubuntu stonking: weresync 1.1.5-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms