AminetAminet
Search:
85341 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/SaferCopy1.2.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric iconother icon
No screenshot available
Short:Reliable file copy VERIFY/UPDATE/BUFFER
Author: nowee at beamreactor.com
Uploader:nowee beamreactor com
Type:util/cli
Version:1.2
Architecture:m68k-amigaos >= 2.0.4
Date:2026-06-08
Requires:AmigaOS 2.04+ (V37), 68000+
Download:util/cli/SaferCopy1.2.lha - View contents
Readme:util/cli/SaferCopy1.2.readme
Downloads:7

---

SaferCopy 1.2 - A reliable replacement for AmigaDOS Copy 47.7


BACKGROUND

Copy 47.7 shipped with AmigaOS 3.2.3 silently ignores the VERIFY, DATES and
BUF/BUFFER keywords documented in the AmigaDOS 3.2.3 manual. Hence this
version.


FEATURES:

Lets you copy only the missing, uncomplete or older files with the "update"
option.
Partial write detection: checks Write() return value on every call. Silently
truncated files are caught, logged, and the destination is replaced.
Locale : fully localised via locale.library. Machine translated catalogs are
included for 18 languages. Reverts to English if locale.library is absent or
no catalog is found.

Path handling: destination directories are created recursively (equivalent of
mkdir -p).
Error buffering, errors gets printed both immediately AND are summarised at
the end. No need to watch the terminal for ages.

TESTED (MD5, etc) on Amiga 4000, 3000T, WinUAE, over a tremendous amount of
files.
It works for me, but I can't garantee it won't burn down your house to the
ground so please make a copy of it first... Uhh wait.. :D
It comes with no garantee whatsoever.


USAGE:

BUF/BUFFER : actually uses the specified buffer size (default 512KB).

DATES : actually calls SetFileDate() when specified alone, without requiring
        CLONE.

VERIFY : actually re-reads the destination after every write and compares
         byte-for-byte with the source. Corrupted files are replaced
         immediately.

UPDATE : skips files where destination exists with identical size and
         datestamp. Re-copies if destination is smaller (previous interrupted
         copy) or older than source. Reports "[dest incomplete: X/Y bytes]"
         for visibility.

NDATE : with UPDATE, compare size only (ignore datestamp). Useful when a
        previous backup was done without DATES/CLONE and destination files
        have the wrong date.

VERBOSE : shows skipped (up-to-date) files. By default only active copies and
          errors are displayed.

MAXERR/K/N : abort after N errors. Useful for unattended large copies over
             unreliable media. Default 0 = no limit.

FORCE : strips write-protection from destination before copying.


TEMPLATE

FROM/M,TO/A,ALL/S,QUIET/S,BUF=BUFFER/K/N,CLONE/S,DATES/S, NOPRO/S,VERIFY/S,
NOREQ/S,UPDATE/S,FORCE/S,MAXERR/K/N,NDATE/S,VERBOSE/S

Type "SaferCopy ?" for an interactive argument prompt.


EXAMPLES

Full backup with verification, preserve dates, 1MB buffer

    SaferCopy FROM Work: TO DH1:Backup/ ALL CLONE VERIFY BUF=1048576 NOREQ

Incremental update, abort after 50 errors

    SaferCopy FROM Work: TO DH1:Backup/ ALL UPDATE VERIFY BUF=1048576 MAXERR=50

USB to HD, big buffer 

    SaferCopy FROM USB0:data/ TO DH1:data/ ALL CLONE VERIFY BUF=2097152 NOREQ

Catch up after a backup done without DATES (ignore datestamp differences)

    SaferCopy FROM sys: TO Multimedia:SYSBACKUP/ ALL UPDATE NDATE CLONE VERIFY
    NOREQ


LANGUAGES

The catalogs are LLM translated. Please report in case of impediments...

Catalogs are included for: english, francais, deutsch, espanol, nederlands,
dansk, norsk, polski, czech, slovensko, portugues, catala, euskara, turkce,
srpski, russian, greek, roman.

Install: copy catalogs/$LANGUAGE/SaferCopy.catalog to
LOCALE:Catalogs/$LANGUAGE/SaferCopy.catalog


COMPILATION

GCC: 

 m68k-amigaos-gcc -O2 -m68000 -noixemul -Wall -o SaferCopy SaferCopy.c 

SASC:

 sc SaferCopy.c LINK MATH=SOFT NOSTKCHK OPT IDIR=Include: IDIR=NDK3.2:Include

Catalogs:

 python3 catalogs/build_catalog.py (requires Python 3, no catcomp needed)


SOURCES

Available on GitHub, https://github.com/Nowomeister/safercopy/


TODO:

Test on OS 2.04, 3.0, 3.1.


HISTORY

1.2 - Added locale catalog support (18 languages), $VER string, minimum OS
      version check (V37 / AmigaOS 2.04+). Updated the readme. Performed more
      tests including with files bearing illegal names (ExFAT). Checked for
      consistency with Claude, Gemini. Translations by Claude.

1.1 - Added NDATE, VERBOSE, recursive mkdir, fixed sys: path handling, fixed
      Shell window not closing after exit.

1.0 - Initial release.


Contents of util/cli/SaferCopy1.2.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[Amiga]                    749    1522  49.2% -lh5- aa81 Jun  5 16:26 Safercopy1.2/catalogs/catal?/SaferCopy.catalog
[Amiga]                    719    1446  49.7% -lh5- e236 Jun  5 16:26 Safercopy1.2/catalogs/czech/SaferCopy.catalog
[Amiga]                    737    1470  50.1% -lh5- 1d5b Jun  5 16:26 Safercopy1.2/catalogs/dansk/SaferCopy.catalog
[Amiga]                    765    1560  49.0% -lh5- 56d7 Jun  5 16:26 Safercopy1.2/catalogs/deutsch/SaferCopy.catalog
[Amiga]                    704    1416  49.7% -lh5- f758 Jun  5 16:26 Safercopy1.2/catalogs/english/SaferCopy.catalog
[Amiga]                    757    1546  49.0% -lh5- fc92 Jun  5 16:26 Safercopy1.2/catalogs/espa?ol/SaferCopy.catalog
[Amiga]                    746    1530  48.8% -lh5- 3735 Jun  5 16:26 Safercopy1.2/catalogs/euskara/SaferCopy.catalog
[Amiga]                    762    1536  49.6% -lh5- adb4 Jun  5 16:26 Safercopy1.2/catalogs/fran?ais/SaferCopy.catalog
[Amiga]                    770    1546  49.8% -lh5- 0b03 Jun  5 16:26 Safercopy1.2/catalogs/greek/SaferCopy.catalog
[Amiga]                    760    1504  50.5% -lh5- 523e Jun  5 16:26 Safercopy1.2/catalogs/nederlands/SaferCopy.catalog
[Amiga]                    717    1448  49.5% -lh5- 13a2 Jun  5 16:26 Safercopy1.2/catalogs/norsk/SaferCopy.catalog
[Amiga]                    772    1536  50.3% -lh5- 9c34 Jun  5 16:26 Safercopy1.2/catalogs/polski/SaferCopy.catalog
[Amiga]                    750    1536  48.8% -lh5- d233 Jun  5 16:26 Safercopy1.2/catalogs/portugu?s/SaferCopy.catalog
[Amiga]                    746    1506  49.5% -lh5- c59a Jun  5 16:26 Safercopy1.2/catalogs/roman/SaferCopy.catalog
[Amiga]                    764    1534  49.8% -lh5- 138b Jun  5 16:26 Safercopy1.2/catalogs/russian/SaferCopy.catalog
[Amiga]                    739    1506  49.1% -lh5- 2519 Jun  5 16:26 Safercopy1.2/catalogs/slovensko/SaferCopy.catalog
[Amiga]                    750    1512  49.6% -lh5- 4964 Jun  5 16:26 Safercopy1.2/catalogs/srpski/SaferCopy.catalog
[Amiga]                    724    1428  50.7% -lh5- 6f0c Jun  5 16:26 Safercopy1.2/catalogs/t?rk?e/SaferCopy.catalog
[Amiga]                  11514   21108  54.5% -lh5- 934d Jun  5 16:51 Safercopy1.2/SaferCopy
[Amiga]                   2176    4208  51.7% -lh5- d559 Jun  6 20:01 Safercopy1.2/SaferCopy.readme
[Amiga]                   4024    4778  84.2% -lh5- b332 Jun  6 20:01 Safercopy1.2/SaferCopy.readme.info
[Amiga]                    446     776  57.5% -lh5- 938e Jun  5 16:08 Safercopy1.2/sources/catalogs/Build_Catalogs.sh
[Amiga]                    881    1844  47.8% -lh5- 4c85 Jun  5 16:07 Safercopy1.2/sources/catalogs/catal?/SaferCopy.ct
[Amiga]                    857    1764  48.6% -lh5- c680 Jun  5 16:06 Safercopy1.2/sources/catalogs/czech/SaferCopy.ct
[Amiga]                    869    1795  48.4% -lh5- 4b2a Jun  5 16:06 Safercopy1.2/sources/catalogs/dansk/SaferCopy.ct
[Amiga]                    895    1883  47.5% -lh5- 4b49 Jun  5 16:05 Safercopy1.2/sources/catalogs/deutsch/SaferCopy.ct
[Amiga]                    827    1737  47.6% -lh5- a7c7 Jun  5 16:05 Safercopy1.2/sources/catalogs/english/SaferCopy.ct
[Amiga]                    883    1863  47.4% -lh5- 71ed Jun  5 16:05 Safercopy1.2/sources/catalogs/espa?ol/SaferCopy.ct
[Amiga]                    890    1858  47.9% -lh5- a244 Jun  5 16:07 Safercopy1.2/sources/catalogs/euskara/SaferCopy.ct
[Amiga]                    888    1858  47.8% -lh5- 9933 Jun  5 16:05 Safercopy1.2/sources/catalogs/fran?ais/SaferCopy.ct
[Amiga]                    998    2044  48.8% -lh5- fc27 Jun  5 16:08 Safercopy1.2/sources/catalogs/greek/SaferCopy.ct
[Amiga]                    889    1827  48.7% -lh5- 6ca0 Jun  5 16:05 Safercopy1.2/sources/catalogs/nederlands/SaferCopy.ct
[Amiga]                    852    1767  48.2% -lh5- b79c Jun  5 16:06 Safercopy1.2/sources/catalogs/norsk/SaferCopy.ct
[Amiga]                    892    1860  48.0% -lh5- 1bbe Jun  5 16:06 Safercopy1.2/sources/catalogs/polski/SaferCopy.ct
[Amiga]                    876    1863  47.0% -lh5- 93db Jun  5 16:07 Safercopy1.2/sources/catalogs/portugu?s/SaferCopy.ct
[Amiga]                    882    1842  47.9% -lh5- 9e38 Jun  5 16:08 Safercopy1.2/sources/catalogs/roman/SaferCopy.ct
[Amiga]                   1006    2045  49.2% -lh5- b490 Jun  5 16:08 Safercopy1.2/sources/catalogs/russian/SaferCopy.ct
[Amiga]                    881    1828  48.2% -lh5- f49e Jun  5 16:06 Safercopy1.2/sources/catalogs/slovensko/SaferCopy.ct
[Amiga]                    892    1847  48.3% -lh5- 2f91 Jun  5 16:08 Safercopy1.2/sources/catalogs/srpski/SaferCopy.ct
[Amiga]                    858    1754  48.9% -lh5- c3ce Jun  5 16:07 Safercopy1.2/sources/catalogs/t?rk?e/SaferCopy.ct
[Amiga]                   9514   31692  30.0% -lh5- 8915 Jun  5 16:50 Safercopy1.2/sources/SaferCopy.c
[Amiga]                   1035    2221  46.6% -lh5- c55a Jun  5 16:05 Safercopy1.2/sources/SaferCopy.cd
[Amiga]                    529    1409  37.5% -lh5- 41f3 Jun  5 16:09 Safercopy1.2/sources/SaferCopy_cat.h
[Amiga]                    353     631  55.9% -lh5- a2aa Jun  5 11:22 Safercopy1.2/sources/SaferCopy_GCC.make
[Amiga]                    442     754  58.6% -lh5- b882 Jun  5 11:22 Safercopy1.2/sources/SaferCopy_SASC.make
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        45 files   59480  127938  46.5%            Jun  8 00:31
Page generated in 0.03 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>