Backup to USB drive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hondaman
    Badcaps Legend
    • Sep 2008
    • 1087
    • 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
    • 31161
    • 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
      Copy DMI info easily with Hex editing software and Macro script
      by SMDFlea
      Copying DMI information from an old bios to a new one is difficult for some members, often they have no experience with a hex editor,or some that have tried find it too hard.There is an option to make things easier for those members so that they don`t need to post their own bios backup for the DMI copying.

      Experienced bios modding members can help by posting in other threads the DMI offsets,macro script generated by the software and a download link to the software at softpedia mentioned in this guide,or post your macros in the comments here with a link to the bios request thread ....
      02-28-2023, 02:14 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
    • Loading...
    • No more items.
    Working...