Results 1 to 3 of 3

Thread: Handling file checksums for backup/restore

  1. #1
    Join Date
    Jun 2013
    Beans
    56

    Question Handling file checksums for backup/restore

    As a part of taking backup on my spouses Windows 11 computer with EaseUS Todo Backup Free, I wish to do something similar I am doing on my LM 21 for checking file hashes before backing them up.

    Code:
    ~$ find -P /home/dir -type f -exec sha256sum {} \; > sha256sums.txt
    And then would like to check the file integrity somewhat similarly also.

    Code:
    ~$ sha256sum -c sha256sums.txt
    I only found a way to do it for single file, and Windows command prompt examples and tutorials are a bit scarce. Or are they called Windows Powershell scripts?

    Code:
    certutil -hashfile c:\temp\myfile.txt SHA256
    Or would there be some better or easier way to ensure file integrity after restoring them?

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Handling file checksums for backup/restore

    Use rsync.

    rsync always uses checksums to verify that a file was transferred correctly. If the destination file already exists, rsync may skip updating the file if the modification time and size match the source file, but if rsync decides that data need to be transferred, checksums are always used on the data transferred between the sending and receiving rsync processes. This verifies that the data received are the same as the data sent with high probability, without the heavy overhead of a byte-level comparison over the network.
    https://unix.stackexchange.com/quest...o-local-drives
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Jun 2013
    Beans
    56

    Re: Handling file checksums for backup/restore

    Quote Originally Posted by SeijiSensei View Post
    Use rsync.
    Thanks for suggestion. Forgot to mention that backup is stored in cloud, so encrypted and incremental would be preferred.

    Edit: naturally the EaseUS offer for free 250 GB cloud storage is tempting too, although their client is not open source, and I don't know where their servers are located.

    EaseUS Todo Backup offers each user 250GB of free cloud storage so they can access their backups without the time and space limit.
    https://www.easeus.com/backup-software/tb-free.html
    Last edited by Rooster2000; March 30th, 2023 at 06:49 PM.

Tags for this Thread

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
  •