rsync: Sposta script in altro repository dedicato

Sposta gli script presenti in `rsync/bin/` in un altro repository Git
dedicato (chiamato 'scripts'), in cui verranno gestiti insieme ad altri
script Bash che uso quotidianamente.
This commit is contained in:
Luca Pellegrini 2023-03-27 09:35:22 +02:00
parent 86b298de2d
commit 706bc6b97a
7 changed files with 0 additions and 182 deletions

View File

@ -1,15 +0,0 @@
# Cartelle e file nella partizione Data, da escludere nei backup con rsync
.Trash-1000/
lost+found
.vscode-oss/
fedora/
imm-disco/
musica-altro/
Musica/Downloads/
Nextcloud/*
SCGP/Immagini/*
Programmazione/*/venv/
SteamLibrary/
temp/
VMs/

View File

@ -1,56 +0,0 @@
#!/bin/bash
MNT_POINT='/media/luca/Backup'
# Partizione "Data"
EXCLUDES=$HOME/bin/exclude-Data.txt
rsync -av --exclude-from=$EXCLUDES /Data/ $MNT_POINT/Data/
#rsync -av --mkpath /Data/imm-disco/ $MNT_POINT/imm-disco/
# Linux Mint 21
rsync -av --mkpath --delete $HOME/Scaricati/ $MNT_POINT/Linux_Mint/Scaricati/
rsync -av --mkpath --delete $HOME/Scrivania/ $MNT_POINT/Linux_Mint/Scrivania/
## Config files (Git repository)
rsync -av --mkpath --delete $HOME/config-files/ $MNT_POINT/Linux_Mint/config-files/
## file nascosti
#rsync -av --mkpath $HOME/.thunderbird/ $MNT_POINT/Linux_Mint/.thunderbird/
#rsync -av --mkpath $HOME/.gnupg/ $MNT_POINT/Linux_Mint/.gnupg/
# Fedora KDE
#rsync -av --mkpath --delete $HOME/Scaricati/ $MNT_POINT/Fedora/Scaricati/
#rsync -av --mkpath --delete $HOME/Scrivania/ $MNT_POINT/Fedora/Scrivania/
## Config files (Git repository)
#rsync -av --mkpath --delete $HOME/config-files/ $MNT_POINT/Fedora/config-files/
# home (generica)
rsync -av --mkpath $HOME/Pubblici/ $MNT_POINT/home/Pubblici/
rsync -av --mkpath $HOME/Modelli/ $MNT_POINT/home/Modelli/
## bin
rsync -av --mkpath $HOME/bin/ $MNT_POINT/home/bin/
rsync -av --mkpath $HOME/.local/bin/ $MNT_POINT/home/.local/bin/
## file nascosti
rsync -av --mkpath $HOME/.local/share/strawberry/ $MNT_POINT/home/.local/share/strawberry/
rsync -av --mkpath $HOME/.config/strawberry/ $MNT_POINT/home/.config/strawberry/
rsync -a --mkpath --delete $HOME/.local/share/TelegramDesktop/ $MNT_POINT/home/.local/share/TelegramDesktop/
## themes e icons
#rsync -av --mkpath --delete $HOME/.icons/ $MNT_POINT/home/.icons/
#rsync -av --mkpath --delete $HOME/.themes/ $MNT_POINT/home/.themes/
## altro
rsync -av --mkpath --delete $HOME/CD-audio/ $MNT_POINT/home/CD-audio/
## VSCodium extensions
#rsync -a --mkpath --delete $HOME/.vscode-oss/extensions/ $MNT_POINT/home/.vscode-oss/extensions/
## SSH keys
#rsync -av --mkpath $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

View File

@ -1,56 +0,0 @@
#!/bin/bash
MNT_POINT='/media/luca/Backup'
# Partizione "Data"
EXCLUDES=$HOME/bin/exclude-Data.txt
rsync -av -n --exclude-from=$EXCLUDES /Data/ $MNT_POINT/Data/
#rsync -av --mkpath -n /Data/imm-disco/ $MNT_POINT/imm-disco/
# Linux Mint 21
rsync -av --mkpath -n --delete $HOME/Scaricati/ $MNT_POINT/Linux_Mint/Scaricati/
rsync -av --mkpath -n --delete $HOME/Scrivania/ $MNT_POINT/Linux_Mint/Scrivania/
## Config files (Git repository)
rsync -av --mkpath -n --delete $HOME/config-files/ $MNT_POINT/Linux_Mint/config-files/
## file nascosti
#rsync -av --mkpath -n $HOME/.thunderbird/ $MNT_POINT/Linux_Mint/.thunderbird/
#rsync -av --mkpath -n $HOME/.gnupg/ $MNT_POINT/Linux_Mint/.gnupg/
# Fedora KDE
#rsync -av --mkpath -n --delete $HOME/Scaricati/ $MNT_POINT/Fedora/Scaricati/
#rsync -av --mkpath -n --delete $HOME/Scrivania/ $MNT_POINT/Fedora/Scrivania/
## Config files (Git repository)
#rsync -av --mkpath -n --delete $HOME/config-files/ $MNT_POINT/Fedora/config-files/
# home (generica)
rsync -av --mkpath -n $HOME/Pubblici/ $MNT_POINT/home/Pubblici/
rsync -av --mkpath -n $HOME/Modelli/ $MNT_POINT/home/Modelli/
## bin
rsync -av --mkpath -n $HOME/bin/ $MNT_POINT/home/bin/
rsync -av --mkpath -n $HOME/.local/bin/ $MNT_POINT/home/.local/bin/
## file nascosti
rsync -av --mkpath -n $HOME/.local/share/strawberry/ $MNT_POINT/home/.local/share/strawberry/
rsync -av --mkpath -n $HOME/.config/strawberry/ $MNT_POINT/home/.config/strawberry/
rsync -a --mkpath -n --delete $HOME/.local/share/TelegramDesktop/ $MNT_POINT/home/.local/share/TelegramDesktop/
## themes e icons
#rsync -av --mkpath -n --delete $HOME/.icons/ $MNT_POINT/home/.icons/
#rsync -av --mkpath -n --delete $HOME/.themes/ $MNT_POINT/home/.themes/
## altro
rsync -av --mkpath -n --delete $HOME/CD-audio/ $MNT_POINT/home/CD-audio/
## VSCodium extensions
#rsync -a --mkpath -n --delete $HOME/.vscode-oss/extensions/ $MNT_POINT/home/.vscode-oss/extensions/
## SSH keys
#rsync -av --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

View File

@ -1,18 +0,0 @@
#!/bin/bash
MNT_POINT='/media/luca/HDD-1'
rsync -av -n --mkpath /Data/temp/ $MNT_POINT/temp/
# Audio e Video
MULTIMEDIA=$MNT_POINT/Multimedia
rsync -av -n --mkpath /Data/Immagini/ $MULTIMEDIA/Immagini/
rsync -av -n --mkpath --delete /Data/Musica/ $MULTIMEDIA/Musica/
rsync -av -n --mkpath /home/luca/CD-audio/ $MULTIMEDIA/musica-altro/CD-audio/
rsync -av -n --mkpath /Data/Podcast/ $MULTIMEDIA/Podcast/
rsync -av -n --mkpath /Data/Video/ $MULTIMEDIA/Video/
# Documenti e altro
DOCS=$MNT_POINT/Documenti_e_altro
rsync -av -n --mkpath /Data/Libri/ $DOCS/Libri/

View File

@ -1,18 +0,0 @@
#!/bin/bash
MNT_POINT='/media/luca/HDD-1'
rsync -av --mkpath /Data/temp/ $MNT_POINT/temp/
# Audio e Video
MULTIMEDIA=$MNT_POINT/Multimedia
rsync -av --mkpath /Data/Immagini/ $MULTIMEDIA/Immagini/
rsync -av --mkpath --delete /Data/Musica/ $MULTIMEDIA/Musica/
rsync -av --mkpath /home/luca/CD-audio/ $MULTIMEDIA/musica-altro/CD-audio/
rsync -av --mkpath /Data/Podcast/ $MULTIMEDIA/Podcast/
rsync -av --mkpath /Data/Video/ $MULTIMEDIA/Video/
# Documenti e altro
DOCS=$MNT_POINT/Documenti_e_altro
rsync -av --mkpath /Data/Libri/ $DOCS/Libri/

View File

@ -1,16 +0,0 @@
#!/bin/bash
MNT_POINT='/media/luca/LUCA-32GB'
rsync -av -n --delete --exclude "Downloads" /Data/Musica/ $MNT_POINT/Musica/
# -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

View File

@ -1,3 +0,0 @@
#!/bin/bash
rsync -av --delete --exclude "Downloads" /Data/Musica/ /run/media/luca/SD-CARD/Musica/