Skip to content

About

Resume an interrupted folder copy into an existing destination directory and verify each file with SHA-256.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Folder Relay

Resume an interrupted folder copy into an existing destination directory and verify each file with SHA-256.

Run

With Go 1.25 or later, run:

go build .
folder-relay.exe "D:\Photos" "E:\Backup"

On Linux or macOS run ./folder-relay SOURCE DESTINATION. Both directories must already exist and must be separate. Run the same command after a disconnect or interruption. Keep the source stable during the transfer.

Folder Relay hashes the current source, resumes writing its saved partial at the recorded byte offset, then hashes the complete staged copy before publishing it. This saves destination writes on retry. It still reads the original in full to identify its contents. Existing identical files are skipped. A destination file with different content is never overwritten: it is preserved, the remaining files are still copied, and every conflict is listed at the end with exit status 1. Other errors (such as a read failure or a special file) stop the run. A damaged partial is discarded on verification failure and can be retried.

The destination must support hard links and file locking (for example NTFS or ext4). The staging directory is reserved for this program. Use a trusted destination. Old partials from changed sources may be removed from .folder-relay-work when no transfer is running. The tool copies regular file contents and empty directories. It rejects symbolic links and special files and does not copy permissions or timestamps.

Run go test -v ./... for the resume, integrity and conflict checks.

About

Resume an interrupted folder copy into an existing destination directory and verify each file with SHA-256.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages