Tuesday, August 18, 2026

How to use rsync to take Linux Mint OS snapshot

 --https://share.google/aimode/aeD4hZxLGx07z63bo

To take a complete system snapshot of Linux Mint using rsync, use the built-in Timeshift application set to its RSYNC mode. For manual command-line backups, run sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /path/to/destination/ to safely mirror your root file system while skipping pseudo-filesystems. [1, 2]
Using Timeshift (Recommended GUI Method)
Linux Mint includes Timeshift by default, which creates space-saving incremental snapshots using rsync and hard links. [1]
  • Open the application menu, search for Timeshift, and enter your administrator password.
  • Select RSYNC as the snapshot type and click Next.
  • Choose a destination drive (preferably an external or secondary internal partition with enough free space).
  • Select your preferred schedule (daily, weekly, etc.).
  • Click Finish and then click the Create button in the main toolbar to take your first manual snapshot. [1]
Using the Terminal (rsync Command-Line)
If you prefer a manual backup via the terminal, you must exclude volatile system directories to prevent errors or infinite loops. [1]
  • Open your terminal (Ctrl + Alt + T).
  • Connect or mount your external backup drive.
  • Run the following command with root privileges (replace /media/user/backup-drive/ with your actual destination path):
    bash
    sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /media/user/backup-drive/root-snapshot/
    
    குறியீட்டைக் கவனமாகப் பயன்படுத்துங்கள்.
  • -a: Archive mode (preserves permissions, timestamps, owner, etc.)
  • -A: Preserve Access Control Lists (ACLs)
  • -X: Preserve extended attributes
  • -v: Verbose output to track progress
  • -x: (Optional) Stay on one file system and don't cross boundaries [1]
Community Experiences
“Remember snapshots use rsync and hardlinks, that is, they only really grow in size relative to how much actually changed.”
Would you like help setting up an automated cron job to run your manual rsync command on a regular schedule, or do you need assistance restoring from an existing snapshot?

No comments: