2023-08-06 22:15:06 +02:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
2023-12-25 18:49:51 +01:00
|
|
|
BAK="/home/dym/Servers/self-files"
|
2023-08-06 22:15:06 +02:00
|
|
|
if [ ! -z "$1" ]; then
|
|
|
|
BAK="$1"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
cd `realpath "$0" | xargs dirname`
|
|
|
|
./bak-home.sh "$BAK/Home_bak"
|
|
|
|
|
|
|
|
cp /home/dym/.config/doublecmd/doublecmd.xml \
|
|
|
|
/Cfg/doublecmd/
|
|
|
|
|
|
|
|
DIRS=(
|
|
|
|
Apps
|
|
|
|
Cfg
|
|
|
|
)
|
|
|
|
for DIR in "${DIRS[@]}"; do
|
|
|
|
echo "-
|
|
|
|
-
|
2023-12-25 18:49:51 +01:00
|
|
|
# '/$DIR'"
|
2023-08-06 22:15:06 +02:00
|
|
|
sudo \
|
|
|
|
rsync -zrhP --links --size-only --verbose --delete \
|
|
|
|
--exclude '**/.Trash-1000' \
|
|
|
|
--exclude '**/__sapper__/' \
|
|
|
|
--exclude '**/node_modules/' \
|
|
|
|
--exclude '**/target/' \
|
|
|
|
"/$DIR/" \
|
2023-12-25 18:49:51 +01:00
|
|
|
"$BAK/${DIR}_bak"
|
2023-08-06 22:15:06 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
echo "-
|
|
|
|
-
|
2023-12-25 18:49:51 +01:00
|
|
|
# '~/.privat'"
|
2023-08-06 22:15:06 +02:00
|
|
|
sudo \
|
|
|
|
rsync -zrhP --links --size-only --verbose --delete \
|
|
|
|
"/home/dym/.privat/" \
|
2023-12-25 18:49:51 +01:00
|
|
|
"$BAK/.privat_bak"
|