Page 1 of 10 123 ... LastLast
Results 1 to 10 of 94

Thread: I finally get the hype about rsync

  1. #1
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    I finally get the hype about rsync

    I've been backing up data for years now.

    When I was in Windows, I did it by burning CDs... lots of CDs.

    Finally, my wife and I invested in an external hard drive--what a life saver. I could back up 30 or 40 GB of data without having to burn 50 CDs. How did I back stuff up? Copy and paste. Sure, it took a long time, but that seemed fine.

    Later, after moving on to Ubuntu, I still did the copy and paste for quite a while.

    I toyed with a few GUI programs for backing up, but they always seemed convoluted to me, for some reason.

    Then, I tried just .tarring my files with a script that I saved to /usr/local/bin and called backupfiles. I liked the script. It was fun, but it still took a hell of a lot of time to copy all those files.

    Finally, I read an article about rsync. I'd read numerous times on these forums that rsync was great... usually accompanied by vague instructions like
    Try rsync
    I have to say I really despise the acronym RTFM (read the f'in manual)--not so much because of its rudeness but because of its presumptuousness and false assumptions... namely that reading the manual actually helps new users.

    I did
    Code:
    man rsync
    and my eyes glazed over. "Yeah... so..? How do I use it?" The article in the news explained it all quite nicely, even to a semi-beginner like me.

    So I used rsync with the -av options:
    rsync -av /old/directory /backup/directory
    and it took quite a while, but when I did it again, only my Firefox profile (which I had modified slightly since) was backed up.

    The beauty of rsync is its being a single command that does not require root privileges, preserves links, and does differential/incremental backups. I was so won over by rsync that I even converted my wife over to it to use on her Mac Powerbook.

    One thing that I found out the hard way, though--don't use rsync on FAT32. It's got to be Ext3 or HFS+.

  2. #2
    Iandefor is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Sep 2005
    Location
    New York
    Beans
    Hidden!

    Re: I finally get the hype about rsync

    That actually sounds useful. My only question: it synchronizes changes in directory contents, sure, but what about file contents? Does it check for file consistency as well?
    This space intentionally left blank.

  3. #3
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: I finally get the hype about rsync

    Well, as I understand it--and obviously there rsync experts out there who may know better--it compares modification dates and file names (and possibly file sizes?) and then copies over the file if it's been changed since...

    ... so, theoretically, if the file contents have been changed, so has the modification date, right?

  4. #4
    Iandefor is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Sep 2005
    Location
    New York
    Beans
    Hidden!

    Re: I finally get the hype about rsync

    Quote Originally Posted by aysiu
    Well, as I understand it--and obviously there rsync experts out there who may know better--it compares modification dates and file names (and possibly file sizes?) and then copies over the file if it's been changed since...

    ... so, theoretically, if the file contents have been changed, so has the modification date, right?
    Yup. I didn't see that if it was in the article.
    This space intentionally left blank.

  5. #5
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: I finally get the hype about rsync

    No, that may not be in the article, but rsync appears to copy files that have been modified, so I'm assuming it goes by modification date, as grep-ing the contents of each file and comparing the two would take forever.

  6. #6
    Join Date
    Mar 2005
    Location
    Brooklyn, NY
    Beans
    258
    Distro
    Gutsy Gibbon Testing

    Re: I finally get the hype about rsync

    I guess the real question would be, does it check whether the synching was successful.
    Since I get asked alot, I am originally from Ukraine but am Russian by nationality. My nick means specter in Russian.

  7. #7
    Join Date
    Mar 2005
    Location
    Brooklyn, NY
    Beans
    258
    Distro
    Gutsy Gibbon Testing

    Re: I finally get the hype about rsync

    Quote Originally Posted by aysiu
    No, that may not be in the article, but rsync appears to copy files that have been modified, so I'm assuming it goes by modification date, as grep-ing the contents of each file and comparing the two would take forever.
    And not always possible.
    Since I get asked alot, I am originally from Ukraine but am Russian by nationality. My nick means specter in Russian.

  8. #8
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: I finally get the hype about rsync

    Quote Originally Posted by prizrak
    I guess the real question would be, does it check whether the synching was successful.
    I'm not sure what you mean--whether the files actually copied... or just put empty placeholders?

  9. #9
    Iandefor is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Sep 2005
    Location
    New York
    Beans
    Hidden!

    Re: I finally get the hype about rsync

    Quote Originally Posted by aysiu
    I'm not sure what you mean--whether the files actually copied... or just put empty placeholders?
    I think he means checking if the transfer actually copied the files bit-for-bit successfully. Sort of like how you should check the md5 checksum of iso's you download.
    This space intentionally left blank.

  10. #10
    Join Date
    Dec 2005
    Location
    Tucson, Arizona
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: I finally get the hype about rsync

    Quote Originally Posted by Iandefor
    That actually sounds useful. My only question: it synchronizes changes in directory contents, sure, but what about file contents? Does it check for file consistency as well?
    thats what i was thinking as well, like if you have a text file named "thingstodo" and you have like "wash the dishes". then you use rsync and that file gets backed up to some directory. But if you add more to that text file, like "take out the trash", will rsync know that the file was edited and backup and overwrite the previous file that got backed up, or will it not back up the newly edited file at all because it already exists in the backup directory?

    otherwise, this looks like a useful program. i will have to check this out.

    and why didnt you use dvds before you discovered rsync... you could of backed up a lot more for a lot less that way, but external drives i agree are the best solution
    Jabber: markgrandi[at]gmail.com

Page 1 of 10 123 ... LastLast

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
  •