Results 1 to 3 of 3

Thread: fast file backup copy

  1. #1
    Join Date
    May 2012
    Beans
    2

    fast file backup copy

    I like to make several big folders copy/update to the USB memory stick for backup everyday.
    cp -r -u is not my favorite here, because it takes too long.

    I want to copy only new files changed 1 or several days ago, only 1 or 2 times a day.
    Bottom line is I only want to check the file date and copy new files, to USB flash memory,
    to make it fast.

    The flow wil be :
    (1) read files in specified folders
    (2) Check if file date was modified less than 1 day,
    (3) If no, skip, if yes then make copy to USB memory, maintaining directory structure.
    (4) Say, only 3 files modified within 1 day then only 3 files will be copied, and directories has to be
    created in memory stick if not-exist.

    Thanks for help.

  2. #2
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: fast file backup copy

    I think you can use rsync to do that. It is much more advanced than cp for backing up or syncronizing. Read more in the man pages
    Code:
    man rsync

  3. #3
    Join Date
    Jan 2010
    Location
    Kolkata India
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: fast file backup copy

    Quote Originally Posted by sudodus View Post
    I think you can use rsync to do that. It is much more advanced than cp for backing up or syncronizing. Read more in the man pages
    Code:
    man rsync
    +1 for rsync .I personally prefer rsync over scp .
    “Progress is made by lazy men looking for easier ways to do things”
    — Robert A. Heinlein

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
  •