Linux: bash script to backup the OS
Published: 19 Oct 2017 | Author: Mentor
This is a really simple command/script to backup via rsync an entire Linux OS:
#!/bin/bash
rsync -aAXv --delete --exclude={"/dev/","/home/","/lost+found/","/media/","/mnt/","/proc/","/run/","/sys/","/tmp/"} / /media/Data_Backup/OS/
Source: wiki.archilinux.com