Backup to USB drive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hondaman
    Badcaps Legend
    • Sep 2008
    • 1061
    • USA

    #1

    Backup to USB drive

    Okay, I fixed my USB problems discussed in another thread. Now I would like to back up some files. I bought a USB enclosure and a 2 TB SSD (I should have saved $50 and bought one without cache, but I bought the more expensive Samsung EVO 570 instead).

    I seem to prefer Linux Mint, although I could probably use Microsoft Backup for Windows 7. I think it still exists. Here's what I did with Mint 18.3 tonight:

    Code:
    cp * -pR "/mnt/win7-drive/users/mike/My Pictures/" "/mnt/usb-enclosure/My Pictures"
    and

    Code:
    cp * -pR "/mnt/iwn7-drive/users/mike/My Documents" "/mnt/usb-enclosure/My Documents"
    The linux copy command has a "-u" option that will not copy older files over the top of newer files. But that does not interest me. Now that I did my original backup tonight, I only want to copy those files that are newer, or those that have changed from the copy on the usb enclosure SSD.

    I MIGHT be able to use the "find" command with the "-atime" or "-ctime" or "-anewer" or "cnewer" options (which might not work, since both source and destination are NTFS partitions) to get a text list of files, or I might be able to pipe the output of the "find newer files" and copy only those files. Backups would take only a second or two that way.

    I MIGHT be able to use the fc command (linux file compare) but I think that is for comparing the bits and bytes inside the file, not the date the file was most recently accessed / modified.

    I also have some familiarity with AWK, but not a whole lot.

    Or I could just use the "duplicati" add-on tool that should be available as a *.deb package in Linux Mint's repository. Starting it as a daemon (so I can access NTFS drives that ordinary user mike cannot access) should not be difficult, as long as I read up on how to do it.

    If I only copy files that are NEWER, like my family budget spreadsheet, backups will take only a few seconds.

    Any ideas? Thanks in advance !
    Last edited by Hondaman; 08-29-2024, 11:37 PM.
  • stj
    Great Sage 齊天大聖
    • Dec 2009
    • 31024
    • Albion

    #2
    RSYNC is the tool you want - it's designed to do extactly this task.
    i use
    rsync -av --delete-after /home/user/ /media/user/external/backup/

    Comment

    Related Topics

    Collapse

    • SMDFlea
      Common SPI bios chip programming Questions and Answers
      by SMDFlea
      Common SPI bios chip programming Questions and Answers
      ----------------------------------------------------------

      Q: I have a bios request,i can`t post my backup as i can`t read from the chip.

      A: If you can`t read from it how do you expect to write to it ?.

      Q: Why is my bios chip unreadable ?.

      A: The programmer is faulty or has a worn or broken zif socket.

      The USB cable is frayed,connector pins worn or some other physical damage.

      Not enough amperage or voltage to power the programmer properly.

      Bad...
      09-02-2021, 04:40 PM
    • omruu9
      How to copy/Backup TPM keys
      by omruu9
      hi friends I'm looking for solution regarding TPM keys i want replace motherboard but i cant backup old old motherboard TPM keys .. can any buddy tell me how to backup TPM keys .. thank you
      05-11-2022, 01:21 AM
    • Hondaman
      USB problems?
      by Hondaman
      Recently I discovered my SSD died (OCZ/Toshiba 240 GB). It was in a USB enclosure, attached to the Linksys WRT-AC1200 router. Since then I removed the USB enclosure and attached it to my Win7 PC (AMD 8150 CPU, 970 chipset, 64 GB RAM). I also gathered one or two other USB enclosures to figure out what is going on.

      (I suspect that I lost quite a few MP3 and FLAC files I recently ripped from my audio CDs, I think I lost very little un-replaceable stuff.)

      I think it is IMPOSSIBLE for Win7 to have any problems with a USB enclosure as long as Win7 knows how to speak to the...
      08-12-2024, 03:26 PM
    • SMDFlea
      HP factory bios patcher
      by SMDFlea
      ***************************************************************************************************************************
      * DISCLAIMER: badcaps.net and its members do no support unlocking stolen or company-owned devices.
      * The unlock scripts given here are for personal use only, ie. you accidentally set a password on your own
      * machine,you forgot the password you set a long time ago or you mistyped the password when setting it
      * and cannot get in again.
      ***************************************************************************************************************************...
      10-20-2024, 12:52 PM
    • intelg
      HP Elitedesk 800 G6 lost BIOS admin password
      by intelg
      Hello everyone, I am looking for help as I am struggling to remove lost BIOS Admin password on an HP EliteDesk G6 800 series desktop. I wanted to reset the vPro remote control IP kvm for homelab use.

      Here is the hardware identification specs:
      HP EliteDesk 800 G6 Desktop Mini PC
      Intel(R) Core(TM) i5-10500 CPU @ 3.10GHZ 16384 MB RAM
      BIOS ver S21 Ver. 02.05.01 01/05/2021
      Born on date: 07/26/2021
      SN MXL11841GN
      SKU 3X8V9UCHABA
      UUID 8116E79EF6FFE94DB0B98A3188270C5C
      SYSTEM BOARD ID 8710
      SYSTEM BOARD CT NUKBER PJLHQ0A8JF236L...
      11-03-2023, 02:05 AM
    • Loading...
    • No more items.
    Working...