Skip to main content

Backup

3.0

Summary​

This page describes the Backup page, where files are copied or moved from one catalog to another, using the data of the catalogs to know what is missing:

Backup page: list of links with their source, target, difference and last backup

Concepts​

A link associates a source catalog with a target catalog, where its files are backed up. Both are catalogs of the collection (see Devices): to back up a folder to an external drive, the folder and the backup folder on the drive each need a catalog first (see Create).

Katalog compares the two catalogs to find the files of the source missing from the target, then copies or moves them. It needs no external tool.

Backup or Archive​

TypeOperationPurpose
BackupCopies the missing files to the target.The source is never changed. The goal is redundancy and recovery.
ArchiveMoves the files to the target.Each file is removed from the source once its copy is confirmed. The goal is to free the source, for long-term storage. Empty folders left in the source are not deleted.

A backup:

  • recreates the folder structure of the source on the target, then copies the missing files,
  • does not overwrite a file already in the target, even if it is different (see conflicts),
  • does not delete files of the target that are absent from the source.

An archive on the same file system moves the files instantly; across file systems, each file is copied, then deleted from the source once the copy is complete. If the copy fails, the source file is left untouched.

Conflicts​

A conflict is a file present at the same place in the source and the target, but with a different date, size or checksum. The option On conflict of the link decides what happens:

SituationSkip - leave target untouchedRename oldest - rename target, copy source
Source newer than targetconflict reportedtarget renamed, then source copied
Target newer than sourceconflict reportedskipped, to protect the newer target
Same date, different sizeconflict reportedskipped (no clear winner)
Source file missing on diskerrorerror

With Rename oldest, the old target file is renamed name_YYYYMMDD-HHmmss.ext (for example report_20260225-102559.docx): the date is inserted before the extension so the file can still be opened. If the copy of the source then fails, the renamed file gets its name back: nothing is lost.
These renamed files stay on the target and take space: they are cleaned up manually.

Source mode​

  • By default, the list of source files comes from the catalog: it works with the source disconnected for the comparison, and the folders excluded from the catalog are not backed up.
  • With Scan source drive directly (requires connected source), the source folder is read from the drive: every file is included, whatever the catalog and its exclusions. The source must be connected.

Space on the target​

OperationSpace needed on the targetEffect on the source
BackupAll files to copy.None.
Archive, same file systemNone: the files are only moved.Space freed.
Archive, another file systemAll files to move.Space freed after each file is deleted.
Rename oldest conflictsThe renamed files are kept: one more copy each.None.

The preview checks the space available on the target and warns when it is insufficient or low (less than 512 MB left after the operation). A run is checked again before it starts: with insufficient space it is refused, and the message gives the space required, available and missing. When the space of the target cannot be read (network or virtual drives), there is no check.

The page lists the links as cards.

Filters​

FilterEffect
TypeAll, Backup or Archive.
FilterAll links, or only those where the device selected on the Selection page is the Source or the Target.

A line above the cards gives, for the selected device, the number of links, the size of their sources and, for backups, the percentage covered: how much of the sources is already in the targets.

Cards​

Each card shows:

  • the link name and its type,
  • the Source and Target catalogs, with their size and number of files,
  • Diff for a backup: what the target is missing, or Up to date; To move for an archive: what is still in the source, or Nothing to move,
  • Last backup or Last archive: date and size of the last run, or never,
  • the buttons Run Backup / Run Archive, Preview Backup / Preview Archive, and More actions.

When there is no link yet, the page says so and Add creates the first one.

Add in the page toolbar opens the Add Link form; Edit in More actions opens the same form, Edit Link, for an existing link.

Add Link form

FieldDescription
Source catalogThe catalog whose files are backed up.
Target catalogThe catalog where they are written.
NameName of the link. The button beside it (Auto-generate name) makes <source> -> <target>.
TypeBackup (copy) or Archive (move), see above.
DirectoriesInclude empty (ticked by default): folders that hold nothing, no file and no sub-folder, are recreated on the target too. Unticked, only folders that hold something are created. It never removes a folder already on the target.
Strict copyMirror folder structure exactly (default): every file is copied to its own place, even if the same file is already somewhere else in the target. Unticked, a file is skipped when a file with the same name and size is already anywhere in the target: no duplicates. Always off for an archive.
On conflictSee conflicts.
Source modeSee source mode.

Save creates or updates the link; Cancel closes the form. A message at the top of the form says what is missing.

Preview​

Preview Backup / Preview Archive computes what a run would do, without copying anything. When Update catalogs is ticked, both catalogs are updated first. The result opens on its own page:

  • a summary: files to copy or move, conflicts, files already in the target, and a warning when the source or the target is offline,
  • the space check of the target,
  • the list of files, with their Status (Copy, Move or Conflict), File Name, Path and Size,
  • Export to CSV saves the list in the collection folder (the home folder in Hosted mode), and shows the file path; clicking it opens the file.

Backup preview: summary, space check and list of files

Run​

Run Backup / Run Archive starts the link. It needs both the source and the target to be available.

  • With Update catalogs ticked (recommended), both catalogs are updated before the comparison, so the backup works on current data. After a run that was not cancelled, the target is updated again (and the source too, for an archive), so the catalogs show the result.
  • While it runs, the card shows the progress, the file being copied, the speed and the time left (ETA). Pause suspends it after the current file, Resume continues, Cancel stops it: a file being copied is removed from the target, so no partial file is left.
  • At the end, a line at the top of the page gives the result: files copied or moved, archived & copied (Rename oldest), conflicts and errors. Last backup is updated on the card.
  • Report, on that line, opens the list of the files of the run, one row per file with its status (Copied, Moved, Archived & Copied, Conflict, Error), name, path and size, and the totals. It is the report of the last run (of the last link, after Run listed links); it is kept until the next run or until Katalog is closed.

Run listed links​

Run listed links runs the links listed on the page, one after another, so a set of backups can be started at once and left to finish.

  • The filters decide what runs: to run another set, change the filters first.
  • Only links whose source and target are available run; the others are skipped.
  • A confirmation comes first: the number of links that will run, the volume of the archives (an upper bound) and of the backups (approximate), and the number of links skipped. These are estimates from the catalog totals; for an exact figure, use Preview on a link.
  • Each link runs as if started from its own card, including Update catalogs.
  • Cancel stops the whole run: the links still waiting are not started. Pause and Resume act on the link running.

More actions​

ActionDescription
EditOpens the link in the form.
DuplicateCreates a new link with the same settings, to adapt it.
Replicate directoriesCreates the folder structure of the source on the target, without the files. The result gives the folders created, already existing, and errors.
Invert (swap source and target)Swaps the source and the target, for example to restore. When the name contains an arrow, its two halves are swapped too.
Export to CSVComputes the preview of this link, then saves its list of files in a CSV file in the collection folder (the home folder in Hosted mode), and shows the file path; clicking it opens the file.
DeleteDeletes the link, after confirmation. No file is touched, on the source or the target.

LuckyBackup profile​

LuckyBackup in the page toolbar creates a LuckyBackup profile from the links listed on the page: each link becomes a task. The profile is saved in ~/.luckyBackup/profiles/. See LuckyBackup profile.

Development​

Some ideas of developments for this screen:

Future Features​

  • Snapshot management
  • Exclude/include patterns
  • Scheduling (cron/systemd/Task Scheduler)
  • Restore functionality
  • Compression options
  • Remote backups (ssh)

Future conflict modes​

ModeBehaviour
OverwriteSource always wins — overwrites the target silently. For users who want the source to be authoritative regardless of date.
Rename alwaysAlways renames the target and copies the source, even when the target is newer — aggressive, explicit archiving.

Future Options​

  • Archive source cleanup: opt-in option to delete empty directories left behind in the source after an Archive (move) operation.
  • Delete mode: opt-in option to remove target files absent from source.
  • Checksum comparison: detect content changes even when name/size/date match.
  • Scheduled/automated backup: run on timer or on catalog update.
  • Backup history: log of past backup runs with dates and statistics.

Future Features for Disk Space​

  • Per-link minimum free space setting: user-configurable floor (e.g., always keep 5 GB free).
  • In-flight space exhaustion early abort: detect ENOSPC errors during copy and stop immediately rather than continuing to fail file after file.
  • Post-archive source verification: confirm actual source space was freed after Archive completes.
  • Space trend display: show target space over time in the Statistics tab.
  • Archived file cleanup tool: list and bulk-delete stem_YYYYMMDD-HHmmss.ext files produced by RenameOldest mode.