AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Grsync for mac3/1/2024 ![]() There are other types of fingerprints e.g. sha1sum, read more about checksums on the internetz. The long string is the MD5 fingerprint of the file. To do that from the terminal just type: md5sum filenameĪnd that will generate an output similar to: c5dd35983645a36e18d619d865d65846 filename It is useful to learn how to compute the fingerprint of a file, for example to check that two files you downloaded are identical or to make sure the content you have downloaded is identical to the content stored in the remote server. ![]() ![]() Please remember the ending slash in your folder paths (see here what are the differences ) Fingerprint of a fileĪ side note: how does rsync manage to do that? It is simple, rsync – before and after copying all the files – computes a “checksum” for each file, i.e. Check rsync manual pages for more explanations. Furthermore, the sync is incremental: a file that is deleted in source folder, will NOT be deleted in destination folder (however a file that is modified in source folder, will be modified in destination folder). Or from local to remote: rsync -avztcp -e "ssh" /local_source/ disentangle the options of rsync is beyond the scope of this simple explanation, but basically the options I wrote here make sure that folder 1 (source) will be identical to folder 2 (destination). Syncing over the internet from remote to local: rsync -avztcp -e "ssh" /local_destination/ However, here I just show the non-graphical solution with a one liner from the terminal (works on Linux and Mac).įor local files: rsync -avztcp /path/to/source/ /path/to/destination/ How to do that? There are graphical programs for Mac, Windows and Linux. the copied file is actually identical bit-by-bit to the original one 3) if a sync process dies in the middle, you can easily resume from where it stopped (very useful when syncing data over the internet) ![]() If you sync a file instead of copying it, you make sure that 1) metadata are preserved (creation time, modification time, etc) 2) identity is preserved, i.e. I even did a PhD about sync! Well in this case we are not talking about synchrony of minds, but more simply synchrony between your source data and your copied data. no space left on device) the system will provide an error to the user if things go wrong, but things can get tricky when there’s tens of thousands of files: 1) you don’t want to start manually checking that each file went fine 2) if the copy dies midway, you don’t want to manually check which file was successfully copied and which didn’t out of thousands of files. Being able to check the original creation date of a file, might help you find the right file.įurthermore, when you copy a file (from terminal with command ‘cp’ or from the graphical interface with copy and paste) the operating system does not check if the file has been copied correctly. A typical example with academics and students is “which one was the latest version of my manuscript/essay?” (psst! There’s version control for that, you know?). when backing up large amount of files), you would like to preserve the original creation date/modification date of your files, because it can help in finding specific files. the content of the new file is identical to the old file, but the metadata of the new file is different. When you copy a file, you clone an existing file into a new file. from the terminal)? Why copying files is NOT the way to go from the graphical interface) or are there better ways (e.g. Can import and export sessions on file i.e.I have often heard this question from students and colleagues: should I back-up my files to an external disk using copy (e.g.Shell script for batch, crontab use etc.Can run custom commands before (and stop in case of failure) and after rsync.A good number of translations available.Highlights errors and show them on a separate window, for better and faster control over rsync runs.Parses rsync output to display progress bars and other information.Captures and prints rsync output nicely on a own window and log to a file.Saves multiple settings with customized names (no limit on number of "sessions").Most commonly used rsync options available, additional options may be specified by command line switches.Grsync is VERY easy to use: just choose the origin and destinations folders. Obviously, you can also use it with Ubuntu One or a network drive. For instance, since Dropbox does not have it's own back-up tool (that's why I really like SpiderOak for this job), you can use Grsync to syncronize some folders you want to back-up with your Dropbox folder. Rsync is the well-known and powerful command line directory and file synchronization tool. Grsync is an open source rsync GUI (Graphical User Interface) which works on Windows, Linux and Mac OS X.
0 Comments
Read More
Leave a Reply. |