Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Check if all data it was well copy

  1. #21
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Check if all data it was well copy

    Quote Originally Posted by ActionParsnip View Post
    Could use a bash loop to shasum each file from source and destination to verify
    Or use 1% par2 parity files. Then xfer over the *par2 files and run a verify task.
    $ more ~/bin/par2-create
    Code:
    #!/bin/sh
    
    for filename in "$@"; do
    
       # Create a 10% recovery data with blocksize of 300KB
       nice par2 create -s307200 -r10 "$filename"
    
    done
    This script is dependent on filenames NOT having any spaces. The space is a natural delimiter, so running the command as par2-create * will create a set of par2 parity files for every file in the CWD.

  2. #22
    Join Date
    Apr 2016
    Beans
    350

    Re: Check if all data it was well copy

    Hello, I am back,
    I am so sorry for my absence but I only got it now it is possible appear here (In the last few months I couldn't even read the linux book or anything :/ ).

    At the moment I have three hard drives from different computers on the same computer (ubuntu server). Which result in different users and permissions (which result a complication to copy and organize all data). What is the best strategy to put all files under the same user?

    I have the root user (normal) plus the system user plus and an user in samba. When a folder is created/changed under/through the windows computer, that files remains with the samba user. Is this good practice?

    My goal it is organize all data and after that following a tutorial to learn and create a ubuntu server with option samba (because on my network I have a computer windows)

    Thanks

  3. #23
    Join Date
    May 2010
    Beans
    1,718

    Re: Check if all data it was well copy

    Could use md5sum on the files as a quick and dirty way to check the files have copied OK

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •