Menu
Cutty
  • Chryslers
  • Lutherie
  • YLSNED
  • About
Cutty

Ubuntu remote backup – rsync

Posted on January 22, 2026 by Iain Carlin

I needed to backup a Ubuntu virtual server from the cloud before I deleted it (it was replaced by a new server). The hosting service didn’t allow downloading backups etc. but I wanted to keep a copy for historical/auditing purposes (and in case I’d missed something building the new server).

ChatGPT told me about rsync so I used that from my Windows WSL instance to copy all the files and folders to my local system, then compressed that with tar.

rsync -avzP -e "ssh -p 22" user@remoteip:/ /mnt/m/Backups/backup --log-file=/mnt/m/Backups/rsync.log --exclude=/proc --exclude=/sys --exclude=/dev --exclude=/tmp --exclude=/run --exclude=/mnt
cd /mnt/m/Backups
tar -czvf backup.2026_01_22.tar.gz backup/

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Books I read in 2025
  • 2024 was the best year for our solar system
  • Books I read in 2024
  • Books I read in 2023
  • Happy New Year 2024

Categories

  • Chryslers (1)
  • Cutty's Blog (13)
  • Lutherie (38)
  • You Learn Something New Every Day (44)
©2026 Cutty | Powered by Superb Themes