Skip to main content

Simple secure file copy. Alternative to rsync.

Project description

Safecopy

Safecopy syncronizes drives and directories very carefully. Like rsync, without rsync's insecure default metadata check. Securely copies to and from remote filesystems through sshfs.

Description

Reliably Synchronize Drives and Directories

Safecopy synchronizes drives and directories, and carefully verifies the copy. When you are copying massive files or large directory trees, it's important to know that every file was copied accurately. Safecopy verifies byte-by-byte, or you can choose a quick metadata check.

Install

pip3 install safecopy

Updates

All future updates will only be available from:

git clone https://codeberg.org/topdevpros/safecopy.git

How it Works

safecopy SOURCE ... DESTINATION

It's just like the standard cp command. You can have as many source paths as you like. The destination path is always last.

Safecopy gives you a lot of control: -h, --help Show this help message --verbose Show progress --quick Only update files if the size or last modified time is different --dryrun Show what would be done, but don't do anything --delete Delete all files that are not in the source before copying any files --nowarn No warnings --test Run tests --exclude EXCLUDE_PATH... Exclude the files or directories (comma separated) --verify Verify copies --persist Continue on errors, except verify error --retries RETRIES How many times to retry a failed copy. Default is not to retry

If you need the rsync protocol run "pip3 install pyrsync2". But it's almost always better to replace rsync with safecopy and sshfs. Error messages

Warning: setuid/setgid bit set on ...

Safecopy detects when the setuid/setgid bit is set. This is almost always a serious security risk. To remove the bit:

chmod -s PATH

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

safecopy-1.3.4.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

safecopy-1.3.4-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file safecopy-1.3.4.tar.gz.

File metadata

  • Download URL: safecopy-1.3.4.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for safecopy-1.3.4.tar.gz
Algorithm Hash digest
SHA256 3154e7381c2bcb211cfe29cbfd375323f99df4375ee116c9856e11ad989fab4c
MD5 27eb3c250203214e9dec2cfc8e77ecc6
BLAKE2b-256 c81ff3fc4616a2aa57dd831b9556f77bfdc834706201fac4b424828077bea24d

See more details on using hashes here.

File details

Details for the file safecopy-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: safecopy-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for safecopy-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9d500b7b7d0cac9ff2a8f3c81dea75dbd6499b435309946ddb56db749480da1e
MD5 fc7844c7e347eb6866d29f0e8f9aefdf
BLAKE2b-256 4fa92497c514796ed176f4bea1b2df104185f5c50f8a056cf5e069a7562ca3ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page