#!/bin/bash MNT_POINT='/run/media/luca/Linux-backup' # Partizione "Data" EXCLUDES=$HOME/bin/exclude-Data.txt rsync -rlpogtv -n --exclude-from=$EXCLUDES --delete /Data/ $MNT_POINT/Data/ #rsync -rlpogtv --mkpath -n /Data/imm-disco/ $MNT_POINT/imm-disco/ # Linux Mint 21 #rsync -rlpogtv --mkpath -n --delete $HOME/Scaricati/ $MNT_POINT/Linux_Mint/Scaricati/ #rsync -rlpogtv --mkpath -n --delete $HOME/Scrivania/ $MNT_POINT/Linux_Mint/Scrivania/ ## Configuration files (Git repository) #rsync -rlpogtv --mkpath -n --delete $HOME/config-files/ $MNT_POINT/Linux_Mint/config-files/ ## file nascosti #rsync -rlpogtv --mkpath -n $HOME/.thunderbird/ $MNT_POINT/Linux_Mint/.thunderbird/ #rsync -rlpogtv --mkpath -n $HOME/.gnupg/ $MNT_POINT/Linux_Mint/.gnupg/ # Fedora KDE rsync -rlpogtv --mkpath -n --delete $HOME/Scaricati/ $MNT_POINT/Fedora/Scaricati/ rsync -rlpogtv --mkpath -n --delete $HOME/Scrivania/ $MNT_POINT/Fedora/Scrivania/ ## Configuration files (Git repository) rsync -rlpogtv --mkpath -n --delete $HOME/config-files/ $MNT_POINT/Fedora/config-files/ # home (generica) rsync -rlpogtv --mkpath -n $HOME/Pubblici/ $MNT_POINT/home/Pubblici/ rsync -rlpogtv --mkpath -n $HOME/Modelli/ $MNT_POINT/home/Modelli/ ## bin rsync -rlpogtv --mkpath -n $HOME/bin/ $MNT_POINT/home/bin/ rsync -rlpogtv --mkpath -n $HOME/.local/bin/ $MNT_POINT/home/.local/bin/ ## file nascosti rsync -rlpogtv --mkpath -n $HOME/.local/share/strawberry/ $MNT_POINT/home/.local/share/strawberry/ rsync -rlpogtv --mkpath -n $HOME/.config/strawberry/ $MNT_POINT/home/.config/strawberry/ rsync -rlpogt -n --delete $HOME/.local/share/TelegramDesktop/ $MNT_POINT/home/.local/share/TelegramDesktop/ ## themes e icons #rsync -rlpogtv --mkpath -n --delete $HOME/.icons/ $MNT_POINT/home/.icons/ #rsync -rlpogtv --mkpath -n --delete $HOME/.themes/ $MNT_POINT/home/.themes/ ## altro rsync -rlpogtv --mkpath -n --delete $HOME/CD-audio/ $MNT_POINT/home/CD-audio/ ## VSCodium extensions rsync -rlpogt -n --delete $HOME/.vscode-oss/extensions/ $MNT_POINT/home/.vscode-oss/extensions/ ## SSH keys #rsync -rlpogtv --mkpath -n $HOME/.ssh/ $MNT_POINT/home/.ssh/ # Argomenti di rsync # -a = -rlptgoD (no -A -X -U -N -H) # -r = recursive # -l = copy symlinks as symlinks # -p = preserve permissions # -t = preserve modification times # -g = preserve group # -o = preserve owner # -D = --devices --specials # --devices = preserve device-files (super-user only) # --specials = preserve special files