## 备份与还原
### LiveCD
rufus dd 刻录
### rsync
https://wiki.archlinux.org/index.php/Rsync```shell
#!/bin/sh
START=$(date +%s)
rsync -auvAX --delete --exclude {/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/var/lib/pacman/sync/*,/home/towdium/.local/share/Steam/*} /* /Your/Destination/Directory
FINISH=$(date +%s)
echo "total time: $(( ($FINISH-$START) / 60 )) minutes, $(( ($FINISH-$START) % 60 )) seconds" | tee /run/media/towdium/Files/manjaro/"Backup from $(date '+%A, %d %B %Y, %T')"
```
### tar
https://www.jianshu.com/p/b03a51c682a5```shell
sudo tar --use-compress-program=pigz -cvpf backup-20160331.tgz --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/run --exclude=/mnt --exclude=/media --exclude=/lost+found --exclude=/var/lib/pacman/sync --exclude=/home/towdium/.local/share/Steam --exclude=/backup-20160331.tgz /
tar --use-compress-program=pigz -xvpf /f/sysbackup/backup-20160331.tgz -C /mnt
```
### timeshift
Linux Mint 自带
### restic
适合增量备份
### Clonezilla(再生龙)
再生龙的后端是 part image 和 part clone
### dd
备份:dd 到 iso
迁移:dd if=/dev/sda of=/dev/sdb
### fsarchiver
需要自己修复启动引导