IP and the root login from the server card in the bot.
1. Download files to your machine
1. Download files to your machine
A one-off copy of a directory to your own computer.
scp copies things “as is”:rsync is handier for repeat copies — it transfers only what changed and runs faster:-a preserves permissions and structure, -v shows progress, -z compresses during transfer.2. Database dump
2. Database dump
Copying database files directly is unreliable — you need a dump. Run the commands on the server, then pull the resulting file using the method from step 1.All databases at once:
- MySQL / MariaDB
- PostgreSQL
3. Archive a directory
3. Archive a directory
It’s convenient to pack a folder into a single compressed file and then download it:
-c create, -z compress with gzip, -f file name. To unpack it again: tar -xzf backup.tar.gz.4. Automate with cron
4. Automate with cron
To have copies taken automatically on a schedule. On the server, open the task editor:Add a line — every day at 03:00, upload the directory to another server:The
% sign in crontab is escaped as \%. For password-free login, set up an SSH key to the receiving server in advance. Back up a database the same way: first mysqldump/pg_dump into a file, then rsync that file.5. Copy the whole server
5. Copy the whole server
Taking a full disk image through the panel isn’t possible. But for a move or a full copy, it’s enough to grab the important directories.Archive the key directories (sites, configs, database dumps):For migrating to another server,
rsync is handier — it transfers the directories directly, skipping the intermediate archive:Where to next
Firewall
Close off unnecessary ports — one of the steps in securing the server.
Server hardening
The full security checklist.