Rsync: Difference between revisions
Jump to navigation
Jump to search
Created page with "==Playground== {| | valign="top" | <syntaxhighlight lang="bash"> rsync -aqz ${BACKUPS_CFG_FILE} ${HAPROXY_ETC_BASE}/haproxy.cfg rsync -aqz ${HAPROXY_TMP_FILE} ${HAPROXY_ETC_BASE}/haproxy.cfg </syntaxhighlight> | valign="top" colspan="2" | <syntaxhighlight lang="bash"> sudo rsync -avz /etc/pgbouncer/pgbouncer.ini /etc/pgbouncer/pgbouncer.ini.bkp sudo rsync -avz /etc/pgbouncer/userlist.txt /etc/pgbouncer/userlist.txt.bkp </syntaxhighlight> |- | colspan="3" | ---- |- | v..." |
|||
| Line 30: | Line 30: | ||
rsync -a /home/minio /home/system/ | rsync -a /home/minio /home/system/ | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
| colspan="3" | | | colspan="3" | | ||
| Line 37: | Line 38: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
rsync -avz /etc/ufw/{before,before6,user,user6,after,after6}.rules ${HOME}/.config/ufw/${BACKUP_DATE_TIME}/ | rsync -avz /etc/ufw/{before,before6,user,user6,after,after6}.rules ${HOME}/.config/ufw/${BACKUP_DATE_TIME}/ | ||
</syntaxhighlight> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" colspan="2" | | |||
<syntaxhighlight lang="bash"> | |||
rsync -avz deploy@app.academia.chorke.org:~/Documents/docker-playground/ . | rsync -avz deploy@app.academia.chorke.org:~/Documents/docker-playground/ . | ||
rsync -az ${HOME}/Downloads/harbor/ ${HOME}/Documents/harbor-playground/ | rsync -az ${HOME}/Downloads/harbor/ ${HOME}/Documents/harbor-playground/ | ||
rsync -avz ${HOME}/.config/ufw/${BACKUP_DATE_TIME}/*.rules /etc/ufw/ | rsync -avz ${HOME}/.config/ufw/${BACKUP_DATE_TIME}/*.rules /etc/ufw/ | ||
</syntaxhighlight> | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
rsync -avh source/ target/ --delete-after --ignore-errors | |||
rsync -r --progress source target | rsync -r --progress source target | ||
apt install rsync | apt install rsync | ||
Revision as of 03:05, 18 June 2025
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
|
| |||
|
| |||