Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Backuppc | 1,075 | a year ago | 120 | gpl-3.0 | Perl | |||||
BackupPC is a high-performance, enterprise-grade system for backing up to a server's disk. | ||||||||||
Raspibackup | 579 | 5 days ago | 3 | gpl-3.0 | Shell | |||||
Backup and restore your active Raspberry | ||||||||||
Fpart | 187 | 13 days ago | 1 | March 03, 2021 | 1 | bsd-2-clause | C | |||
Sort files and pack them into partitions | ||||||||||
System Tar And Restore | 158 | 4 years ago | 1 | Shell | ||||||
Backup and Restore your system using tar or Transfer it with rsync | ||||||||||
Wildpwn | 99 | 5 years ago | gpl-3.0 | Python | ||||||
unix wildcard attacks | ||||||||||
Backup | 58 | 6 years ago | 2 | bsd-2-clause | Shell | |||||
Simple backup script utilising OpenSSL, tar and rsync, written in bash | ||||||||||
Mv_backup | 12 | 10 months ago | Shell | |||||||
RSYNC Backup Skript | ||||||||||
Retools | 9 | 7 years ago | other | |||||||
Automatic lustre striping during file creation when using bzip2, gzip, rsync, and tar | ||||||||||
Backpac | 7 | 6 years ago | Shell | |||||||
A simple and comprehensive backup script for Linux using Rsync and Tar | ||||||||||
Mylvmbackup | 7 | 10 years ago | gpl-2.0 | Perl | ||||||
Fork from https://code.launchpad.net/mylvmbackup + integration with https://github.com/zbackup/zbackup |
System tar & restore contains two bash scripts, the main program star.sh and a gui wrapper star-gui.sh.
Three modes are available: Backup, Restore and Transfer.
Supported distributions: Arch, Debian/Ubuntu, Fedora, openSUSE, Gentoo, Mandriva/Mageia
Archlinux
See the wiki page.
Gentoo
The package is provided by the gentoo-el
overlay. You can install it with the following commands as root. (you need to have layman
installed and configured)
layman -a gentoo-el
emerge app-backup/system-tar-and-restore
With this mode you can make a tar backup archive of your system. You can define:
Backup-$(hostname)-$(date +%Y%m%d-%H%M%S)
./
.tar --help
for more info.The script can read input from /etc/backup.conf. Alternative path can be specified: star.sh /path/backup.conf -i 0
or star-gui.sh /path/backup.conf
.
See the provided sample or use -g, --generate
to generate a configuration file.
When the process completes, you may want to check backup.log file in the same directory with the backup archive.
Restore mode uses the above created archive to extract it in desired partition(s). Transfer mode transfers your system in desired partition(s) using rsync. Then, in both cases, the script generates the target system's fstab, rebuilds initramfs for every available kernel, generates locales and finally installs and configures the selected bootloader.
Boot from a livecd - preferably one of the target (backed up) distro - or another existing system, prepare your target partition(s) and start the script. You can define:
defaults,noatime
.__active
.tar --help
or rsync --help
for more info.When the process completes check /tmp/restore.log.
See star.sh --help
for all available options.
In case of Gentoo initramfs is optional. You can use -D, --use-genkernel
in Restore/Transfer mode to enable initramfs building via genkernel.
In the target system, the script saves configuration files before generate/modify them with -old suffix.
In case of UEFI, you must boot in UEFI enviroment to restore a system. The script will check if /sys/firmware/efi exists and act accordingly. You must create an EFI System Partition.
Some tested Restore/Transfer scenarios are included in the table below.
TARGET PARTITION | MOUNTPOINT | BOOTLOADER | SYSTEM | NOTES |
---|---|---|---|---|
/dev/sdX1 | / | Grub Syslinux |
BIOS MBR | |
/dev/sdX2 /dev/sdX1 /dev/sdX3 /dev/sdX4 |
/ /boot /home /var |
Grub Syslinux |
BIOS MBR | |
/dev/md0 | / | Grub Syslinux |
BIOS MBR | level=1 metadata=1.0 |
/dev/md1 /dev/md0* |
/ /boot |
Syslinux | BIOS GPT | level=1 metadata=1.0* |
/dev/sdX2 /dev/sdX1 |
/ /boot |
Grub Syslinux |
BIOS MBR | btrfs Root Subvolume: __active Other Subvolumes: /home /usr /var /opt |
/dev/mapper/A-B /dev/sdX1* /dev/sdX3 |
/ /boot |
Grub Syslinux |
BIOS GPT | lvm Grub needs BIOS Boot Partition* |
/dev/mapper/A-B /dev/sdX1 /dev/mapper/A-C /dev/mapper/A-D /dev/mapper/X |
/ /boot /home swap |
Grub Syslinux |
BIOS MBR | lvm on luks |
/dev/mapper/A-B /dev/md1 /dev/md0* |
/ /boot |
Syslinux | BIOS GPT | lvm on mdadm level=1 metadata=1.0* |
/dev/mapper/A-B /dev/mapper/X /dev/md1 /dev/md0* |
/ /boot |
Syslinux | BIOS GPT | lvm on luks on mdadm level=1 metadata=1.0* |
/dev/mapper/X /dev/sdX1 |
/ /boot |
Grub Syslinux |
BIOS MBR | luks |
/dev/mapper/X /dev/A/B /dev/sdX1 |
/ /boot |
Grub Syslinux |
BIOS MBR | luks on lvm |
/dev/mapper/X /dev/md1 /dev/md0* |
/ /boot |
Syslinux | BIOS GPT | luks on mdadm level=1 metadata=1.0* |
/dev/mapper/X /dev/mapper/A-B /dev/md1 /dev/md0* |
/ /boot |
Syslinux | BIOS GPT | luks on lvm on mdadm level=1 metadata=1.0* |
/dev/sdX2 /dev/sdX1* |
/ /boot/efi |
Grub EFISTUB/efibootmgr Systemd/bootctl |
UEFI GPT | ESP* efibootmgr 0.12 efivar 0.21 systemd >= 222 |
/dev/sdX2 /dev/sdX1* |
/ /boot |
Grub EFISTUB/efibootmgr Systemd/bootctl |
UEFI GPT | ESP* efibootmgr 0.12 efivar 0.21 systemd >= 222 |
/dev/mapper/X /dev/sdX2 /dev/sdX1* |
/ /boot /boot/efi |
Grub EFISTUB/efibootmgr Systemd/bootctl |
UEFI GPT | luks ESP* efibootmgr 0.12 efivar 0.21 systemd >= 222 |
Backup Mode:
star.sh -i 0 -d /home/john/ -c gzip -u "--exclude=/home/john/.cache/* --warning=none"
star.sh -i 0 -d /home/john/ -c xz -H 2
star.sh -i 0 -d /home/john/ -c bzip2 -E openssl -P 1234 -H 1
Restore Mode:
star.sh -i 1 -r /dev/sdb1 -G /dev/sdb -f /home/john/backup.tar.gz
star.sh -i 1 -r /dev/sdb1 -h /dev/sdb2 -s /dev/sdb3 -S /dev/sdb -f ftp://server/backup.tar.xz
star.sh -i 1 -r /dev/md1 -b /dev/md0 -f /home/john/backup.tar.gz -S /dev/md0
star.sh -i 1 -r /dev/sdb1 -S /dev/sdb -f http://server/backup.tar.gz -y username -p password
star.sh -i 1 -r /dev/sda2 -e /dev/sda1 -l /boot/efi -G auto -f /home/john/backup.tar.gz
Transfer Mode:
star.sh -i 2 -r /dev/sda1 -m discard,errors=remount-ro -S /dev/sda -k nomodeset
star.sh -i 2 -r /dev/mapper/debian-root -b /dev/sdb1 -G /dev/sdb
star.sh -i 2 -r /dev/sda2 -m compress=lzo -b /dev/sda1 -S /dev/sda -R __active -B "/var /usr /home"
star.sh -i 2 -r /dev/sdb2 -b /dev/sdb1 -t "/var=/dev/sdb4 /usr=/dev/sdb3" -G /dev/sdb -H 1