Rsync

From Chorke Wiki
Revision as of 03:13, 18 June 2025 by Shahed (talk | contribs) (Playground)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Playground

rsync -aqz ${BACKUPS_CFG_FILE} ${HAPROXY_ETC_BASE}/haproxy.cfg
rsync -aqz ${HAPROXY_TMP_FILE} ${HAPROXY_ETC_BASE}/haproxy.cfg
sudo rsync -avz /etc/pgbouncer/pgbouncer.ini /etc/pgbouncer/pgbouncer.ini.bkp
sudo rsync -avz /etc/pgbouncer/userlist.txt  /etc/pgbouncer/userlist.txt.bkp

rsync -avuzb --exclude '*~' samba:sourcedir/ targetdir/
rsync -av --exclude={'*.txt','dir3','dir4'} sourcedir/ targetdir/
rsync -av --exclude-from={'/chorke/academia/ignore/rsync.txt'} sourcedir/ targetdir/
rsync -a /home/minikube /home/system/
rsync -a /home/artemis  /home/system/
rsync -a /home/minio    /home/system/

rsync -avz /etc/ufw/{before,before6,user,user6,after,after6}.rules ${HOME}/.config/ufw/${BACKUP_DATE_TIME}/

rsync -avz  deploy@app.academia.chorke.org:~/Documents/docker-playground/ .
rsync -az  ${HOME}/Downloads/harbor/ ${HOME}/Documents/harbor-playground/
rsync -avz ${HOME}/.config/ufw/${BACKUP_DATE_TIME}/*.rules /etc/ufw/
rsync -avh source/ target/ --delete-after --ignore-errors
rsync -r --progress source target
apt install rsync

References