I rsync my main drive to backups.
However I am a bit messy at filing documents, just keeping them in
temporary places, like "Downloads" for example. Eventually I Will
decide to create one or more directories and move stuff into them.
When I backup of course, the new directories (and contents) will be
copied but the originals will remain on the backup drive. It would time-consuming to go through the backup drive, work out what had been duplicated and delete the original files.
In the past, because I have multiple backups, I would delete all the
contents of a backup drive before backing up to it again.
That though is time consuming and seems like using a hammer to crack a
nut.
That though is time consuming and seems like using a hammer to crack a
nut.
When I backup of course, the new directories (and contents) will be
copied but the originals will remain on the backup drive. It would time-consuming to go through the backup drive, work out what had been duplicated and delete the original files.
I rsync my main drive to backups.
However I am a bit messy at filing documents, just keeping them in
temporary places, like "Downloads" for example. Eventually I Will
decide to create one or more directories and move stuff into them.
When I backup of course, the new directories (and contents) will be
copied but the originals will remain on the backup drive. It would time-consuming to go through the backup drive, work out what had been duplicated and delete the original files.
In the past, because I have multiple backups, I would delete all the
contents of a backup drive before backing up to it again.
That though is time consuming and seems like using a hammer to crack a
nut.
rsync has the --link-dest option so it can do the deduping for you.
On 2026-02-02, pinnerite wrote:
I rsync my main drive to backups.
However I am a bit messy at filing documents, just keeping them in
temporary places, like "Downloads" for example. Eventually I Will
decide to create one or more directories and move stuff into them.
When I backup of course, the new directories (and contents) will be
copied but the originals will remain on the backup drive. It would
time-consuming to go through the backup drive, work out what had been
duplicated and delete the original files.
In the past, because I have multiple backups, I would delete all the
contents of a backup drive before backing up to it again.
That though is time consuming and seems like using a hammer to crack a
nut.
So use something like fdupes or the occasional --delete[*] switch with your rsync job?
[*] NB -- there are several 'options' you can use with --delete; such as 'before' or 'after' the transfer (and some additional variants thereto)
On Mon, 2 Feb 2026 23:13:53 -0000 (UTC), I wrote:
rsync has the --link-dest option so it can do the deduping for you.
Just to clarify, I mean deduping across different backup snapshots, to
avoid creating additional copies of a file that has not changed, not
within a single backup snapshot.
I rsync my main drive to backups.
However I am a bit messy at filing documents, just keeping them in
temporary places, like "Downloads" for example. Eventually I Will
decide to create one or more directories and move stuff into them.
When I backup of course, the new directories (and contents) will be
copied but the originals will remain on the backup drive. It would time-consuming to go through the backup drive, work out what had been duplicated and delete the original files.
In the past, because I have multiple backups, I would delete all the
contents of a backup drive before backing up to it again.
That though is time consuming and seems like using a hammer to crack a
nut.
On 03/02/2026 03:27, Lawrence D?Oliveiro wrote:
Just to clarify, I mean deduping across different backup
snapshots...
Or are we talking archiving here, as opposed to backup? Or some
mixture?
On 03/02/2026 03:27, Lawrence D?Oliveiro wrote:
On Mon, 2 Feb 2026 23:13:53 -0000 (UTC), I wrote:
rsync has the --link-dest option so it can do the deduping for you.
Just to clarify, I mean deduping across different backup snapshots, to
avoid creating additional copies of a file that has not changed, not
within a single backup snapshot.
Isn't this where timeshift and 'back in time' come in? They're really
just front-ends to rsync plus scheduling of one sort or another.
They seem to work well enough.
Or are we talking archiving here, as opposed to backup? Or some mixture?
On Mon, 2 Feb 2026 22:32:35 +0000
pinnerite <pinnerite@gmail.com> wrote:
I rsync my main drive to backups.
However I am a bit messy at filing documents, just keeping them in
temporary places, like "Downloads" for example. Eventually I Will
decide to create one or more directories and move stuff into them.
When I backup of course, the new directories (and contents) will be
copied but the originals will remain on the backup drive. It would
time-consuming to go through the backup drive, work out what had been
duplicated and delete the original files.
In the past, because I have multiple backups, I would delete all the
contents of a backup drive before backing up to it again.
That though is time consuming and seems like using a hammer to crack a
nut.
The advice given (thank you) appears to assume that the file locations
will be in the same place. They won't. The source file will have been
moved to a more suitable directory. The existing backup copy will be
matching the original location of the file (which will no longer be
there of course).
That is why I now get duplicates.
Timeshift doesn't work on non-ext4 destination disks ...
On Wed, 4 Feb 2026 09:38:34 -0000 (UTC), Handsome Jack wrote:
Timeshift doesn't work on non-ext4 destination disks ...
Funnily enough, rsync works on any filesystem that Linux will support.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 117:51:50 |
| Calls: | 125 |
| Calls today: | 125 |
| Files: | 489 |
| D/L today: |
859 files (365M bytes) |
| Messages: | 76,472 |
| Posted today: | 26 |