Skip to content

mdouchement/copier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copier

Copier is a tool for copying files from damaged disks at low speed. A timeout can be specified to give-up when the file is uncopiable. All copied files are logged with a status.

Copier has been tested on macOS and Windows.

Requirements

  • Golang 1.7.x,1.8.x

Installation

Manual build

Quick mode

go get github.com/mdouchement/copier/cmd

or

  1. Install Go 1.7 or above
  2. Install Glide dependency manager
  • go get -u github.com/Masterminds/glide
  1. Clone this project
  • git clone https://github.com/mdouchement/copier
  1. Fetch dependencies
  • glide install
  1. Build the binary
  • go build -o copier *.go
  1. Install the compiled binary
  • mv copier /usr/bin/copier

Usage

copier -h
  • Generate files list prior to edit it before launch the copy
copier list -o /tmp/tobecopied.txt ~/Documents

Unwanted line can be commented by adding a # at the start of the line.

  • Start the copy
copier copy --speed 1MBps --timeout 1m --from-list /tmp/tobecopied.txt ~/backup

Logging to /Users/mdouchement/backup/copier.log
File /Users/mdouchement/Documents/.DS_Store: already exist
File /Users/mdouchement/Documents/test.pdf
 4.59 MB / 7.13 MB [===================================>----------]  86.81% 1017.16 KB/s 12s

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Copier is a tool for copying files from damaged disks at low speed.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages