my-scripts/backup

3 lines
152 B
Bash
Executable File

#!/bin/bash
rsync -aAXv --delete "$1" --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/media/music/*"} "$2"