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..." |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==Playground== | ==Playground== | ||
{| | {|class='wikitable' | ||
| valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
rsync -aqz ${BACKUPS_CFG_FILE} ${HAPROXY_ETC_BASE}/haproxy.cfg | rsync -aqz ${BACKUPS_CFG_FILE} ${HAPROXY_ETC_BASE}/haproxy.cfg | ||
rsync -aqz ${HAPROXY_TMP_FILE} ${HAPROXY_ETC_BASE}/haproxy.cfg | rsync -aqz ${HAPROXY_TMP_FILE} ${HAPROXY_ETC_BASE}/haproxy.cfg | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
sudo rsync -avz /etc/pgbouncer/pgbouncer.ini /etc/pgbouncer/pgbouncer.ini.bkp | sudo rsync -avz /etc/pgbouncer/pgbouncer.ini /etc/pgbouncer/pgbouncer.ini.bkp | ||
sudo rsync -avz /etc/pgbouncer/userlist.txt /etc/pgbouncer/userlist.txt.bkp | sudo rsync -avz /etc/pgbouncer/userlist.txt /etc/pgbouncer/userlist.txt.bkp | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
| valign= | |||
<syntaxhighlight lang= | |||
rsync -avuzb --exclude '*~' samba:sourcedir/ targetdir/ | rsync -avuzb --exclude '*~' samba:sourcedir/ targetdir/ | ||
rsync -av --exclude={'*.txt','dir3','dir4'} sourcedir/ targetdir/ | rsync -av --exclude={'*.txt','dir3','dir4'} sourcedir/ targetdir/ | ||
| Line 24: | Line 20: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
rsync -a /home/minikube /home/system/ | rsync -a /home/minikube /home/system/ | ||
rsync -a /home/artemis /home/system/ | rsync -a /home/artemis /home/system/ | ||
| Line 31: | Line 27: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
| colspan= | |valign='top' colspan='2'| | ||
- | <syntaxhighlight lang='bash'> | ||
rsync -avz /etc/ufw/{before,before6,user,user6,after,after6}.rules ${HOME}/.config/ufw/${BACKUP_DATE_TIME}/ | |||
</syntaxhighlight> | |||
|- | |- | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
rsync -avz | 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 | ||
| Line 46: | Line 48: | ||
==References== | ==References== | ||
{| | {|class='wikitable mw-collapsible' | ||
|valign= | !scope='col' style='text-align:left' colspan='4'| | ||
* [[ | References | ||
* [[ | |- | ||
* [[ | |valign='top' style='width:25%'| | ||
* [[Cloud Computing Cost|Cost » Cloud » Computing]] | |||
* [[Chorke Academia Backup]] | |||
* [[Cloud/Cost/Chorke|Cost » Cloud » Chorke]] | |||
* [[Minikube]] | * [[Minikube]] | ||
* [[Helm]] | |||
* [[CIDR]] | * [[CIDR]] | ||
* [[UFW]] | * [[UFW]] | ||
* [[K8s]] | |||
* [[YQ Tool|YQ]] | * [[YQ Tool|YQ]] | ||
* [[JQ Tool|JQ]] | * [[JQ Tool|JQ]] | ||
|valign= | |valign='top' style='width:25%'| | ||
* [https://askubuntu.com/questions/476041/ Rsync » Deleted from the source] | |||
* [ | |||
|valign= | |valign='top' style='width:25%'| | ||
|valign='top' style='width:25%'| | |||
|- | |- | ||
|valign='top'| | |||
|valign= | |||
* [[Benchmarks]] | * [[Benchmarks]] | ||
* [[IPTables]] | * [[IPTables]] | ||
| Line 111: | Line 83: | ||
* [[Tar]] | * [[Tar]] | ||
|valign= | |valign='top'| | ||
* [[Ubuntu Upgrade|Linux » Ubuntu Upgrade]] | * [[Ubuntu Upgrade|Linux » Ubuntu Upgrade]] | ||
* [[Linux Service Creation|Linux » Service Creation]] | * [[Linux Service Creation|Linux » Service Creation]] | ||
| Line 123: | Line 95: | ||
* [[K9s]] | * [[K9s]] | ||
|valign= | |valign='top'| | ||
* [[Cloudflare/WARP Host|Cloudflare » Host]] | * [[Cloudflare/WARP Host|Cloudflare » Host]] | ||
* [[Cloudflare]] | * [[Cloudflare]] | ||
| Line 135: | Line 107: | ||
* [[Port]] | * [[Port]] | ||
|valign= | |valign='top'| | ||
* [[ | * [[Security/Container/Snyk|Security » Container » Snyk]] | ||
* [[ | * [[Security/Container/Trivy|Security » Container » Trivy]] | ||
* [[ | * [[Security/Certificate/TLS|Security » Certificate » TLS]] | ||
* [[ | * [[Java Key Store|Security » Java » Key Store]] | ||
* [[ | * [[Java Mail API|Security » Java » Mail API]] | ||
* [[Security/Password|Security » Password]] | |||
| | * [[ZA Proxy|Security » ZA Proxy]] | ||
| | * [[Security/Domain|Security » Domain]] | ||
* [[Jasypt|Security » Jasypt]] | |||
| | * [[HTTP Security|Security » HTTP]] | ||
| | |||
| | |||
|valign='top'| | |||
|} | |} | ||
Latest revision as of 09:55, 6 February 2026
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
|
References | ||||
|---|---|---|---|---|