Hi Geeks,
I recently hired a geek to tweak a script that is supposed to download the contents of my server to my local Mac, which runs Ventura.
My server is a VPS hosted by Contabo.com.
The VPS runs Virtualmin/Webmin.
The script is supposed to copy the contents of the server, minus a few unnecessary items, into a folder on my local hard drive named Server-Whole-Latest.
However, the hired geek somehow managed to either misunderstand me, or incompetently provided a formula that backs up the server into a folder named Server-Whole-Latest on the server!!
Here's what I paid for:
BACKUPDIR="Server-Whole-Latest/"
sudo /usr/bin/rsync -avxz \
--rsync-path="sudo rsync" \
--delete \
--numeric-ids \
--relative \
--delete-excluded \
--exclude="/dev/" \
--exclude="/proc/" \
--exclude="/run/" \
--exclude="/sys/" \
--exclude="*/tmp/**" \
--exclude="/tmp/**" \
--exclude="*.log" \
--exclude="/var/log" \
--exclude="*.wpress" \
--exclude="*.wpstg" \
--exclude="Backups-of-WP/**.tar" \
--exclude="updraft/backup*.zip" \
--exclude="backups/*.zip" \
--exclude="snapshots/*.zip" \
--rsh="/usr/bin/ssh -p 2610" \
[email protected]:/ ${BACKUPDIR}
With my kindergarten level of coding knowledge, I can see that the very first line selects the backup directory, but I need to know how to change that location to my local hard drive.
Thanks for your geekism.
Andy Scott
Edited by Andy1953, 13 May 2023 - 04:37 PM.