Ricardo, since you don’t want to split your backup drive into partitions for each of Windows and Linux, keeping NTFS as the filesystem type is not an issue with using rsync for doing the backups of the Linux installation.
All you need to do is have only 2 top-level directories on your backup drive:
-
one for Windows
(call that ${pathToBackupDiskRoot}/win), and -
one for Linux
(call that ${pathToBackupDiskRoot}/nix)
You can then specify ${nix} as the target root for your Linux backups. Without confusing you with my full backup script, the command that I “build” is the following:
COM="ionice -c 2 -n 7 rsync \
${limitThruput} \
${doUpdate} \
${doCheckSum} \
${showProgress} \
--one-file-system \
--outbuf=Line \
--recursive \
--delete-during \
--preallocate \
--links \
--perms \
--times \
--group \
--owner \
--atimes \
--devices \
--specials \
--verbose --out-format=\"%t|%i|%M|%b|%f|\" \
--whole-file \
--human-readable \
--protect-args \
--ignore-errors \
--msgs2stderr \
${EXCLUDES} \
./ ${PathMirror}${dirC}/"
Most of that is options, as you can see, but the last line is the critical piece.
- “./” is the reference to the root of your Linux OS, assumed to be $PWD
- “${PathMirror}${dirC}/” is the reference to the backup image target “root”, i.e the path to reach the above-mentionned “${nix}” on the backup disk (note the “/” at the end is critical here).
If you have any questions about the above, feel free to ask.
If you want to see a bit more about my backup script, you can review the discussion and URLs provided here:
But I think the big question is
- whether you prefer to keep a full system snapshot (moment in time) at each backup,
or …
- whether you feel confident enough in your habits that you only ever need the very last backup to reclaim a recent mis-step, immediately upon doing that mis-step in order to recover the previous file version from the backup snapshot, if you don’t have that particular file under separate revision control.
That is fundamentally the bigger question.
My own backups are from the stance that I only ever need my last snapshot (never needed anything else). Depending on your own context, if you need different time-based snapshots, then you would need to set the backup target as directory having a date-based name, such as
- ${pathToBackupDiskRoot}/nix/20260426/