Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: SYNC of backup drive and main backup

  1. #1

    Default SYNC of backup drive and main backup

    How do sync my main backup drive with my flash backup. I'v found a 'sync' command.



    Main backup new file --> flash backup old file

    Main backup old file <-- flash backup new file

    Copy files <--> to fill in any new files.

    Main backup new file --> flash backup

    Main backup <-- flash backup new file


    Can someone how to make the command do this? Thanks.

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,742

    Default Re: SYNC of backup drive and main backup

    Not sure what you want but sync is not that it is rsync

    sync just forces a write of all pending buffers. rsync is a complex command to copy and sync files from various locations even across networks. I like luckybackup as a GUI front end

  3. #3
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    503

    Default Re: SYNC of backup drive and main backup

    You could also take a look at unison, it is much simpler to use as rsync and also allows more than two partners. Like having two pcs (work and home) and a portable usb harddisk,
    and no matter where you change files and which ones, unison keeps track of the changes.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,124

    Default Re: SYNC of backup drive and main backup

    Quote Originally Posted by lord_valarian View Post
    How do sync my main backup drive with my flash backup. I'v found a 'sync' command.
    I do not know where you found it, but did you check what it does do:
    Code:
    man sync
    Henk van Velden

  5. #5
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: SYNC of backup drive and main backup

    I don't really understand the question. But we need a scenario to work from. So let's suppose "flash" refers to a usb drive. And let's suppose you are copying files sometimes from a Linux filesystem to the usb drive and sometimes the other direction. [pardon me if I'm right off track, I didn't have much to go on].

    First you have to format the USB drive to a Linux format so that the time stamps, permissions and ownership/s can be carried faithfully back and forth.

    Now suppose the origin folder resides at "/path1/origin" and the target resides at "/path2/target" and suppose you wish to make the contents of directory "target" to mirror the contents of directory "origin", then run this:
    Code:
    rsync =azv --delete /path1/origin/  /path2/target
    Perhaps you try that out with dummy files and see what happens.

    That's just one scenario. You need to do a bit of research (with man rsync) to create other scenarios.

    I'll stop at this point to see whether you respond.
    Last edited by swerdna; 17-Feb-2016 at 04:53.
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  6. #6

    Default Re: SYNC of backup drive and main backup

    I'll explain again.


    system <--> backup flash drive

    new --> old (overwrite)

    old (overwrite) <-- new

    system File1 --> backup flash

    system <-- backup flash file2


    Matching both directory trees.

  7. #7

    Default Re: SYNC of backup drive and main backup

    Quote Originally Posted by sabo007 View Post
    You could also take a look at unison, it is much simpler to use as rsync and also allows more than two partners. Like having two pcs (work and home) and a portable usb harddisk,
    and no matter where you change files and which ones, unison keeps track of the changes.
    If can't find something, I'll just write a script to do it. I'll keep that in mind.

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,811
    Blog Entries
    15

    Default Re: SYNC of backup drive and main backup

    Quote Originally Posted by lord_valarian View Post
    If can't find something, I'll just write a script to do it. I'll keep that in mind.
    Hi
    I use fwbackups, then there is also duply frontend to duplicity
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  9. #9
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    3,974

    Default Re: SYNC of backup drive and main backup

    Quote Originally Posted by lord_valarian View Post
    I'll explain again.


    system <--> backup flash drive

    new --> old (overwrite)

    old (overwrite) <-- new

    system File1 --> backup flash

    system <-- backup flash file2


    Matching both directory trees.
    Easiest with Unison, very, very, very simple.
    -Gerry Makaro
    Fraser-Bell Info Tech
    Solving Tech Mysteries since the Olden Days!
    ~~
    If I helped you, consider clicking the Star at the bottom left of my post.

  10. #10

    Default Re: SYNC of backup drive and main backup

    Quote Originally Posted by sabo007 View Post
    You could also take a look at unison, it is much simpler to use as rsync and also allows more than two partners. Like having two pcs (work and home) and a portable usb harddisk,
    and no matter where you change files and which ones, unison keeps track of the changes.
    This might work for me. Sometimes I take the backup drive to a high speed connection. Sometimes I download directly into the system backup partition.

    I need the new/updated files to go both ways. This is the website I found.


    http://www.cis.upenn.edu/~bcpierce/unison/

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

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