This repository installs a user-level backup service that mirrors one folder to
another with rsync.
The intended setup is simple:
- Clone the repo.
- Edit one config file for your own source folder, backup destination, and preferred behavior.
- Run the installer once and forget about it.
The service runs inside your user session. In auto mode it stays quiet while
you are active, then speeds up after you have been idle for a while. If you
prefer, you can also force slow or fast mode manually.
- Linux with
systemd --user rsync- A GNOME graphical session
- A source folder and destination folder that are both mounted and writable for your user
git clone <your-repo-url> gnome-rsync-idle-backup
cd gnome-rsync-idle-backupEdit config/config.env.
For most people, these are the only values that matter:
SOURCE: the folder you want to back upTARGET: where the backup should be writtenIDLE_THRESHOLD_SECONDS: how long to wait before auto mode becomes fastCHECK_INTERVAL_SECONDS: how often to run another backup pass
If you want to skip extra folders or file types on your machine, add patterns
to config/excludes.local.txt.
Examples:
SOURCE="/home/alex/Documents"
TARGET="/run/media/alex/BackupDrive/documents-backup"
IDLE_THRESHOLD_SECONDS=300
CHECK_INTERVAL_SECONDS=120
Run:
bash install.shThe installer:
- copies the scripts into
~/.local/bin - installs the user service into
~/.config/systemd/user - creates config files in
~/.config/gnome-rsync-idle-backupif they do not already exist - starts and enables the service
After that, the service should keep running in the background for your user session.
gnome-rsync-idle-backupctl status
gnome-rsync-idle-backupctl watch
gnome-rsync-idle-backupctl logs
gnome-rsync-idle-backupctl mode auto
gnome-rsync-idle-backupctl mode slow
gnome-rsync-idle-backupctl mode fast
gnome-rsync-idle-backupctl compare-size
gnome-rsync-idle-backupctl audit-permissions- The backup uses exclude rules, so the destination can be much smaller than
the source when your source contains
node_modules, virtual environments, caches, or build output. gnome-rsync-idle-backupctl compare-sizecompares the destination with the effective source size after applying the same exclude rules as the backup service.- If
rsynccannot read a few source paths or the destination filesystem rejects a few filenames, the service now treats that as a partial pass rather than a full service failure.