|
|
@ -3,68 +3,30 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Dominic Reich, OE7DRT, dominic@mm.st
|
|
|
|
# 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 \
|
|
|
|
# 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 \
|
|
|
|
sudo rsync -avzhRP --del --stats \
|
|
|
|
--exclude 'BACKUP_LINUX_DISK/***' \
|
|
|
|
--exclude 'BACKUP_LINUX_DISK/***' \
|
|
|
|
--exclude 'BACKUP_OLDMAC/***' \
|
|
|
|
--exclude 'BACKUP_OLDMAC/***' \
|
|
|
|
--exclude '.SynologyDrive/***' \
|
|
|
|
--exclude '.SynologyDrive/***' \
|
|
|
|
--exclude 'SynologyDrive/***' \
|
|
|
|
--exclude 'SynologyDrive/***' \
|
|
|
|
--exclude '.cache/***' \
|
|
|
|
--exclude '.cache/***' \
|
|
|
|
--exclude '.gvfs/***' \
|
|
|
|
--exclude '.gvfs/***' \
|
|
|
|
--exclude '.DS_Store' \
|
|
|
|
--exclude '.DS_Store' \
|
|
|
|
--exclude 'Thumbs.db' \
|
|
|
|
--exclude 'Thumbs.db' \
|
|
|
|
--exclude 'lost+found/***' \
|
|
|
|
--exclude 'lost+found/***' \
|
|
|
|
--exclude '.Trash/***' \
|
|
|
|
--exclude '.Trash/***' \
|
|
|
|
--exclude 'Steam/***' \
|
|
|
|
--exclude 'Steam/***' \
|
|
|
|
--exclude '_nas-*/***' \
|
|
|
|
--exclude '_nas-*/***' \
|
|
|
|
--exclude 'Attack/***' \
|
|
|
|
--exclude 'Attack/***' \
|
|
|
|
'/./etc' \
|
|
|
|
--exclude 'material-design-icons/***' \
|
|
|
|
'/./boot' \
|
|
|
|
'/./etc' \
|
|
|
|
'/./home' \
|
|
|
|
'/./boot' \
|
|
|
|
'/./usr/local' \
|
|
|
|
'/./home' \
|
|
|
|
'/./opt' \
|
|
|
|
'/./usr/local' \
|
|
|
|
'/./root' \
|
|
|
|
'/./opt' \
|
|
|
|
'/./lib/systemd/system' \
|
|
|
|
'/./root' \
|
|
|
|
'/./var/lib/libvirt' \
|
|
|
|
'/./usr/lib/systemd/system' \
|
|
|
|
nas:/volume1/NetBackup/polaris-arch/./
|
|
|
|
'/./var/lib/libvirt' \
|
|
|
|
|
|
|
|
nas:/volume1/NetBackup/polaris-arch/./
|
|
|
|
|
|
|
|
|
|
|
|