|
|
|
@ -3,47 +3,8 @@
|
|
|
|
|
#
|
|
|
|
|
# Dominic Reich, OE7DRT, dominic@mm.st
|
|
|
|
|
|
|
|
|
|
# we don't need this, because we run sudo below…
|
|
|
|
|
# if [ "$EUID" -ne 0 ]
|
|
|
|
|
# then echo "Not root. Exiting."
|
|
|
|
|
# exit
|
|
|
|
|
# fi
|
|
|
|
|
|
|
|
|
|
# rsync -qaR \
|
|
|
|
|
# --append-verify
|
|
|
|
|
|
|
|
|
|
# good, but not effective (another way to do this)
|
|
|
|
|
# sudo rsync -avzhRP --del --stats --inplace \
|
|
|
|
|
# --include='/etc/***' \
|
|
|
|
|
# --include='/boot/***' \
|
|
|
|
|
# --include='/home/***' \
|
|
|
|
|
# --include='/usr/local/***' \
|
|
|
|
|
# --include='/opt/***' \
|
|
|
|
|
# --include='/lib/systemd/system' \
|
|
|
|
|
# --exclude='*' \
|
|
|
|
|
# / nas:/volume1/NetBackup/polaris-kde-2022/
|
|
|
|
|
|
|
|
|
|
## The old code — since I use sudo below, I do this
|
|
|
|
|
## with a more privileged user in one run because I
|
|
|
|
|
## also want to backup some system files
|
|
|
|
|
|
|
|
|
|
#rsync -avzh --delete-delay --stats --partial \
|
|
|
|
|
# --append-verify --inplace --progress \
|
|
|
|
|
# --exclude '.cache' \
|
|
|
|
|
# --exclude '.gvfs' \
|
|
|
|
|
# --exclude '.DS_Store' \
|
|
|
|
|
# --exclude 'Thumbs.db' \
|
|
|
|
|
# --exclude 'lost+found' \
|
|
|
|
|
# --exclude '.Trash' \
|
|
|
|
|
# --exclude '.bash_history' \
|
|
|
|
|
# --exclude '.zhistory' \
|
|
|
|
|
# --exclude '.local/share/Steam/steamapps/common/' \
|
|
|
|
|
# --exclude 'Musik/nas/' \
|
|
|
|
|
# --exclude 'NetBackup/' \
|
|
|
|
|
# --exclude 'SynologyDrive/' \
|
|
|
|
|
# '/home/dominic/./' nas:/volume1/NetBackup/polaris-kde-2022/sync/
|
|
|
|
|
|
|
|
|
|
#sudo rsync -avzhRP --del --stats --inplace \
|
|
|
|
|
sudo rsync -avzhRP --del --stats \
|
|
|
|
|
--exclude 'BACKUP_LINUX_DISK/***' \
|
|
|
|
|
--exclude 'BACKUP_OLDMAC/***' \
|
|
|
|
@ -58,13 +19,14 @@ sudo rsync -avzhRP --del --stats \
|
|
|
|
|
--exclude 'Steam/***' \
|
|
|
|
|
--exclude '_nas-*/***' \
|
|
|
|
|
--exclude 'Attack/***' \
|
|
|
|
|
--exclude 'material-design-icons/***' \
|
|
|
|
|
'/./etc' \
|
|
|
|
|
'/./boot' \
|
|
|
|
|
'/./home' \
|
|
|
|
|
'/./usr/local' \
|
|
|
|
|
'/./opt' \
|
|
|
|
|
'/./root' \
|
|
|
|
|
'/./lib/systemd/system' \
|
|
|
|
|
'/./usr/lib/systemd/system' \
|
|
|
|
|
'/./var/lib/libvirt' \
|
|
|
|
|
nas:/volume1/NetBackup/polaris-arch/./
|
|
|
|
|
|
|
|
|
|